Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
danbruc
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
391.
▲
by
danbruc
2y ago
Without looking up what kind of encoding and modulation they are using, I would assume that they are sending a continuous sine wave at the carrier frequency that has the bits - probably after encoding the raw data bits with some error corre
392.
▲
by
danbruc
2y ago
There are notable exceptions, Donald Knuth, for example, is on the P=NP side of the divide but thinks the proof might be non-constructive or that the runtime might have some completely impractical power. I think he cited the Robertson–Seymo
393.
▲
by
danbruc
2y ago
Nothing is better than a comeback story and I try to feel as inspired as I can every day because the truth is people have made groundbreaking discoveries in their 50s, started businesses in their 70s and completely overcome much harder obs
394.
▲
by
danbruc
3y ago
I think the font metric image has an error, it labels the descender position as -500 but the text says -275 and looking at the other numbers in the image that seems about right. This left me confused for a bit while trying to follow the cal
395.
▲
by
danbruc
3y ago
In cinematography that is called a dolly zoom [1] and it is best known for being used in Vertigo [2] and Jaws [3]. [1] https://en.wikipedia.org/wiki/Dolly_zoom [2] https://www.youtube.com/watch?v=G7YJkB
396.
▲
by
danbruc
3y ago
Before we can start to really answer those questions, we first have to nail down what being conscious means. If we had a good understanding of what being conscious means, it might become relatively easy to look at something and assess if it
397.
▲
by
danbruc
3y ago
This is not an even comparison. This was not intended to be one or at best in the following sense. Making products and making profits are two features of businesses, the first one is essential, the second one is dispensable. No products,
398.
▲
by
danbruc
3y ago
Why does anyone work? Because they need or desire certain goods and services. They entire idea of a business falls flat if it does not produce stuff people want. It is of course true that from the perspective of the business owner running t
399.
▲
by
danbruc
3y ago
NB that "returning money to the shareholders" is ultimately what companies are for [...] This could not be further from the truth. Companies - and actually the entire economy - only exists for one purpose, to satisfy the needs o
400.
▲
by
danbruc
3y ago
I recently stumbled across the MS-DOS 1.25 and 2.0 source code [1]. [1] https://github.com/microsoft/MS-DOS
401.
▲
by
danbruc
3y ago
The poors have been doing this for millenia [...] Why the poor? And is poor the correct label or is this just strongly correlated with the actual reason? In the past children were desirable as sources of additional income and for support
402.
▲
by
danbruc
3y ago
If you are going to that effort, you might also want a decent resolution. Say we aim for one megapixel (720p) and 30 frames per second, then we have to calculate 27.7 megapixel per second. If you get your FPGA to run at 500 MHz, that gives
403.
▲
by
danbruc
3y ago
A description of the algorithm is here [1] and it is indeed SWAR. [1] https://github.com/sugawarayuuta/charcoal/blob/main/docs/ind...
404.
▲
by
danbruc
3y ago
See also Ridiculously fast unicode (UTF-8) validation [1] from three years ago. [1] https://news.ycombinator.com/item?id=24839113
405.
▲
by
danbruc
3y ago
If you are building an AM crystal radio. [1] You will also need a high-impedance speaker [2] if you want to operate it without a power supply, otherwise you will need an amplifier. You can avoid using a commercial diode by making your own p
406.
▲
by
danbruc
3y ago
Yes, of course. Someone already payed [1] for the ads that they are trying to show to you and me and with that for the content funded with those ads. If we block them, nobody loses any money, at worst some future sales will not happen. And
407.
▲
by
danbruc
3y ago
Or rather the reverse, in Linux terminology. Only processes exist, some just happen to share the same virtual address space. Threads and processes are semantically quite different in standard computer science terminology. A thread has an
408.
▲
by
danbruc
3y ago
I was also referring to kernel threads. If we are talking about non-kernel threads, then sure, a given implementation might have limitations and there might be something to be gained by running several processes, but that would be a workaro
409.
▲
by
danbruc
3y ago
[...] if you are compute bound you need to think about processes. How would that help? Running several processes instead of several threads will not speed anything up [1] and might actually slow you down because of additional inter-proces
410.
▲
by
danbruc
3y ago
See also isochron map [1]. [1] https://en.wikipedia.org/wiki/Isochrone_map
411.
▲
by
danbruc
3y ago
I also always preferred the interpretation of a newline as a separator instead of as a terminator for files because I never liked the final newline causing a new empty line in the editor and as you thought that it was bad design that you ca
412.
▲
by
danbruc
3y ago
Despite the downvotes your comment received, I think you have a good point. There are two uses for a newline, first to signal the end of a line, for example when sending text over a serial connection, and second to separate two lines, for e
413.
▲
by
danbruc
3y ago
So the consensus seems to be that the classic UNIX line-based tools match the regex against the line excluding the newline terminator (which makes sense since it isn't part of the content of that line) and therefore $ only needs to ma
414.
▲
by
danbruc
3y ago
Python's behavior is not a hack, it is the common behavior. $ matches at the end of the string or before the last character if that is a newline, which is logically the same as the end of a single line. But as you said, you can have ad
415.
▲
by
danbruc
3y ago
You are right, it is my wording, I replaced end of string or before newline as the last character with end of line because that is what this means. You could also write that into the documentation but then you would have to also explain wha
416.
▲
by
danbruc
3y ago
I quoted the section from the Python module here. [1] If you do not specify multi-line, bar$ matches a lines ending in bar, either foobar\n or foobar if the terminating newline has been removed or does not exist. If you specify multi-line,
417.
▲
by
danbruc
3y ago
If you are not in multi-line mode, then a single line is expected and consequently there is at most one newline at the end of the string. You can of course pick an input that violates this, run it against a multi-line string with several ne
418.
▲
by
danbruc
3y ago
This only makes sense if re.search accepted a line to search. It doesn't. It accepts an arbitrary string. Which is fine because lines are a subset of strings. And whether you want your input treated as a line or a string is decided b
419.
▲
by
danbruc
3y ago
re.search does not accept a "line." It accepts a "string." There is no pretext in which re.search is meant to only accept a single line. Sure, it takes a string which might be a line or multiple or whatever. Does not c
420.
▲
by
danbruc
3y ago
But that is exactly what it means, the end of the line is before the terminating newline or at the end of the string if there is no terminating newline. Both ^ and $ always match at start or end of lines, \A and \Z match at the start or end
More ›