Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jhomedall
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
91.
▲
by
jhomedall
8y ago
'V' here means 'verb', and 'N' means noun. https://www.ibiblio.org/apollo/ForDummies.html
92.
▲
by
jhomedall
8y ago
That's still event handling. You can do basic binding between outputs and values, but more macroscopic changes (closing a dialog, changing tabs, etc) requires tracking the state your UI is in, and manually transitioning. This is marked
93.
▲
by
jhomedall
8y ago
React isn't really anything like 90s UI libraries. It is, however, very much like the fairly recent native immediate-mode GUIs that have come out ( https://github.com/ocornut/imgui , https://github.com&#x
94.
▲
by
jhomedall
8y ago
> I'd be curious to see that. https://twitter.com/joshbloch/status/822948565433466881
95.
▲
by
jhomedall
8y ago
With even a tiny bit of CSS (which can be inlined in the head tag if you don't want an extra fetch), you end up with this: https://jmn.link/css-example.jpg . That's 152 bytes of non-minified CSS to accomplish that
96.
▲
by
jhomedall
8y ago
JIT compilation makes decisions on how to optimize the generated code based on run-time analysis the program. AOT compilation doesn't have access to that information, which can lead to slower code. However, because AOT compilation isn&
97.
▲
by
jhomedall
8y ago
> (also i simply can't wrap my head around rust since i never really learned programming from the ground up...). C is a good language for learning this. Just don't use your resulting programs on untrusted input; you _will_ make
98.
▲
by
jhomedall
8y ago
There are several implementations of Common Lisp that are still being actively developed. Because Common Lisp is so easily extended, the ossification of the standard is actually a good thing. The stability of the standard means that code wr
99.
▲
by
jhomedall
8y ago
> How did you solve the parsing of arbitrarily nested structures? Write a recursive descent parser, or use a parser generator. Or, more realistically, use one of the many libraries available for parsing it (pretty much every language has
100.
▲
by
jhomedall
9y ago
I use the Overtype extension for that: https://marketplace.visualstudio.com/items?itemName=adammara... It hasn't been updated in over a year, but I've yet to have any issues with it.
101.
▲
by
jhomedall
9y ago
Scala 3 will still be able to use Scala 2 libraries, so it won't be quite as bad.
102.
▲
by
jhomedall
9y ago
Modern C compilers do some very tricky things with undefined behavior. See https://blogs.msdn.microsoft.com/oldnewthing/20140627-00/?p=... for a very detailed example. See https://blog.regehr.org/a
103.
▲
by
jhomedall
9y ago
That appears to be an intended future use for WebAssembly: http://webassembly.org/docs/non-web/
104.
▲
by
jhomedall
9y ago
I don't have enough context to know if this will work in your situation, but I believe he meant something like the following: def create_callback(request): def invite_accepted(sender, email, **kwargs): request.sessi
105.
▲
by
jhomedall
9y ago
It won't. If any of the functions on the right-hand side of the '<-' return Nothing, then the later lines do nothing. Think of the '<-' operator as a 'flatMap' call for Optionals in Java, if you are
106.
▲
by
jhomedall
9y ago
A woman does not equal a man, and she shouldn't. Careful with your wording here. I'm assuming you meant 'is not the same as'; however 'does not equal' could easily be interpreted as 'not the equal
107.
▲
by
jhomedall
9y ago
I don't use Node, but my understanding is as follows: Rather than blocking the thread on IO, you instead arrange for a callback to be executed once your IO operation is completed. The thread is then free to work on other tasks (e.g. ot
108.
▲
by
jhomedall
9y ago
I suspect the sparse encoding was used so that punched cards were stiff enough to survive being fed through a reader. (related: https://en.wikipedia.org/wiki/Lace_card )
109.
▲
by
jhomedall
9y ago
In many cases the function passed in will not make any sense outside of the context in which it is used. For example, consider: const kittenNames = cats.flatMap(cat => cat.kittens) .map(kitten => kitten.n
110.
▲
by
jhomedall
9y ago
You might be confusing the associative property with the commutative property (I do this all the time): associative: (a + b) + c = a + (b + c) commutative: a + b = b + a For example, appending strings is associative, but not commutative. Ap
111.
▲
by
jhomedall
9y ago
That's fascinating; thank you for that. I often find academic papers are too densely written to me to read, but the authors of that paper have gone out of their way to describe everything in a straightforward manner.
112.
▲
by
jhomedall
9y ago
Deterministically locating all undefined behavior is undecidable. Static analyzers can only locate a subset of it. Commonly-used type punning techniques frequently exhibit undefined behavior due to strict aliasing: https://blog.r
113.
▲
by
jhomedall
9y ago
While Rust is extremely promising, there is a ton of C code out there that isn't going away any time soon.
114.
▲
by
jhomedall
10y ago
There's a lot more to data structures and algorithms than sorting. For example, just knowing that bloom filters or interval trees exist opens up a ton of options, even if you don't implement them yourself. For that matter, the cho
115.
▲
by
jhomedall
10y ago
For anyone more interested in this, the most relevant cases are "Pace v. Alabama" ( https://en.wikipedia.org/wiki/Pace_v._Alabama ), and "Loving v. Virginia" ( https://en.wikipedia.org/
116.
▲
by
jhomedall
10y ago
I find the map/flatMap version easier to follow, myself. It does takes some time to grow accustomed to, though.
117.
▲
by
jhomedall
10y ago
There are a staggering number of high-quality, open-source libraries available for it.
118.
▲
by
jhomedall
10y ago
Linus directly contradicts you in that linked thread, for this specific situation: And as mentioned, there _are_ exceptions. Some types just get _sooo_ complex that it's inconvenient to type them out, even if they are perfectly
119.
▲
by
jhomedall
10y ago
That's fantastic news! I currently use Scala for most of my personal development, but having type classes would make F# attractive enough for me to switch over. I much prefer the cleaner syntax of F#. Losing HKT would be a shame, but t
120.
▲
by
jhomedall
10y ago
You only have to learn what '?' does once. You have to write (and more importantly, read) the Go boilerplate every time.
More ›