Skip to content

hubyhuby/visitors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visitors are back !

Visitors are people coming from 'outaspace'... mostely unfriendly guys riding flying saucers...
It's also a naive lib to search an inverted index :D Build using the V language Vlang. In order to test this new developing language.
Status : Proof Of Concept
LICENSE : Read LICENSE.txt

Vlang short review as of May 2021

Vlang is an interesting language that compiles Go-ish code into C. It is in very early POC stage 0.2 (May 2021) and I imagine will take 2 more years to reach 1.0 stability.

Testing the language; it looks to me like it has improved over Go s API in important fields :

  • Error handling!!! O god thks! (if err!= nil grrr!)
  • import ( "all C libs / ecosystem in the world(s) !" ) => as it compiles to C, wrapers can be developed to link potentially any C lib.
  • Go is staying on the server side. Many attempts have been made to compile it for tiny devices...such as the web browser and your fridge (https://tinygo.org/ Vugu). But this has not been very succesful. WASM garbage collection / size binary etc ... => Whereas V opens ways to compiling to anything and its attempting to have limited Garbage collection by design... from the start. In theory that's the "silver bullet" that lets you build server side and front apps in one language.

V's "Todo"

  • Memory management is for now a promise / dream. Let's see what this corner stone feature looks like in 0.3 ?
  • Multi CPU API is not yet there.
  • Ecosystem seems to be growing very fast. Active people from the C and Go world seems to be joining every day.
  • Over optimistic phrasing from the maintainer sometimes has been noted from several DEVs on the net. But hey, I can attest part of V actually works, and that s just impressing work!

TODO : NEXT IN VISITORS (season 2)

Let s see where it goes. The aim is to test ideas on Full Text Search, and learn/ test Vlang.
Knowing a real search library like golang Bleve search took 4 years to reach 1.0.

https://github.com/blevesearch/bleve/blob/fc0924f29d818f5f1d1d0d53315ab2913ecd8040/search/levenshtein.go#L21

https://github.com/blevesearch/bleve/blob/fc0924f29d818f5f1d1d0d53315ab2913ecd8040/search/searcher/search_fuzzy.go#L57

https://en.wikipedia.org/wiki/Stemming

https://github.com/snowballstem/snowball#what-is-stemming

  • Index Mapping

  • TF IDF algo

  • Sorting

  • Querries https://blevesearch.com/docs/Query/

  • On disk index

  • Some 3 years of DEV & refactoring to make it work as good as Bleve in terms of Index space on disk and speed

SPONSORS :

Interested in innovation ?

If you are into innovation, feel free to check my companies web site. We are doing Design Thinking at https://tooap.com/

Financez & développez votre projet avec un expert de la tech

Startup Elevator Financez & développez votre projet innovant

About

Naive inverted index in V (Vlang)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages