Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Leszek
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
Leszek
6y ago
If that sounds like an "ether" to you, wait until you read about https://simple.wikipedia.org/wiki/Higgs_field
92.
▲
by
Leszek
6y ago
This video from Captain Disillusion does a great job of explaining both the biological mechanism and the consequences it has on displays: https://youtu.be/FTKP0Y9MVus
93.
▲
by
Leszek
6y ago
I like Jonathan Blow and all, but he should be careful with trashing academic parsing theory if he thinks that Pratt parsing was only discovered "in the last few years".
94.
▲
by
Leszek
6y ago
> Or could there be a way to alter the execution graph so that once you add in the optimization, you never have to check if it's there? One of the things V8 does is store "field dependencies" -- a list of optimized code at
95.
▲
by
Leszek
6y ago
One interesting aspect of this is that they still explicitly expect "synchronous" work, timezones be damned: > We have initially designated 9am to 3pm Pacific Time as “coordination hours” where most employees will be expected t
96.
▲
by
Leszek
6y ago
One thing the author doesn't discuss is that the Boom objects themselves are also in memory, and also have to be accessed -- and can therefore also be visited not in memory order, and cause cache misses. Changing this to a "struct
97.
▲
by
Leszek
6y ago
Escaping isn't an intrinsic property of all quoted strings (e.g. single quoted strings in bash), but even so one can work around them without backreferences, by searching for anything that's not a quote or a backslash, _or_ any es
98.
▲
by
Leszek
6y ago
I assume OP meant the securing side, not the RE side.
99.
▲
by
Leszek
6y ago
I guess, and I say this as a native speaker of both languages, agree to disagree ¯\_(ツ)_/¯
100.
▲
by
Leszek
6y ago
"Uporządkować" can be "sort out" too, though I'd more often translate it as "tidy up"; "zająć się czymś" is roughly "take care of something", maybe you could use "occupy yourself w
101.
▲
by
Leszek
6y ago
"Sort out" is a pretty solid translation IMO
102.
▲
by
Leszek
6y ago
There's also a _great_ talk from the creator (Sam Aaron) on Sonic Pi, including live-coding examples and some wonderful insights on how computer science is taught in schools: https://www.youtube.com/watch?v=OLLwG_SN8oo
103.
▲
by
Leszek
7y ago
V8 has a hand rolled JSON parser which feeds directly into our object model without any intermediate data structures. This allows us to take advantage of structural knowledge, e.g. we assume that objects in an array have the same shape (and
104.
▲
by
Leszek
7y ago
Is uncompression a derivation?
105.
▲
by
Leszek
7y ago
It's actually very relevant, the TL;DR (from memory) is that lawyers (and judges) aren't programmers, and the source of data (referred to as the "colour of the bits") is as important as the actual bits of the data. Thus
106.
▲
by
Leszek
7y ago
Well, JavaScript Map preserves insertion order when iterating entries, and as of ES2015 (i.e. ES6), for-in also iterates the (string, non-numeric) properties of an object in insertion order.
107.
▲
by
Leszek
7y ago
Yeah, sorry about that, it's fixed now.
108.
▲
by
Leszek
7y ago
There's likely an interesting Ship of Theseus debate to be had about whether these are indeed thousand-year-old windmills, and whether it's accurate to consider the windmills build a thousand years ago to be "still standing&q
109.
▲
by
Leszek
7y ago
Bytecode aging actually existed already for other reasons (expiring code caches).
110.
▲
by
Leszek
7y ago
I had thought that, as long as the object in that location is valid (e.g. constructed with placement new and not since destructed, with the `char ` as a pointer to the storage), then accessing it through the `char ` is valid -- but maybe th
111.
▲
by
Leszek
7y ago
You'd think so, but in fact reinterpret_cast from char* (and unsigned char , and std::byte ) is explicitly allowed by the type aliasing rules.
112.
▲
by
Leszek
7y ago
Though to be fair, full source strings are kept around in memory for lazy compilation anyway (and other lazy computation).
113.
▲
by
Leszek
7y ago
Yeah, for someone not used to the code it's tough. The "insider knowledge" is that builtins defined in .tq files (files compiled by the Torque compiler[0]) are added to entries in the Builtins enum, which itself is defined as
114.
▲
by
Leszek
7y ago
A more detailed look will show that it uses Timsort: https://cs.chromium.org/chromium/src/v8/third_party/v8/built...
115.
▲
by
Leszek
7y ago
> And I thought they had ways to construct hash functions so that all the inputs of the same length have a different output? That's trivially impossible for fixed-size hashes, by the pigeon hole principle.
116.
▲
by
Leszek
7y ago
You want a conditional expression in JavaScript ? you could use the ternary operator : you don't have to use it if you don't want to though;
117.
▲
by
Leszek
7y ago
"second to none" means "best" ("there is no one it is second to, thus it is first")
118.
▲
by
Leszek
7y ago
Maybe it would make more sense to show overdue promises first.
119.
▲
by
Leszek
7y ago
Germany has similar workers' rights and protection from firing, yet it has a lower unemployment rate.
120.
▲
by
Leszek
7y ago
Thank you for mentioning micro- vs macro-readability, I feel that too often people concentrate on the former without considering the latter.
More ›