Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
afranchuk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
31.
▲
by
afranchuk
5y ago
"It depends", as always :) Some people may do it because it's more approachable to them (and/or others). Others may have language models/runtimes that align closely with the target language. Or they may want to &quo
32.
▲
by
afranchuk
5y ago
That answer is from 5.5 years ago. Rust was barely 1.0 then. A lot has changed in 5.5 years. See my godbolt link in the other reply for verification that it does optimize the moves away. Besides LLVM improvements, I suspect the moves might
33.
▲
by
afranchuk
5y ago
I'm sorry, I didn't qualify my statement well. I did mean in release situations when optimizations are enabled. But I'm not sure whether such optimizations are appropriate in debug builds. I suspect there may be cases where t
34.
▲
by
afranchuk
5y ago
Typestates are an excellent way to provide stronger compile time guarantees, and I wish I saw them more in the wild (I have used them myself when appropriate, though I was unaware of the terminology). However, the article mentions: The atte
35.
▲
by
afranchuk
5y ago
This looks very lean (in a good way). Naturally he's only demoing what works well but there really is a lot here!
36.
▲
by
afranchuk
5y ago
Yeah I've always wished for something like that. That also gives (presumably) a much stronger programmatic association between windows (GUIs) and processes. Trying to programmatically figure those things out in e.g. X11 is sloppy at be
37.
▲
by
afranchuk
5y ago
I was under the impression that rust-analyzer (and more generally LSP) provides augmentative (contextual) syntax highlighting, whereas most of the highlighting still comes from editor-specific configuration. Is this not the case? If so I wo
38.
▲
by
afranchuk
5y ago
I use these from Gboard all the time. If you're using Android it's my go-to keyboard, allowing you to resize and shift the keyboard to where it's comfortable for your hand (among other features).
39.
▲
by
afranchuk
5y ago
Well, I haven't paid yet ;) but the adjusted amount charged to my insurance was about $12.5k. I have a highish deductible plan but I have an HSA so after meeting deductible and maxing out my out of pocket limit the HSA is going to cove
40.
▲
by
afranchuk
5y ago
Anecdata: I just had a very mild infection a month ago, but it went to my heart so I went to the ER (thinking they'd give me antibiotics and send me on my way). They wanted to monitor me for 2 days so admitted me. I know I have the rig
41.
▲
by
afranchuk
5y ago
Unfortunately no, and it was about 10 years ago so I don't remember the details. But there's not too much prep involved, just get some beans and get cooking! :D
42.
▲
by
afranchuk
5y ago
I did this once as I like to understand the processes that go into modern everyday items. Without a grinding mill I wasn't able to get the cacao to the smoothest consistency (it was grainy as the article describes), however it still ca
43.
▲
by
afranchuk
5y ago
The subtlety is that the checkout command as written is checking out only a subdirectory, not the entire repository. Look closely at the given checkout url.
44.
▲
by
afranchuk
5y ago
Ah yeah numeric sort of variants totally make sense for that! In all of my use cases they have been types that don't have operations defined among each other. But really I'd just appreciate the standard library providing at least
45.
▲
by
afranchuk
5y ago
Thanks for posting the link, I forgot to include it!
46.
▲
by
afranchuk
5y ago
This is sometimes evident in the standard library. I think they chose just about the most developer-unfriendly interface for `std::visit` of variants. Yes that interface covers some edge cases that I've _never_ seen in practice (visiti
47.
▲
by
afranchuk
5y ago
Based on the demo video, it looks like one step "missing" is that you don't manually implement the assembler in machine code. For those of you who have played: is this true? If so I totally get the omission, but I'm just
48.
▲
by
afranchuk
5y ago
I'm assuming you found the page on the site but want more detailed prose on it? It's the second linked category on the homepage. https://opensourceecology.dozuki.com/c/PowerCube
49.
▲
by
afranchuk
5y ago
I think it's safe to spread that distribution as if it were throughout new England and the Midwest. Those states have just reported/recorded the information more. As someone who recently purchased a home in one of those states, I
50.
▲
by
afranchuk
5y ago
I was taught the American way (as I live in the US), but immediately rejected it (even at a young age) and did it the British way, though I had no idea that's what it was called. Besides the week or so when teachers were covering that
51.
▲
by
afranchuk
5y ago
I didn't say Rust is the only language. The preceding parenthetical immediately includes other modern languages as well. I was asking you to see a different perspective. I can't say I've seen the evangelism you've seen;
52.
▲
by
afranchuk
5y ago
Have you considered that many PL hobbyists and/or enthusiasts recognize that many features of Rust (or other languages that may be brought up out of context, though in this case Rust is appropriate given the article content) were caref
53.
▲
by
afranchuk
5y ago
Yeah tbh I don't know why syntax commenting isn't more common; when I wrote a language with s-exprs one of the earliest things I did was add a comment form to comment out an expression. And _especially_ in s-exprs it's almost
54.
▲
by
afranchuk
5y ago
This looks like it does what it sets out to do well. I think commits and changelogs serve separate purposes, but I have gone to commit some changes and wanted to at least see the text from the changelog enough times that I wrote a prepare
55.
▲
by
afranchuk
5y ago
Yeah, and besides the focus on error messages in past years, concepts will naturally allow template errors to be a _lot_ clearer, since they can serve as the specification of templated type requirements.
56.
▲
by
afranchuk
5y ago
Yeah as sfink said (and I should have clarified and used different vocabulary), this was "native" performance for most typical tasks like programming, it wasn't a gaming setup. Though there was still hardware accelerated grap
57.
▲
by
afranchuk
5y ago
FWIW, I got native windows performance on a Linux host just using virtualbox and (the key part) a virtual disk file that I manually edited to point directly to a windows partition on disk. This made it obvious that file IO was the bottlenec
58.
▲
by
afranchuk
5y ago
It's not clear to me how an implicit await could be implemented; a counterexample that immediately comes to mind is any of the FutureExt combinators in the futures crate. The await keyword indicates the point at which something is don
59.
▲
by
afranchuk
5y ago
"with cheese" seems to be exclusively in Pulp Fiction :D
60.
▲
by
afranchuk
5y ago
I had the same reaction. It reads a bit like the UI engineers didn't have enough to do and stared at it until they found things to change. For instance, having the tab visually disconnected to cue that you can rearrange it is fine... b
More ›