Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nayuki
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
64 ms
·
931.
▲
by
nayuki
4y ago
I'm even afraid of walking because of cars. Last week when crossing a driveway near where I live, twice a car blasted through the pedestrian crosswalk without even looking. Drivers are out of control and are blissfully (or willfully) u
932.
▲
by
nayuki
4y ago
[2021-02-12] <Daniel Stenberg> Will I ever rewrite curl in rust? I don't believe in rewrites, no matter which language. I believe in replacing code and fixing components gradually over time. That could mean that we have a curl
933.
▲
by
nayuki
4y ago
> Do you know that in MSVC uint16_t(50000) + uin16_t(50000) == -1794967296? That problematic value is produced by multiplication (*), not addition (+). It happens because uint16_t is unsigned short, and all arithmetic must be promoted to
934.
▲
by
nayuki
4y ago
The product has cryptography and cryptocurrency built in. Which part do you distrust?
935.
▲
by
nayuki
4y ago
I don't agree with the grandparent post but can offer an interpretation of what they mean. Languages like Go, Rust, Java, etc. are enormous and are designed and managed by a committee. Sometimes, they go in a direction that you might n
936.
▲
by
nayuki
4y ago
> The beauty of using C these days is that one gets to control every single byte No, not even close: Struct padding, compiling switch as if-else vs. jump, implicit arithmetic promotion to int, stack layout of local variables, and many ot
937.
▲
by
nayuki
4y ago
> All in all FLAC is not a complicated format. Not quite 400-lines-simple, but far from the complexities of Opus. Actually, FLAC is under 400-lines-simple. > This is my independent implementation FLAC, optimizing the code for clarity
938.
▲
by
nayuki
4y ago
Foone is not the only one expressing this sentiment. Here's another recent example: > Note: unfortunately, Hacker News found this post. I think I got them to go away. But if you're coming from there, please read about the parab
939.
▲
by
nayuki
4y ago
You rediscovered JSFuck (SFW): https://en.wikipedia.org/wiki/JSFuck , http://www.jsfuck.com/
940.
▲
by
nayuki
4y ago
I wish the state officially makes their income tax calculation available as machine-executable open-source software in an industry-standard language. For example, a Python function that takes a dictionary of inputs (gross income, number of
941.
▲
by
nayuki
4y ago
The "netheads vs. bellheads" war is captured in "Rise of the Stupid Network" by David Isenberg: https://www.hyperorg.com/misc/stupidnet.html
942.
▲
by
nayuki
4y ago
It's like they know that "Cool URIs don't change"! https://www.w3.org/Provider/Style/URI
943.
▲
by
nayuki
4y ago
Also on the HN front page right now, https://news.ycombinator.com/item?id=34541926 "A Fix-It-Yourself Trend for Appliances (1983)"
944.
▲
by
nayuki
4y ago
This explains the other link currently on the HN front page, https://news.ycombinator.com/item?id=34538156 "GE Answer Center, 1989 Commercial [video]"
945.
▲
by
nayuki
4y ago
My works over the years are accumulated on https://www.nayuki.io/ . Lately I finished writing a new PNG library ( https://www.nayuki.io/page/png-library ), and now I'm revamping a DEFLATE library
946.
▲
by
nayuki
4y ago
Rust has x.rem_euclid(y), which differs from the % operator. See https://doc.rust-lang.org/std/primitive.i32.html#method.rem_... . Full demo: https://play.rust-lang.org/?version=stable&mode=debug&am
947.
▲
by
nayuki
4y ago
I see similarities with Chinese https://en.wikipedia.org/wiki/Counting_rods
948.
▲
by
nayuki
4y ago
Handheld POS terminals exist in America but I found them to be rare. When I was in New Orleans last year and went to a bunch of restaurants, 9 out of 10 of them had the traditional opaque payment system. Only at one restaurant did I I exper
949.
▲
by
nayuki
4y ago
HN's front page is algorithmically determined, but not personalized to each user.
950.
▲
by
nayuki
4y ago
The tipping situation is numerically very similar in Canada, unsurprisingly. But at least in Canada, the waiter brings a wireless point-of-sale machine to the table for you to pay. Whereas in American, they take your credit card all the way
951.
▲
by
nayuki
4y ago
Yup. Hard to fire = hard to hire. Why should an employer take a chance on hiring you, if in case it doesn't work out, they need to spend considerable time and money to fire you?
952.
▲
by
nayuki
4y ago
This announcement is really beating around the bush and burying the lede. The sentence "And for this reason, today, we are reducing our employee base by about 6% across the company." comes after about 10 paragraphs, and is 70% dow
953.
▲
by
nayuki
4y ago
Python 2 is NOT simple. Why does str + unicode return unicode (Python 3 clearly separates bytes and str)? Why is there int vs. long (Python 3 dropped long)? Why can an inner function not assign to a variable of an outer function (Python 3 a
954.
▲
by
nayuki
4y ago
The proposed new rules for calling this() and super() aren't so foreign. It seems to be almost the same rules as for assigning final instance variables (e.g. class Foo { final int bar; } }), where you must definitely assign every final
955.
▲
by
nayuki
4y ago
"this() must always be called first in the constructor" is not true! Consider the following example: Foo(long x) { ... } Foo(double y) { this(Math.round(y)); } In the second constructor, the first call is Math.ro
956.
▲
by
nayuki
4y ago
> This screening of “The Grapes of Wrath” in the Soviet Union, however, did not land the way that Stalin anticipated. Rather than stir up anti-capitalist emotions, the Soviets that viewed “The Road to Wrath”, as it was titled in the U.S.
957.
▲
by
nayuki
4y ago
> Adding a new file, for example, requires that the filesystem compare the new item name to the name of every other file in the folder to check for conflicts, so trivial tasks like that will take progressively longer as the file count in
958.
▲
by
nayuki
4y ago
Agreed so much with this. The "mobile version" should be triggered by the viewport size, not by the subdomain. I was hoping this site redesign would have unified the mobile and desktop sites.
959.
▲
by
nayuki
4y ago
These might change your mind on reliability: https://github.com/glennrp/libpng/issues ; http://www.libpng.org/pub/png/libpng.html section "Security and Crash Bugs in Older Versions&
960.
▲
by
nayuki
4y ago
If the length comes last, how would you know how much data to read? Remember that chunks like tEXt are variable-length and not self-terminating; it relies on the outer level to signal the end of data.
More ›