Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
danbruc
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
421.
▲
by
danbruc
3y ago
The POSIX definition of a line is a sequence of non-newline characters - possibly zero - followed by a newline. Everything that does not end with a newline is not a [complete] line. So strictly speaking it would even be correct that cat$ do
422.
▲
by
danbruc
3y ago
It is start and end of line. [1] Usually ^ matches only at the beginning of the string, and $ matches only at the end of the string and immediately before the newline (if any) at the end of the string. When this flag is specified, ^ matche
423.
▲
by
danbruc
3y ago
And the ones that do not match cat\n with cat$ arguably have it wrong. Both ^ and $ anchor to the start and end of lines, not to the start and end of strings, whether in multi-line mode or not.
424.
▲
by
danbruc
3y ago
Because even after disabling multi-line you are still dealing with line-based semantics when you use ^ or $, the newline at the end is still not part of the content. You have to use \A and \Z if you want to treat all characters as a string
425.
▲
by
danbruc
3y ago
People are confused about strings and lines. A string is a sequence of characters, a line can be two different things. If you consider the newline a line terminator, then a line is a sequence of non-newline characters - possibly zero - plus
426.
▲
by
danbruc
3y ago
Things are obviously more complicated than that, lines are a complicated issue for historical reasons. There are two conventions, line termination and line separation. In case of line termination, the newline is part of the line and a strin
427.
▲
by
danbruc
3y ago
I don't think it is correct to say some get it right and some get it wrong, it is more of an design decision.
428.
▲
by
danbruc
3y ago
Because it would mean a performance penalty for everyone who does not need MSET to be atomic without being able to opt out of that transaction. On the other hand, if you want to be a drop-in replacement for Redis, then this is an issue as R
429.
▲
by
danbruc
3y ago
In the context of finance, any number starting with average is meaningless more often than not. It neither characterizes the situation of most people living well below average nor of the few people living well above average.
430.
▲
by
danbruc
3y ago
Somewhat related, yesterday there was a post about a new 6.2 GHz Intel CPU and I was wondering how fast the transistors in current CPUs are. The latest number I read - I think 2008ish - is that there are about 25 gate delays per pipeline st
431.
▲
by
danbruc
3y ago
That does not seem right, depending on how you calculate, 100 km to 1000 km seems more realistic. The ratio between 7 nm and 12" is 43.5 million, that makes a 20 mm x 10 mm die 870 km x 435 km. But as we all know 7 nm is just a marketi
432.
▲
by
danbruc
3y ago
Sure, it matches some observations, it would be pretty useless if it did not, but it has to match all of them. But my point with the use of tired light is that there seems to not even be a workable theory how this could work. The idea is th
433.
▲
by
danbruc
3y ago
Not an expert but the major issue to me seems that the proposed model CCC+TL makes use of tired light (TL) which is an almost 100 year old idea with no supporting evidence or theoretical underpinning, at least according to Wikipedia [1]. Th
434.
▲
by
danbruc
3y ago
But where does it say that it has to be done like that? There are a lot of functions that map [0, 2³² - 1] to [0, 84]⁵ or to [0, 85⁵ - 1] which they at least imply by mentioning the base-85 representation. There is of course the canonical m
435.
▲
by
danbruc
3y ago
Given that interoperability is one of the explicitly mentioned design criteria, it seems a bit of an oversight that they forgot to specify how the encoding actually works. It says nothing about how you encode the 32 bit integer into the fiv
436.
▲
by
danbruc
3y ago
I have thought a bit more about this since. Arrange all words in a rooted binary tree with the empty word Ɛ at the root and each vertex w having color χ(w) and children w0 and w1. Each cut [1] through the tree yields a set of words that can
437.
▲
by
danbruc
3y ago
My first idea is to think of this as the following game. Initially we consider all words uncolored and I start by picking an initial set of red words that can color any infinite binary sequence in red. Then you get to take away one of my wo
438.
▲
by
danbruc
3y ago
I paid for that, I buy stuff all the time and companies are taking some of that money for their ad budgets and send it to websites so that they can use it to finance their content. It is nice of them that they are not only using my money to
439.
▲
by
danbruc
3y ago
You are right, just found a better video [1]. I did not realize that the person was moving their fingers under the cover. [1] https://www.youtube.com/watch?v=S9VkV9RS-PI&t=45s
440.
▲
by
danbruc
3y ago
I would guess that it might be necessary to move the empty seat forward to access things that would otherwise be blocked by the retracted seat. That also means you have to be able to get it back later and this might also be needed if you ha
441.
▲
by
danbruc
3y ago
That switch almost seems to be made for being pressed accidentally - pretty big and seemingly easy to accidentally run into. I guess the big part behind the headrest is the mentioned cover and should be down with a pilot in the seat making
442.
▲
by
danbruc
3y ago
Does modern logic mean sub-threshold logic or does this apply generally?
443.
▲
by
danbruc
3y ago
Yes, the power consumption comes from the resistance of the circuit. In case of CMOS circuits there would ideally be no current flow when no signal changes but transistors are not perfect and have leakage currents. When signals change, prim
444.
▲
by
danbruc
3y ago
Of course, searching through all eight word combinations will be quite a bit harder. But that does not really protect you that much. If you are attacking passwords, you will try increasingly large sets of possible passwords. After you have
445.
▲
by
danbruc
3y ago
42 bit is not that much to begin with, you can brute force a simple cryptographic hash in minutes.
446.
▲
by
danbruc
3y ago
Advances in medicine made iron lungs obsolete by the 1960s, replaced by ventilators. But Alexander kept living in the cylinder because, he said, he was used to it. If this is reported correctly, it would even have been an deliberate choic
447.
▲
by
danbruc
3y ago
I completely read the first half of it, hoping that everything would eventually make sense, that the pieces would fall into place, but that never happened. I only skimmed the second half and everything seems to just become more and more inc
448.
▲
by
danbruc
3y ago
Compared to the mathematical rigor that gets usually thrown at such problems, this is all pretty vague, but maybe this is just the informal version. I admittedly did not completely understand the idea, but I of course have thoughts about it
449.
▲
by
danbruc
3y ago
the hype bubble around it and subsequent power/environmental consequences [...] The energy consumption is not the result of anything, it is a fundamental design element. [1] To reach a meaningful consensus, you have to give all parti
450.
▲
by
danbruc
3y ago
I just skimmed the article for sanity checking and it looks more like crackpottery than science to me. Looking at the numbers on the graphs for single-slit diffraction, they are just binomial coefficient, at least mostly, not sure why there
More ›