Coder Social home page Coder Social logo

trie's Introduction

Hello. ๐Ÿ‘‹

๐Ÿง” Programmer with a keen eye for detail, loves making the code readable and maintainable. Pragmatic and never cutting corners. Automating myself out of the job is my ultimate goal.

๐Ÿ’ผ Focused on backend programming with Elixir, Rust and Golang, know shell scripting and databases. Interested in Linux system administration and network administration and I do well there.

๐Ÿ“– Previous experience: C, C++, some x86 Assembly, Java, PHP, Javascript, Ruby (plus Ruby on Rails).

๐Ÿ‘ท I am open to many formats of work but have come to appreciate stability and loyalty more than anything else. I am a good and patient coach, and have made money through that, and code reviewing too.

๐Ÿ”– Keen interest in game bots, financial trading, formal verification of code and super-optimization (compiler tech).

๐Ÿ“ซ Drop me a line if you want to talk, I am friendly and curious and don't refuse interesting discussions, be it about programming or anything else.

Other profiles:

trie's People

Contributors

aenglisc avatar dimitarvp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

trie's Issues

Move smaller tests to doctests

Some of the tests are really minimal. It would improve the code and docs readability if those tests are moved to doctests instead of residing in the test script.

Include better examples in the Trie module docs

Something along the way of a more real-world usage like:

Fill the Trie:

Tag
|> Repo.all(select: [:name])
|> Trie.put_words()

Use the Trie for auto-completion:

Trie.search(params["query"])
|> # ...respond with search results here

Make your own guards

Don't use some of the builtin Elixir guards. Make your own. Those come to mind for now:

defguard is_key(x) when is_integer(x)
defguard is_char(x) when is_integer(x)
defguard is_pop_fn(x) when is_function(x, 1)

Can't avoid using is_list and is_binary because the library is supposed to allow both charlist and String inputs and thus having separate function pattern-matching heads working with them separately is completely normal.

Why elixir base trie when we have ets ?? ( trie DS )

Hi. Ets internally implement judy array. Actually
Judy array is family of trie/radix-tree and etc.

When we have ets ( c based, without garbage )
Why is need to elixir based trie ?!

Just I want more know for myself

Make the struct type opaque

Since the internals of the struct aren't to be relied upon by users, this should have been the case in the first place.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.