Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nayuki
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
241.
▲
by
nayuki
2y ago
I read somewhere that life is more efficient at dissipating energy and faster at increasing entropy than non-living physical/chemical phenomena. Citation needed.
242.
▲
by
nayuki
2y ago
Same problem for me on Firefox 137.0.1 and Chrome 135.0.7049.85. Having mixed HTTPS/HTTP content is a big no-no for webmasters.
243.
▲
by
nayuki
2y ago
> And having to do with computers, with electronic as synonym. Computers do not have to be electronic. Counterexamples: Mechanical calculators, LEGO logic gates, hydraulic logic valves, electrical (not electronic) relays. Heck, even huma
244.
▲
by
nayuki
2y ago
> mechanical watches are among the very finest fossils of the pre-digital age Clocks have discrete ticks. They are digital devices. Even a base-60 second hand is digital because the number of states is finite. Mechanical and digital are
245.
▲
by
nayuki
2y ago
Somewhat related, Not Just Bikes / Jason Slaughter talked about how large fire trucks create the need for wide roads, which enables normal car drivers to go at dangerously high speeds. https://www.youtube.com/watch?v=j2
246.
▲
by
nayuki
2y ago
Excellent article that resonates with me a lot. > Read the Reference > If there was one thing that I should have done as a young programmer, it would have been to read the reference of the thing I was using. I.e. read the Apache Webse
247.
▲
by
nayuki
2y ago
> if you needed to exceed 50%, you could have just combined two different square waves I don't think this is possible. A balanced square wave has no even harmonics in the frequency domain. Anytime the duty cycle is not 0%, 50%, or
248.
▲
by
nayuki
2y ago
I also demonstrate square waves synthesized with the Fourier approach, along with a duty cycle parameter: https://www.nayuki.io/page/band-limited-square-waves
249.
▲
by
nayuki
2y ago
Thanks for your response and taking my comments seriously. > I take issue with the standard ... the original sin is in the standard Me too! As per my other comments, I think the C and C++ standards are insane with so many cases of UB, an
250.
▲
by
nayuki
2y ago
> no popular language created in the past 30 years makes heavy use of UB Yeah, I'm happy that Rust's list is relatively short, with approximately 10 items on it: https://doc.rust-lang.org/reference/behavior
251.
▲
by
nayuki
2y ago
> What you are doing is pushing all responsibility on the user. Which is exactly the ridiculous mindset that continues to make C and C++ software shit. Correct, because that's what the C and C++ language standards say. Once the pr
252.
▲
by
nayuki
2y ago
The problem isn't ++k per se. The problem is the expression d[++k], which immediately reads d[16] before realizing that `k < 16` is false. Look at your sibling comments for explanations and corrections: https://news.ycomb
253.
▲
by
nayuki
2y ago
Regarding the wrong code, I already wrote (and you can confirm in my unrolled analysis): > every instance of testing `k < 16` is true before we hit UB. Therefore it can be simplified to true without loss of functionality, because afte
254.
▲
by
nayuki
2y ago
Reference: https://c9x.me/compile/bib/ubc.pdf#page=4 Both the parent comment and the referenced paper fail to mention the out-of-bounds access of d[16]. At best, the paper says: > The compiler assumed that no o
255.
▲
by
nayuki
2y ago
> It's because the UB must be continuously exploited by compilers for that extra 1% perf gain. Your framing of a compiler exploiting UB in programs to gain performance, has an undeserved negative connotation. The fact is, programs a
256.
▲
by
nayuki
2y ago
Related, also on the HN front page right now: https://news.ycombinator.com/item?id=43495617 , https://www.anthropic.com/research/tracing-thoughts-language...
257.
▲
by
nayuki
2y ago
Nice project. A few miscellaneous notes: > Kinda cool that you can see a lens flare effect in the shape of the lens grid array. A lens flare is just a copy of the scene you are photographing, but strongly attenuated in brightness, and po
258.
▲
by
nayuki
2y ago
Additionally: * Use the minus sign /−/ (U+2212) when formatting numbers, because the default hyphen-minus /-/ (U+2D) just looks wrong: "It is −1 °C vs. -1 °C." Moreover, the correct minus has the same width as
259.
▲
by
nayuki
2y ago
There are some specialized text editors for editing files with tabs. https://en.wikipedia.org/wiki/Tab_stop#Dynamic_tab_stops , https://nick-gravgaard.com/elastic-tabstops/ , https://ti
260.
▲
by
nayuki
2y ago
I greatly prefer TSV over CSV. https://en.wikipedia.org/wiki/Tab-separated_values
261.
▲
by
nayuki
2y ago
Additionally: * Use the minus sign /−/ (U+2212) when formatting numbers, because the default hyphen-minus /-/ (U+2D) just looks wrong: "It is −1 °C vs. -1 °C." Moreover, the correct minus has the same width as
262.
▲
by
nayuki
2y ago
It's my first time hearing of this, so I went and found some screenshots: https://www.zdnet.com/article/first-photos-windows-mobile-6-... , https://venturebeat.com/social/windows-mobile-65-scr
263.
▲
by
nayuki
2y ago
The old PNG specification also explained the rationale: http://www.libpng.org/pub/png/spec/1.2/PNG-Rationale.html#R.... But the new spec doesn't explain: https://www.w3.org/TR/2
264.
▲
by
nayuki
2y ago
A relevant video by Real Engineering: "Geothermal Energy is Changing" https://www.youtube.com/watch?v=b_EoZzE7KJ0 (21m53s) [2025-03-01] The company being discussed is Quaise Energy: https://www.quaise.e
265.
▲
by
nayuki
2y ago
For the 5 algorithms you mentioned, I know them well. > SHA-1 and AES also vary by the round Vary what by the round? SHA-1 ( https://www.nayuki.io/res/cryptographic-primitives-in-plain-... ) is structured very simil
266.
▲
by
nayuki
2y ago
I am familiar with the low-level arithmetic in MD5 (e.g. https://www.nayuki.io/res/cryptographic-primitives-in-plain-... ). Exactly which calculations are you pointing to that result in a secondary calculation?
267.
▲
by
nayuki
2y ago
> it’s not too hard to make a compiler support a function attribute that says “do not optimize this function at all” Note that memset_s() is an existing special case already. https://en.cppreference.com/w/c/stri
268.
▲
by
nayuki
2y ago
> https://stack.lol/ The page layout is broken in Firefox 136.0.1 but okay in Chrome 134.0.6998.89 =(. I don't have time to debug what CSS feature might be causing this problem.
269.
▲
by
nayuki
2y ago
> this whooshing noise is not generated by the piezoelectric part but rather from the connected focusing mechanism Indeed. I never implied that the piezoelectric part makes an audible whooshing noise. I only meant to say that the entire
270.
▲
by
nayuki
2y ago
> With regards to USM noise Here is a video showing the "whooshing" noise of Ring USM, and it is clearly in the audible range (not ultrasonic): https://imgur.com/a/canon-ring-usm-autofocus-sound-YCrV1CR &g
More ›