Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
afranchuk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
afranchuk
5y ago
Well, that's not a segfault. It's more likely that it's being compiled with an incorrect/specific architecture (e.g. using AVX2 instructions). Though it really shouldn't be using such instructions for basic math. It
62.
▲
by
afranchuk
5y ago
I did the exact same thing, trying for a better LaTeX. But my experience was different: I found it very easy to customize and programmatically generate content. However, I have used Racket and lisps/schemes before, so that is likely th
63.
▲
by
afranchuk
5y ago
Those are independent variables. The fact you've had X heads has no bearing on the future flips. It is irrational to bet on tails statistically speaking, though psychologically that line of reasoning is common.
64.
▲
by
afranchuk
6y ago
I agree I wish that would be nicer, but I've found the stable_abi crate to be quite convenient/easy for most situations. It is extra work, but with derive support it's often not too bad :)
65.
▲
by
afranchuk
6y ago
Yeah I definitely get that. I've never done a puzzle of this type before, but I have done a hell of a lot of logic puzzles (thanks to the Simon Tatham collection among others) so I was able to figure out a good attack vector. I agree,
66.
▲
by
afranchuk
6y ago
I just completed it, and can say with certainty that it is solvable by only taking into consideration two constraints at any given time, with the exception of 3 at just one point early on (and they were the easier constraints in the puzzle)
67.
▲
by
afranchuk
6y ago
Or a trait...
68.
▲
by
afranchuk
6y ago
I hope you mean it's not of much practical use to languages that already support macro definitions :) because otherwise, some would consider it very useful to be able to define arbitrary macros/syntactic forms!
69.
▲
by
afranchuk
6y ago
I would guess one reason it wasn't done in other languages was because people simply didn't have a good cross-architecture JIT compilation resource, and didn't want to write it themselves. LLVM makes this _really_ easy. I rea
70.
▲
by
afranchuk
6y ago
That's funny, I was just thinking this exact same thing the other day. HomeDepot.com has been getting seemingly worse and worse (especially this year if I'm not mistaken), but had to get some stuff from McMaster a few months back
71.
▲
by
afranchuk
6y ago
Agreed. They are the compile-time interfaces to templates' compile-time classes (so to speak, though obviously templates aren't limited to classes). I've been wanting them for so long; naturally error messages are better, but
72.
▲
by
afranchuk
6y ago
Yeah I was also confused. I wrote a bidirectional parser/writer layer for yaml in a haskell program I had at work. The yaml structure mappings were all declarative in the code and even allowed documentation for the structures to be pri
73.
▲
by
afranchuk
6y ago
I always enjoy the Xscreensaver visual that features a juggler with random siteswap patterns. Sometimes they're quite mesmerizing!
74.
▲
by
afranchuk
6y ago
mupdf also supports this.
75.
▲
by
afranchuk
6y ago
Good is very subjective :) but I've enjoyed using void linux [1] which has runit [2] rather than systemd. I believe a few other distros support runit (albeit maybe not officially), including Arch Linux. [1]: https://voidlinu
76.
▲
by
afranchuk
6y ago
I'd love to make it public when it is a bit more thorough. Right now it's just local. I really wanted to get to the point that it's self-hosted before going public, but naturally that's a little involved since it does in
77.
▲
by
afranchuk
6y ago
I've been working on a lisp that's strongly typed and basically only has functions that are the llvm C API, including JIT. With that you can build macros, type systems, etc. Basically much of the code you write as a user can be wh
78.
▲
by
afranchuk
6y ago
I think the sequence is "<Enter>~.". I use it often.
79.
▲
by
afranchuk
6y ago
We can never be too certain of anything, but I believe that the carcinogenic claims are based on a faulty study from the 60s that was later largely disproven in the late 70s, but the FDA never changed their guidance. I don't have the d
80.
▲
by
afranchuk
6y ago
I used Wt about a year ago for an application at work. I was able to write a GUI program that could be accessed at a web address or with a native Qt application, and Wt was equivalent enough (API-wise) that I was able to template between th
81.
▲
by
afranchuk
6y ago
There's a lot of detail and intricacy here (in that you could likely architect a design that didn't really rely on the sort of hierarchy you describe at all), but generally if you wanted something similar to [single] inheritance y
82.
▲
by
afranchuk
6y ago
I absolutely encourage exploring and experimenting, but I wouldn't call the current state (even now) of driving those displays easy. I had a few such displays (and have a decent amount of experience with electronics and reverse enginee
83.
▲
by
afranchuk
6y ago
I've been out of the React game for a while, and this is the first I've read about Hooks (or at least the first time I read enough to look into them). If I understand things correctly, they are automatic dependency tracking functi
84.
▲
by
afranchuk
7y ago
With regard to the rvalue vs perfect forwarding references comment: there's actually no special syntactic difference between the two. The reason forwarding works is because in template <typename T> void do_thing(T&&
85.
▲
by
afranchuk
7y ago
This is true, thanks for the specifics. I was answering the question from a more generic perspective, but failed to mention that many implementations rehash on collision...
86.
▲
by
afranchuk
7y ago
Yeah I know, it was just the fastest way to indicate that the constant factor was almost definitely larger for HashMaps. But thank you for clarifying!
87.
▲
by
afranchuk
7y ago
A BTreeMap should typically have O(n) memory usage, whereas a HashMap (depending on load factor) will usually have O(kn) memory usage, where k > 1. This is because a HashMap allocates the table into which it will store hashed values upfr
88.
▲
by
afranchuk
7y ago
If it doesn't, I think one could extend it to work with X forwarding since it seems to be running the applications in a separate X session (just like X forwarding).
89.
▲
by
afranchuk
7y ago
Many languages with powerful macro systems can do the same. Still, it's cool/promising to see a .NET language capable of compile-time execution like this when they do not support macros in the same way that other languages do (but
90.
▲
by
afranchuk
7y ago
I've been anxiously awaiting modules and concepts. Both are incredibly important to reduce developer burden and improve the development experience. Modules: While it is important to be able to fine-tune linking and compilation in some
More ›