oitzujoey / ducklib Goto Github PK
View Code? Open in Web Editor NEWA standard library replacement for duck-lisp
License: MIT License
A standard library replacement for duck-lisp
License: MIT License
Tries make lots of small allocations. The memory allocator headers are something like 40 bytes large (I am unsure if that is the correct number, but it's a lot), and the waste really adds up when your average key length is around 5 characters. The solution is to use a few large allocations and have trie.c
keep track of the locations of the keys in those blocks. This is essentially duplicating some of the memory management logic in trie.c
.
I don't entirely know what is involved in this, but I know there is a bug indl_malloc
. Returned memory blocks must be word (as in bus width) aligned, otherwise ARMs will crash with a bus error.
The trie library should work well as a base for regexes as it can be easily turned into an FSM and already has a concept of groups.
The memory allocation is rather hard to debug since Valgrind is unable to understand the custom allocator.
Relevant link: https://valgrind.org/docs/manual/mc-manual.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.