Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
DougBTX
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
271.
▲
by
DougBTX
5y ago
Also notably Go, though really all GC languages which care about performance, of which there are quite a few.
272.
▲
by
DougBTX
5y ago
So maybe the problem with showing all the comments at once is that there are too many, and when showing one at a time they are not shown for long enough. How about breaking the play into chapters/zones/rooms/segments (whateve
273.
▲
by
DougBTX
5y ago
Any article like this needs a link to the Amazon API Mandate: https://nordicapis.com/the-bezos-api-mandate-amazons-manifes...
274.
▲
by
DougBTX
5y ago
Julia strikes a nice middle ground. Functions which don't specify the types of their arguments are implicitly generic, and are JIT compiled when called based on what the actual argument types are. So even if a function doesn't hav
275.
▲
by
DougBTX
5y ago
I don't buy that argument, as a programmer you have to write out code following a precise syntax all the time. Programming would be insanely tedious without knowing correct syntax. Having said that, if someone came up with an interview
276.
▲
by
DougBTX
5y ago
> this is essentially cache invalidation, mixed with relativity/causality In a sense these are quite closely related, the challenge with caches is when they go out of sync with their source data, as then reads/writes against th
277.
▲
by
DougBTX
5y ago
> the much hated "agile" culture I never got on well with Scrum, especially with the way it has become synonymous with “agile”. Really a shame that “agile” which focused on people has been swamped as a term by Scrum which is pr
278.
▲
by
DougBTX
5y ago
I was expecting this to be like `git blame`, but to automatically check previous revisions for any lines touched by the current user. That would be a fun toy :-)
279.
▲
by
DougBTX
5y ago
With images: https://ericweinhoffer.com/blog/2017/7/30/the-whitworth-thre...
280.
▲
by
DougBTX
5y ago
> You have 3 sections labelled 1. That’s taking advantage of auto-renumbering in markdown, so if they insert an entry they won’t have to change any others.
281.
▲
by
DougBTX
5y ago
Maybe! > A number of later studies have concluded that a global sea level rise of 200 to 270 cm (6.6 to 8.9 ft) this century is "physically plausible".[8][2][9] https://en.m.wikipedia.org/wiki/Sea_level_ris
282.
▲
by
DougBTX
5y ago
c5
283.
▲
by
DougBTX
5y ago
In the small section where they quote Amazon’s perspective, it says: > tell the employee that their performance is not meeting expectations Then the rest of the article is all quotes about employees who are not sure if they are meeting e
284.
▲
by
DougBTX
5y ago
One way to look at these models is to say that they take raw input, convert it into a feature space, manipulate it, then output back as raw text. A nice example of this is neural style transfer, where the learnt features can distinguish con
285.
▲
by
DougBTX
5y ago
I quite like the “enumerate” pattern. When indexes matter, instead of `for x in v` you would write, `for (i, x) in enumerate(v)`, then the language only needs one type of for loop as both cases use the same enumerator interface.
286.
▲
by
DougBTX
5y ago
It would be fair for a browser to assume that if you’ve just visited one page that you might return soon, and so keep assets in cache for a little while.
287.
▲
by
DougBTX
5y ago
Here's an example teardown: https://guide-images.cdn.ifixit.com/igi/iUejB4OfKlPD4Fex.hug... The heat pipe is the part just above and to the left of the fan.
288.
▲
by
DougBTX
5y ago
> thus bloating the type Mildly off-topic, but as of Rust 1.50 [0], Option<File> is now the same size as File, as "-1" can be used to represent no-file. You're completely right though about how it would be good to un
289.
▲
by
DougBTX
5y ago
Debian has a policy for a packaging Rust crates: https://wiki.debian.org/Teams/RustPackaging/Policy If you restrict yourself to packages in the repo, won’t that resolve the issue? The idea of a distro is that all
290.
▲
by
DougBTX
5y ago
I meant "reproducible builds" in the sense of: https://reproducible-builds.org/docs/definition/ > A build is reproducible if given the same source code, build environment and build instructions, any p
291.
▲
by
DougBTX
5y ago
The technical difference would be that a keylogger logs keystrokes regardless of where the focus is, whereas normal "respond to key events" logic would be restricted to capturing key events in a field where the user understands th
292.
▲
by
DougBTX
6y ago
Maybe kinda, but really you'd want reproducible cross-compilation too, so a reproducible build should produce the same binary regardless of which machine it is run on.
293.
▲
by
DougBTX
6y ago
That example is using “logical vectors”, which you’d come across in more data-science languages like Matlab, Octave, R, etc. Julia[1] has a more modern take on y==1, by having explicit syntax for element-wise operations, so it uses y.==1 in
294.
▲
by
DougBTX
6y ago
Multiple dispatch is not too different to method overloading, so you could start there for comparable examples, maybe in programming languages you are more familiar with: https://en.wikipedia.org/wiki/Function_overloadi
295.
▲
by
DougBTX
6y ago
In some languages the documentation is available as essentially a property of the documented object, so pulling up docs in the repl is easy. It isn’t quite a binary choice.
296.
▲
by
DougBTX
6y ago
In Rust to_lowercase returns a String, which is an owned struct with heap allocated data, so it is reasonably clear that it allocates. In contrast, trim_start for example returns a reference to a string slice with the same lifetime as the s
297.
▲
by
DougBTX
6y ago
Go doesn't guarantee any encoding for strings, very deliberately (so that, eg, they can be used to represent file names).
298.
▲
by
DougBTX
6y ago
The date should be (2013) not (2018), as that dates it before Rust 1.0 (which does have a UTF-8 string type) and before the Julia 1.0 release date (which implements UTF-8 strings as arrays with irregularly spaced indexes, eg, the valid inde
299.
▲
by
DougBTX
6y ago
Pretty much the same as in the PEP: https://www.python.org/dev/peps/pep-0636/#adding-conditions-...
300.
▲
by
DougBTX
6y ago
It works without the cast if Shape is a generic function itself: type Shape = <T>( circle: (x: number, y: number, r: number) => T, rectangle: (x: number, y: number, w: number, h: number) => T ) => T;
More ›