Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
comex
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
59 ms
·
661.
▲
by
comex
4y ago
You can tell LLMs to do things or not do things, though, to an extent. Consider how many instructions were in Bing AI’s prompt. [1] It didn’t follow those instructions perfectly - after all, one of the instructions was to not reveal the
662.
▲
by
comex
4y ago
Sydney is about 30 times more common as a girl’s name than as a boy’s name, so it’s not just the argumentativeness.
663.
▲
by
comex
4y ago
> Do you know that in MSVC uint16_t(50000) + uin16_t(50000) == -1794967296? Do you know why? Yeah, that’s what I thought. I was very confused by this claim before I realized it should be *, not +. Either way, the operands are promoted to
664.
▲
by
comex
4y ago
With a 2.5 second ping time from the Earth to Moon, data centers seem to me like a limited proposition. Sure, there are some use cases that could tolerate it, but many that can’t, and even where tolerating it is technically possible, it’s
665.
▲
by
comex
4y ago
errno is thread-local, so you don’t have to worry about context switches.
666.
▲
by
comex
4y ago
eBPF is being eagerly and actively expanded; just look at [1]. What's stalled is unprivileged eBPF, i.e. using it without being root. [1] https://lwn.net/SubscriberLink/922405/d85450150ef64840/
667.
▲
by
comex
4y ago
In any case, you definitely can't do it on Windows and Emscripten (WebAssembly), where longjmp invokes the same stack unwinding behavior as C++ exception handling, rather than just setting some registers and jumping. Windows has its o
668.
▲
by
comex
4y ago
> I am not aware of any such "longjmp" implementation. Clang on Windows behaves this way! That is, when targeting the Visual C++ runtime, as opposed to MinGW. With the Visual C++ toolchain and runtime, longjmp behaves like a C
669.
▲
by
comex
4y ago
At minimum they could check for sellers setting their name to “Coinbase”, or other well-known names. In theory it should also be possible to detect scam invoice messages with similar techniques to spam filters.
670.
▲
by
comex
4y ago
They might be referring to the extra spacing around the punctuation in “$479. 00” and “transaction, please”. “Dear Customer, You” is also incorrect. The standard correction would be to add a newline after the comma (which presumably the sc
671.
▲
by
comex
4y ago
There are several ways to do overflow checks safely (i.e. without undefined behavior), though the ergonomics are not always ideal. C23 somewhat improves the situation with <stdckdint.h>, a standardized version of GCC’s __builtin_add_o
672.
▲
by
comex
4y ago
That post keeps being linked in these discussions but it's highly misleading. > Do your installed programs share dynamic libraries? > Findings: not really The posted findings actually show that common libraries ranging from libc
673.
▲
by
comex
4y ago
Not to be confused with obscure Linux ports that only have GCC available. This doesn’t address the problem of making (existing, cross-platform) Rust code work on those systems, since (I assume) it doesn’t provide FFI with native code. H
674.
▲
by
comex
4y ago
No need. For the Rust compiler, like most modern compilers, the list of systems it can produce binaries for is independent of which system it is running on. Either the compiler supports the instruction set and executable format used on Ma
675.
▲
by
comex
4y ago
I used to have a recurring issue where my PlayStation 4 controller, while I had it attached to a PC via USB, would, for some strange region, connect to the PS4 over Bluetooth and start sending button inputs to both the PC and the PS4 simult
676.
▲
by
comex
4y ago
Not the parent, but I can imagine a pretty fast left-to-right algorithm. First assemble all the CSS rules into a tree, where each non-leaf node represents a selector and following a path down the tree corresponds to reading a selector from
677.
▲
by
comex
4y ago
Part of it is that most CPU architectures don’t make overflow checking as cheap as it could be (there’s no option to trap on overflow, so you need a branch after every arithmetic operation, which has some cost). Another part is the compile
678.
▲
by
comex
4y ago
> In an average Google Earth quarter, only 3-5% of bug reports were traceable to memory safety problems, and Address Sanitizer made them trivial to reproduce in development mode. Bug reports , sure. But as for security vulnerabilities
679.
▲
by
comex
4y ago
Technically it’s only the standard library that lacks custom allocator support. Box and Vec and all the rest are “just” types defined in the standard library, and if you define your own, you can use any allocator you want and still take ad
680.
▲
by
comex
4y ago
Many fighting games did and do use lockstep; it’s only recently that rollback has started to become the norm, and some recent big releases still don’t have it. But fans actively clamor for rollback because it’s a far superior experience.
681.
▲
by
comex
4y ago
I wish Awk had capture groups. It would fit in so well with typical Awk one-liners to be able to say: awk '/foo=([0-9]+)/ { print $1 }' although I suppose the syntax would have to be different since $1 has a me
682.
▲
by
comex
4y ago
According to some comments in the linked GitHub issue, including [1] from last May, Drew could have simply asked to be excluded from automatic refresh traffic from the mirror. If I understand correctly, that would still leave traffic from
683.
▲
by
comex
4y ago
Do you use a modern browser? If so, you use a piece of software that has been exploited many times by attacks in the wild. Those attacks were mostly targeting either a phone OS or Windows or macOS - not because there is anything in deskto
684.
▲
by
comex
4y ago
On a related note, I’ve noticed that vegetarian jerky and other vegetarian meat-product substitutes have a slightly lower protein-to-calorie ratio than the originals. Not a big difference, but consistent.
685.
▲
by
comex
4y ago
> It is more likely they will argue fair use, but by not using closed repositories owned by paying customers, it seems to show that they themselves have doubt about the legal status of using other peoples copyrighted work for copilot. Or
686.
▲
by
comex
4y ago
If you’re an employee (not contractor) in California, your employer can specify in the employment contract that they own IP rights to anything you make even in your own time, as long as it “relate[s] [..] to the employer’s business, or actu
687.
▲
by
comex
4y ago
As an addendum, LLVM can automatically perform the “&T-as-T” optimization (without inlining) in some cases where the callee function is in the same compilation unit and known to not care about the pointer value. However, these types
688.
▲
by
comex
4y ago
Do you have any more details about what sort of requests are being blocked? I’ve been planning to use Cloudflare for an upcoming project, under the impression that ‘Essentially Off’ really did mean essentially off, and would only block obvi
689.
▲
by
comex
4y ago
Not sure about LineageOS, but Apple's crash and fall detection is fully automatic – it sounds a warning and gives you a chance to cancel, but if you don't, it calls 911 without any interaction. Which would be helpful if you'
690.
▲
by
comex
4y ago
> You can type the date in browser date pickers, including Safari's, even while the calendar is visible. Not on iOS (at least assuming you don’t have a hardware keyboard). The software keyboard does not appear and there’s no option
More ›