Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
llogiq
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
llogiq
1y ago
The problem with C++ vs. unsafety is that there is really no boundary: All code is by default unsafe. You will need to go to great lengths to make it all somewhat safe, and then to even greater lengths to ensure any libraries you use won&#x
2.
▲
by
llogiq
3y ago
So professional work during a worldwide pandemic with all the hardship that entailed suffered...from working remotely? I don't buy that.
3.
▲
by
llogiq
3y ago
That very much depends on the code you're compiling. The factors that come into play are monomorphization (which means the compiler builds one copy of the code per type it is called for), procedural macros (which need to be fully com
4.
▲
by
llogiq
3y ago
There is so much wrong with this article. Throw a little bit of ML pixie dust on everything for more hype? Check. Compare wildly different things as if they were the same? Double check. digdugdirk has the right idea, and AFAIR, there is som
5.
▲
by
llogiq
3y ago
Very nice diagrams, they make the article really easy to follow! This really drives the point home that vector search isn't only a qantitative (as in faster), but a qualitative evolutionary step. Makes one wonder what other use cases a
6.
▲
by
llogiq
3y ago
I totally agree that latency of this solution leaves a lot of room to improvement. But that's totally besides the point of the article, which is that people can get a no-cost semantic search for their personal website using those servi
7.
▲
by
llogiq
3y ago
The initial version of this actually used Mighty, but I didn't find any free tier available, so I switched to Cohere to keep the $0 pricetag.
8.
▲
by
llogiq
3y ago
I also found while writing the article but after I had already done my research that cargo-lambda has grown some additional functionality that could have removed the need for the AWS CLI, but I wanted to get the article out, so I didn'
9.
▲
by
llogiq
3y ago
Thank you for the suggestion! I actually thought about using terraform, but I wanted to keep the experiment somewhat minimal regarding technologies and as I had already added AWS Lambda and Rust to the tech stack, I wanted to stay as close
10.
▲
by
llogiq
3y ago
When starting this project I thought the same thing, but having done it I honestly cannot tell that much of a difference. Yes, there are two more steps in setting up the Lambda function, but in the end you still write an HTTP server and hav
11.
▲
by
llogiq
3y ago
Author here. This was a fun exercise to produce a semantic search using only free-tier services (which in the case of Cohere means non-commercial use only and in the case of AWS Lambda is limited to one year). It also marks my first foray i
12.
▲
by
llogiq
3y ago
Nick's articles are always a delight to read, and this one is no exception. Openly discussing failure is one part, but coming up with so many ideas and having the gumption to actually try them out on a compiler is really fascinating.
13.
▲
by
llogiq
3y ago
This is a nice article for people new to async/await in Rust.
14.
▲
by
llogiq
3y ago
Well, if the programmer writes the type annotation to actually have their code checked, how would a gradually typed language differ in practice from a static language? Yes, you can still do dynamic typing. But I'd argue that using `dyn
15.
▲
by
llogiq
3y ago
Yeah, that one hasn't aged too well. We've all seen the backswing to statically typed languages. Yes, some of them (e.g. typescript) run on top of dynamic langs, or allow for VMs (hi, WASM!). Why? Because ironically the same famed
16.
▲
by
llogiq
3y ago
What would that buy you? You train until you push your loss under a certain threshold, then check the external criteria and if they don't hold you train again? Your external criteria would essentially become another part of your loss f
17.
▲
by
llogiq
3y ago
Again, there is a lot of words to describe the fact that machine learning is just lossy compression for a bunch of data with the possibility to interpolate between data points and get somewhat plausible results. This means data points may g
18.
▲
by
llogiq
3y ago
Having seen state of the art neural networks in the 70s and 80s, I am both in awe at the progress that has been made since and deeply unconcerned about AGI. Yes, storage capacity and compute have made major leaps, but it's still only l
19.
▲
by
llogiq
3y ago
This looks like a fun way to get into programming. I'll have my kids check it out!
20.
▲
by
llogiq
3y ago
I sometimes wonder what CPU designers think when building such weird instructions? They must have some programs in mind that could be run faster with them, or else the additional transistors are just lost weight. But then compilers and lang
21.
▲
by
llogiq
4y ago
I used to work on the Rust compiler itself on a Chromebook with a 1.1GHz dual core, 4G RAM and 32G of disk. That's about as far from a high-end PC you can get. Most mid-range phones nowadays have more processing power and memory than t
22.
▲
by
llogiq
5y ago
If matthieum hadn't done it, someone else would have (and has; some dupes have appeared and were subsequently removed).
23.
▲
by
llogiq
5y ago
You know there's multi-reddits? In your specific example, https://reddit.com/r/RoastMe+toastme
24.
▲
by
llogiq
5y ago
Not all platforms have atomics; you'll mostly encounter this on embedded systems. That said, use them if you can! Regarding Rc, the overhead is more in memory than time, which usually has a non-linear relation to performance, so any
25.
▲
by
llogiq
5y ago
Looks can be deceiving. You'll have to try it to see if you like it. And if not, that's totally OK.
26.
▲
by
llogiq
5y ago
Well, I have been writing both high and low level code in Rust, and I must admit I've been happily falling into that "trap". The nice thing about Rust for high level software is that it lets us specify interfaces in a way tha
27.
▲
by
llogiq
5y ago
Oh, right! Thank you for bringing it up, I'll fix this.
28.
▲
by
llogiq
5y ago
Well, titles are hard. All of those things are possible in Rust. But they're not easy or approachable.
29.
▲
by
llogiq
5y ago
Author here. I blog about Rust as a hobby (and have been doing so since 2015 on my personal blog), and LogRocket is so nice to pay me to have my content hosted on their blog. And yes, their product is only tangentially related (if you use R
30.
▲
What you can't do in Rust (and what to do instead)
(blog.logrocket.com)
5 points
by
llogiq
5y ago
|
0 comments
More ›