Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
comex
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
74 ms
·
901.
▲
by
comex
5y ago
What does that have to do with anything?
902.
▲
by
comex
5y ago
With Discourse, you can enable mailing list mode and read all the Discourse instances from your email client. That’s what I do. Personally, I only have one Discourse instance I keep up to date on, but if that instance weren’t right there i
903.
▲
by
comex
5y ago
Yes, but it's not so uncommon for "spinlocks" to evolve into not-actually-spinlocks while keeping the name. In the Linux kernel, `spinlock_t` is actually a mutex if `PREEMPT_RT` is enabled [1]. And Darwin has some code to d
904.
▲
by
comex
5y ago
> No, this is definitely not how atomics with memory orderings work. If you do two atomic reads, the CPU will do two load instructions. Neither the compiler or the CPU is allowed to optimize this. Yes they are. And other optimizations a
905.
▲
by
comex
5y ago
To quote the Rustonomicon page: “C++11 was the first version of the model but it has received some bugfixes since then.”
906.
▲
by
comex
5y ago
Some cores are open source and you can see for yourself. Rename logic from BOOM, a RISC-V core written in a DSL embedded in Scala: https://github.com/riscv-boom/riscv-boom/blob/1ef2bc6f6c98e5... From RSD, a c
907.
▲
by
comex
5y ago
But if you're already using a cable that adapts to a different connector, why not just use a USB to RJ-45 serial cable?
908.
▲
by
comex
5y ago
If you turn off Wi-Fi or Bluetooth in the Settings app (rather than Control Center) it is permanent.
909.
▲
by
comex
5y ago
In this particular case, the mutation being added to the original SARS-CoV-2 is one that was already present in Delta. So if someone were to replicate this with real virus (as opposed to the non-infectious particles the existing experiment
910.
▲
by
comex
5y ago
Personally, my inner voice doesn’t narrate; it only makes logical arguments or explanations. But it does occasionally seem to ‘go on autopilot’: my conscious focus is on some pressing but mindless task, and then I catch my inner voice in t
911.
▲
by
comex
5y ago
-r makes it pass all control characters to the terminal. To quote less's man page: > Warning: when the -r option is used, less cannot keep track of the actual appearance of the screen (since this depends on how the screen responds
912.
▲
by
comex
5y ago
> What I'm interested to know is whether there is any code already out there in the wild with this exploit in it? It's possible, but I doubt it. The paper mentions that Vim isn't vulnerable to the bidirectional attack. N
913.
▲
by
comex
5y ago
I just searched a number of sites for "palmer lucky total recall". Many of the ones I checked (tech: The Verge, Gizmodo, cnet; mainstream: NY Times, Washington Post) never published any articles about this lawsuit. IGN published
914.
▲
by
comex
5y ago
Every image it generates is one of 8 “pieces”, where each “piece” is an algorithm that has some randomness but a predetermined basic design. [1] My impression is that the instantiations of each “piece” tend to all look the same and have sim
915.
▲
by
comex
5y ago
No, a Twitter user is quoting a document from a court case that will (unless it's settled) go to actual trial.
916.
▲
by
comex
5y ago
Suppose you have a function `a` that calls two other functions in succession, `b` and `c`. Further suppose `b` and `c` each have one large stack variable (e.g. an array). Ideally we should be able to reuse the same stack memory for both v
917.
▲
by
comex
5y ago
If you use GCC, enable -Wall and you'll get the diagnostic you want: /tmp/cp.c: In function 'main': /tmp/cp.c:4:1: warning: control reaches end of non-void function [-Wreturn-type] 4 | }
918.
▲
by
comex
5y ago
Perhaps better coverage on LWN: https://lwn.net/Articles/872869/ The no-GIL version is actually about 8% slower on single-threaded performance than the GIL version, but the author bundled in some unrelated perform
919.
▲
by
comex
5y ago
It depends. For one thing, constexpr guarantees that errors will produce compilation failures. (At least it guarantees that when used in certain ways; unfortunately C++ overcomplicates things.) In a version of C that doesn't have an
920.
▲
by
comex
5y ago
That post says that escape analysis is "heavily dependent on methods pertaining to candidate objects being inlined", implying that the check for whether something is returned from a method happens after inlining. The post then co
921.
▲
by
comex
5y ago
The Rust version iterates over u64, which is the same size as Java long, though it’s unsigned whereas Java long is signed.
922.
▲
by
comex
5y ago
Just as a starting point, you can look at any existing uses of #define to either define a constant or define a ‘function’ that can be evaluated at compile time. For constants, #define is ubiquitous and works fairly well, but it has several
923.
▲
by
comex
5y ago
For me this is analogous to, say, a PC running a NES emulator. You can talk about the emulated CPU. Its state: its 8-bit register values, the contents of its 2KB of RAM, what 6502-architecture code it's currently running. Its concept
924.
▲
by
comex
5y ago
If you read the article, what's banned is working FEMA contracts if you recently (in the last 30 days) quit from a Texas hospital, or are a Texas resident. Nobody is literally banned from quitting.
925.
▲
by
comex
5y ago
FYI, you're shadowbanned.
926.
▲
by
comex
5y ago
Then what happens if the user starts with a file that happens to be a valid gzip file with a valid hash, compresses it twice, and decompresses it twice?
927.
▲
by
comex
5y ago
I am extremely skeptical of this calculation by Drew DeVault: > On average, dynamically linked executables use only 4.6% of the symbols on offer from their dependencies. A good linker will remove unused symbols. Percent of exported symbo
928.
▲
by
comex
5y ago
Can whitespace-cleanup really differentiate between places where you want a tab for indentation, and places where you want spaces for alignment, where the number of spaces may be greater than the tab width? After all, the only way to diffe
929.
▲
by
comex
5y ago
There are other places where GDB shows its power, though. Setting a conditional breakpoint: in WinDbg you have to express this as 'add breakpoint command that continues if the condition is false'. GDB makes it nice and simple. L
930.
▲
by
comex
5y ago
It doesn’t matter , but it’s interesting.
More ›