Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nayuki
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
35 ms
·
421.
▲
by
nayuki
2y ago
> I get 94.9% for 243/256 You're looking at the alphabet utilization rate. Whereas the standard way to measure efficiency (which is the way that the author did it) is to look at entropy. Here's how I would phrase it. Obvio
422.
▲
by
nayuki
2y ago
Some basic things in the article appear to be factually wrong. > Then we ask us the following questions: > 1. When we passed Dave to show, did we create a copy? > 2. If so, how do we avoid creating a copy? > C++ example > 1.
423.
▲
by
nayuki
2y ago
https://en.wikipedia.org/wiki/Thomas_Midgley_Jr . , and a video by Veritasium https://www.youtube.com/watch?v=IV3dnLzthDA (25 min)
424.
▲
by
nayuki
2y ago
> In the case of leaded gas we got literally no benefit. There was never a legitimate reason to put lead in motor fuels. That's not true. The benefit was anti-knocking without using more expensive high-octane fuel (or later, ethanol
425.
▲
by
nayuki
2y ago
> our societal acceptance of death comes from an inability to imagine anything otherwise CGP Grey captures this sentiment nicely in this animated essay: https://www.youtube.com/watch?v=cZYNADOHhVY "Fable of the Drag
426.
▲
by
nayuki
2y ago
Good questions. CD distortion include hard clipping from amplifying too much, whereas vacuum tubes and magnetic tape have soft saturation (still a distortion, just a different kind). Another distortion is that dynamic range compression is u
427.
▲
by
nayuki
2y ago
On the other hand, whenever a Black person is successful, it's okay to mention that in the headline.
428.
▲
by
nayuki
2y ago
Web is definitely better than mobile (Android/iOS) apps, as apps are hard to develop and hard to debug.
429.
▲
by
nayuki
2y ago
Your comment resonates with me a lot. I have a passion for programming, as evidenced by my website. I have a history of jobs that pay well (as far as Canada goes). But every job has been rather boring and have not been a good fit for my ski
430.
▲
by
nayuki
2y ago
Good observation. That would be for https://blog.koenvh.nl/what-does-this-button-do-cm42u2oi7000... , https://news.ycombinator.com/item?id=42276620 .
431.
▲
by
nayuki
2y ago
Technically, Python typing is more verbose than Java because it uses more tokens. Compare these: Python: def foo(x: int, y: int) -> int: return x + y Java: int foo(int x, int y) { return x + y; } Python uses colons and arr
432.
▲
by
nayuki
2y ago
Explain how
433.
▲
by
nayuki
2y ago
It's not backward. It means that wealthy IP owners pay more tax to society for the privilege of earning more!
434.
▲
by
nayuki
2y ago
> Banknotes are useful. Not only do they provide their owner with a standard set of payments services, they also offer financial anonymity. > The product is weaponized and turned against its provider. This same sort of weaponization c
435.
▲
by
nayuki
2y ago
A similar item on the HN front page: https://www.nytimes.com/2024/11/14/business/media/alex-jones... , https://news.ycombinator.com/item?id=42136259 "The Onion Buys Alex Jones&
436.
▲
by
nayuki
2y ago
Which interestingly is illegal in Montreal / Quebec in Canada. (Signs must contain French text and the French text must be no smaller than other languages.)
437.
▲
by
nayuki
2y ago
Related: https://youtu.be/-ht7nOaIkpI?t=699 . MyLifeOutdoors - "Your Gear is Poisoning You! (Not Clickbait)" (14m21s) [2024-10-23] He mentions finding PFBA ( https://en.wikipedia.org/wiki/Perf
438.
▲
by
nayuki
2y ago
Great article reflecting on who controls computational resources - the user or the company. I want to respond to one point mentioned: > Those who continue to do significant work offline will become the exception; meaning they will be an
439.
▲
by
nayuki
2y ago
The first piece of code is perfect in Java: int t = (val_11b << (32 - 11)) >> (32 - 11).
440.
▲
by
nayuki
2y ago
Oddly related to today's video from Half as Interesting about covering up snow on ski slopes during the summer: https://www.youtube.com/watch?v=PB3rYfJjcMk
441.
▲
by
nayuki
2y ago
I understand where you're coming from. I think you're implicitly assuming that once you scan a QR code, your phone automatically opens that URL. That is a faulty assumption. There's nothing stopping someone from designing a Q
442.
▲
Veritasium: I used to hate QR codes. But they're genius [video]
(youtube.com)
3 points
by
nayuki
2y ago
|
6 comments
443.
▲
by
nayuki
2y ago
Reading destroys the stored value; it doesn't necessarily destroy the physical material. Reading from memory is already destructive in DRAM (capacitor gets discharged), magnetic core memory (need to alter the magnetization state to rea
444.
▲
by
nayuki
2y ago
> good luck with that... electrical power engineering speaks in kWh not MJ Then it's industry-specific jargon. Note that some places bill your natural gas consumption in megajoules. Food energy is quoted in kilojoules in SI, or calo
445.
▲
by
nayuki
2y ago
> "Fuel consumption of 9.4 L / 100 km" is not "the right form" is a modern take No, it is the right form. > a more classic and still valid SI one is km/l The SI one has always been L/km. Any use of k
446.
▲
by
nayuki
2y ago
Negative exponents do look odd. I first saw it in RollerCoaster Tycoon like 25 years ago. Units with negative exponents are non-existent in everyday discourse (articles for the general public, product labels, commercial catalogs, etc.) and
447.
▲
by
nayuki
2y ago
> assumed "giga" is capitalised because it one might confuse a lower case g for "grams" Note that m is milli and m is metre; overlap hasn't stopped collisions between prefixes and units. > "Hz" could
448.
▲
by
nayuki
2y ago
The Kelvin(uppercase) scale is named after Lord Kelvin(uppercase), the unit is the kelvin(lowercase), and the symbol is K(uppercase). This agrees with all SI units named after a person. The unit's name is lowercase (unless at the begin
449.
▲
by
nayuki
2y ago
> nice to know the risks of making each of these mistakes ... only found a few places where a mistake can have real negative consequences ... context is king That's an excellent question. As an analogy, I would say that it's si
450.
▲
by
nayuki
2y ago
> A cubic centimetre (or cubic centimeter in US English) (SI unit symbol: cm³; non-SI abbreviations: cc and ccm) -- https://en.wikipedia.org/wiki/Cubic_centimetre > Although still widely used in physics and chemi
More ›