News for hackers. Stuff that matters.

marcus_pousette

Show HN: Binary Serialization with TypeScript

https://github.com/dao-xyz/borsh-ts

Based on the Borsh serialization format I have created an easy to use TypeScript library that lets you conveniently serialize your classes into a compact binary representation. Later, you can deserialize this directly back directly into classes or using other languages, like with the Rust implementation borsh-rs. One of many reasons for using this library compared to using JSON is that you can...

( Read More... | no comments | 2 points | on HN )
Re:Custom Search Engine Built on Searx on Monday September 13, 2021 @12:53PM (#28513748)
When the results appear, you have to press the small play button at the right side, then you will be navigated to GitHub to see the expected search results.

I tried it now on iOS with Safari. I tried "date parser mit license". It could be more intuitive though

Re:Custom Search Engine Built on Searx on Monday September 13, 2021 @12:19PM (#28513344)
I have made an attempt to this, but far from complete. I manually indexed the search engines of different websites in a common natural language interface: When writing "date parser MIT license stars > 1000" It automatically suggests GitHub as a website that can support this query:

https://quantleaf.com/?q=&t=query&run=false

You can see more examples on the website.

Thanks! I have written an interpreter and runtime environment that uses NLP in order to find the most probable program given what you have written, this means that you for example can write variable names with spaces, have spelling errors and so on. This app uses parts of this technology, which enables you to do these queries in natural language like language. I am currently working on deploying more features from the language, like doing calculus, if/else, for loops, classes.
Hey! I have built a virtual assistant based on a machine learning based programming language. Currently it contains 11 resources.

You can for example search:

stock screener industry airline p/e < 40 operating margin > 0 uk

stock screener sector energy eps > 20 and operating margin > 5 india

insider transaction AAPL

10-k AAPL file date from 6 months ago

stock price GME

subreddit wallstreetbets flair dd

tweets from elonmusk about bitcoin between 2011-01-10 and one year ago

When you search the examples above, you will be redirected to web pages that display the result. For the Stock Screener, investing.com will be opened.

The language technology is also available as an API.

Yes, this is expected result. It is purely based on your database schema. For the Recipe example, i do not have a field that is called ingredients, that could potentially have the "banana" as a possible value. I can add this to the example.

It is only a demo of natural language to sql-like language. The output viewed is just a preview of the true output, which takes a JSON form.

Ok! I understand. Yes, so how it works is that it is your database schema that defines what can be searched on and not. The demos on the website are created from very simple schemas, which means it might not understand what you are looking for in many cases. By reading the suggestions (the words appearing beneath the search field) one can get an idea about what it understands. But it seems that it could be improved!

Thanks for the feedback!

I want to make interactions between humans and computers easier, by making natural language and computer code indistinguishable. I approached this problem by introducing the concept of ambiguity into a hybrid language with the help of machine learning. This is the first product that uses this technology. Enjoy!