Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
angus_gh
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
angus_gh
2y ago
Editions allow making breaking changes to Rust without splitting the ecosystem - no hassle caused to existing code unless it opts into the new edition and its breaking changes. There's currently editions 2015, 2018, 2021, and 2024. Whe
2.
▲
by
angus_gh
2y ago
Java's arrays use a signed 32-bit int as their length, so the longest they can be is about 2 billion elements. If your code has arrays over a billion elements, then it will fall over the moment someone inputs slightly larger data
3.
▲
by
angus_gh
3y ago
The no-gil fork of Python makes the builtin collections thread-safe, so that will remain not an issue (see the "Collection thread-safety" section of the design doc https://docs.google.com/document/d/18CXh
4.
▲
by
angus_gh
4y ago
Sidenote: this website performs poorly on Firefox for Android; every time the background updates, the page freezes for a second, so scrolling is jumpy
5.
▲
by
angus_gh
5y ago
Does your suggestion allow passing an extra argument into any of those functions? Like the value |> someFunction(1, %, 3)
6.
▲
by
angus_gh
6y ago
You can feel secure knowing if you lost your job, any other job you find would at worst pay $2.26 less than you're receiving now, so you wouldn't suffer an awful drop in living standards (and you'd hope it would also pressure
7.
▲
by
angus_gh
6y ago
The reason you get warned for doing `logger.debug("Got %s results", num)` instead of `logger.debug("Got {} results".format(num))` is that in the first case, internally it checks if the logger is disabled and if so skips
8.
▲
by
angus_gh
6y ago
You could also override the font-family of the main <code> to make it more readable; since it isn't code there's no need to use a monospace font. body code { font-family: sans-serif; }
9.
▲
by
angus_gh
6y ago
Try checking this website for the model of phone you have https://dontkillmyapp.com/
10.
▲
by
angus_gh
6y ago
In some ways yes, Java is not so strongly typed; a statically-typed language can be weakly typed. See C where ints, pointers, floats, and bools can almost all coerce into each other, such that the compiler will allow you to use arithmetic&#
11.
▲
by
angus_gh
6y ago
As the article says, they examined lots of languages, not just Kotlin (it would be arbitrary to confine their research to JVM languages..) >> While Java could not adopt the Swift approach wholesale because of existing language constra
12.
▲
by
angus_gh
6y ago
> can you provide links that show most js developers use typescript? They didn't say most developers had switched, they said most large projects have switched
13.
▲
by
angus_gh
7y ago
Where did you get the idea that records can't use annotations, have methods, or implement interfaces?: "Beyond the restrictions above, records behave like normal classes: they can be declared top level or nested, they can be gener