Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
moefh
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
121.
▲
by
moefh
2y ago
It depends on your definition of "normal number". You seem to be using what wikipedia[1] calls "simply normal", which is that every digit appears with equal probability. What people usually call "normal number"
122.
▲
by
moefh
2y ago
Ah, a vaguely wondered if it had something involving Cauchy sequences, I think that was that limit! > The way we extend exponentiation to complex exponents is IMHO much less straightforward. I think it depends on how much you're use
123.
▲
by
moefh
2y ago
> But the Euler equation e^iπ = -1 has nothing to do with exponentiating e, it's just a notational convention that is defined to be the series above. Can't the same thing be said about using fractions on the exponent? Exponen
124.
▲
by
moefh
2y ago
Neither of those things are undefined behavior, but gcc with -Wextra already warns about both: warn.c:6:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compa
125.
▲
by
moefh
2y ago
> I don't think this works just because she's masking it. I'm pretty sure it's working because she cast (255 & p[0]) to uint32_t You're right, masking does nothing to solve the problem, what does it is the ca
126.
▲
by
moefh
2y ago
> No reasonable reading of that makes it a "22% success rate". Well, 500/2300 is 22%, so calling it 22% seems pretty reasonable. From what I get from the rest, the 78% remaining tests (the ones that failed to convert) were
127.
▲
by
moefh
2y ago
The problem (to me) is that they welcomed that PR and requested corrections until it was in a good enough shape to be accepted, without any indication that it wouldn't be accepted unless/until they had financial support from RPi
128.
▲
by
moefh
2y ago
Do they sell chip-like modules with camera connectors and battery controllers, though? I don't deny that ESP32 modules look like and are soldered as though they were chips, but to me it's clear that GP was mixing up chips (and chi
129.
▲
by
moefh
2y ago
Just to note: with the RP2040 you don't need additional hardware (debug probe) for quick iterative development, you can use picotool[1] (using -f allows you to flash and reboot without needing to get it to bootsel mode). [1] https:&#x
130.
▲
by
moefh
2y ago
GP is clearly talking about ESP32 boards, not the chip; they mentioned "LI Battery Controller", and "Display or Camera Connector". People sell RP2040 boards with those too, for example: - board with a battery charger: h
131.
▲
by
moefh
2y ago
> What about other systems? The Linux kernel doesn't validate filenames in any way, so a filename in Linux can contain any byte except 0x2F ('/', which is interpreted as directory separator) and 0x00 (which signals th
132.
▲
by
moefh
2y ago
I agree with everything you said, I just don't see why we need both UTC and TAI. That is, I don't understand why we insist on keeping UTC synchronized with Earth's orientation. On the one hand (like you said before), UTC is w
133.
▲
by
moefh
2y ago
> It has nothing to do with time zones. [...] And having a leap hour instead of a leap second would be a whole order of magnitude worse [...] The idea is exactly to not have a leap hour, UTC is kept completely untouched. Everyone chang
134.
▲
by
moefh
2y ago
I thought that was the plan when they decided to give up on leap seconds. I don't get the insistence on keeping nominal seconds-alignment (or even minutes-alignment) between the clock and the sun's position; we already don'
135.
▲
by
moefh
2y ago
But the people suing aren't trying to choose how the license is interpreted, they're trying to prevent the other party from changing the text. If the change is meant to "fix" how the text should be interpreted (which is
136.
▲
by
moefh
2y ago
> a judge is likly to assume people using the licence before it came to light also did not Why would the judge have to assume anything? The person suing could simply tell the judge they did mean to use the older interpretation, and tha
137.
▲
by
moefh
2y ago
I don't think it's different, there's a note about it on VLC's wiki: https://wiki.videolan.org/Frequently_Asked_Questions/#Is_lib...
138.
▲
by
moefh
2y ago
I had never heard of MARC-8 before, but after a quick google search: "There are no defined MARC-8 character sets for Armenian, Bengali, Devanagari, Ethiopic, Syriac, Tamil or Thai."[0] "If a character is not representable in
139.
▲
by
moefh
2y ago
I think Ben Eater's 8-bit computer is closer to what you want: https://eater.net/8bit/ It's been a few years since I studied it (I even built the clock module, registers and the ALU), but from what I remember
140.
▲
by
moefh
2y ago
There's this one that goes one step beyond that, it's built out of 40,000 discrete transistors: https://www.youtube.com/watch?v=z71h9XZbAWY EDIT: there's more information here: https://www.megaproc
141.
▲
by
moefh
2y ago
For that to make sense, the n-dimensional sphere must not live in an Euclidean n-dimensional space, but a space over the complex numbers (a Hilbert space) -- that is, coordinates for the space are complex numbers. Also note that (this is a
142.
▲
by
moefh
3y ago
You seem to have changed the object of the argument from phone companies to governments/the police, but are still insisting in making a comparison that I'm trying to explain is not valid. (The shift from phone companies to governm
143.
▲
by
moefh
3y ago
If you really don't understand that the argument "If phone companies can't remove all death threats, they shouldn't exist (even though nobody expects them to try remove any death threats)" is fundamentally different
144.
▲
by
moefh
3y ago
You're ignoring the context in that comment. It was made in reply to "The platforms don't work if they have to police everything". That's what's being discussed; whether it's OK to give a pass to Facebook
145.
▲
by
moefh
3y ago
You're comparing apples to oranges. We don't expect phone manufacturers or phone companies to prevent people from using phones to send death threats, but Facebook regularly removes death threats sent via Facebook. The argument bei
146.
▲
by
moefh
3y ago
Nitpick: the VGA DAC has 6 bits per RGB component (18 bits total), so each of the 256 colors is chosen out of 2^18 = 262,144 colors, not 16 million.
147.
▲
by
moefh
3y ago
It doesn't matter what the voltage levels represent ([-1,0,1] in balanced ternary or [0,1,2] in "normal" ternary). The only thing that matters is that you're working with 3 voltage levels instead of 2, which as the paper
148.
▲
by
moefh
3y ago
The `real` type (float32) only has 24 bits of precision. So converting `9999999999999999.0` or `10000000000000000` or even `10000000300000000` yields the 32-bit float `10000000272564224`. For some reason Postgres prints it as `1000000030000
149.
▲
by
moefh
3y ago
That's really nice! Here's a blog post[1] showing how to do something very similar with the Raspberry Pi Pico, which also doesn't have a DAC. I wrote a very simple 4-channel MOD player[2] for the Pico using his sound output c
150.
▲
by
moefh
3y ago
I did not dig through all the links in that twitter thread, but the first few tweets are pretty misleading. The tweets say DJB implied that scientists who submitted algorithms were bribed by the NSA. That's a complete misunderstanding
More ›