Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
comex
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
421.
▲
by
comex
3y ago
Source?
422.
▲
by
comex
3y ago
Right. Pin is the canonical way to have objects that can't be moved, and it was invented in order to support objects with self-references (namely, futures). However, Pin's design is pretty hacky, being implemented purely 'i
423.
▲
by
comex
3y ago
Yes. From the post: > In follow-up posts I’ll dig into how we can use this to support interior references and other advanced borrowing patterns. [..] > But also [current] Rust is not able to express some important patterns, most nota
424.
▲
by
comex
3y ago
For reference: https://tour.gleam.run/advanced-features/use/
425.
▲
by
comex
3y ago
True, but that tends to require a bunch of extra code, and adds complexity since now you have two different paths to test. Which is manageable, but definitely cuts against the goal of keeping the project “light”. (Of course, it depends on
426.
▲
by
comex
3y ago
The paper waits until page 2 to mention that their scheme would not help standard WebAssembly implementations at all: those implementations already eliminate all bounds checks using a virtual memory trick, so reducing the number of required
427.
▲
by
comex
3y ago
If it’s real, it’s from a small model. Meanwhile, I just tried asking ChatGPT 3.5 and 4 similar questions, and despite ChatGPT having plenty of alignment tuning, neither version had any objection to them. There’s no trick; the larger mode
428.
▲
by
comex
3y ago
Indeed. Though, Rust does have a way to mark a function such that any caller that implicitly discards its return value gets a compiler warning. This feature largely solves the problem you’re talking about. But it’s orthogonal to Rust’s b
429.
▲
by
comex
3y ago
I’m not sure it even demonstrates that. For comparison, C’s inability to prevent undefined behavior at compile time definitely is a fundamental weakness of the language. Yet C has its own tools that, like Miri, can detect most undefined b
430.
▲
by
comex
3y ago
You mean that Miri catches it at runtime, right? If so, that hardly demonstrates anything about the difficulty or lack thereof of fixing rustc’s type checker, since Miri is not a type checker and doesn’t know anything about “lifetimes” in
431.
▲
by
comex
3y ago
Google is hardly a good actor here. They just announced Gemini 1.5 along with a "technical report" [1] whose entire description of the model architecture is: "Gemini 1.5 Pro is a sparse mixture-of-expert (MoE) Transformer-ba
432.
▲
by
comex
3y ago
Personally, I'm somewhat charmed that it threw me into battle without an explicit tutorial… although that's probably because I'm familiar with Advance Wars. However, even for me, the unlabeled buttons were confusing (both the
433.
▲
by
comex
3y ago
Wow. I’m guessing it’s generating MIDI or something rather than synthesizing audio from scratch? Even so, the quality of the score is leaps and bounds better than any of the long-form audio on the Stable Audio demo page (either Stable Aud
434.
▲
by
comex
3y ago
More often the issue is firmware rather than drivers.
435.
▲
by
comex
3y ago
> Assuming you can trust your hardware. At this point hardware supply chain attacks are a real threat and nobody seems to know what to do about them. The problem seems somewhat intractable. Which is a big assumption. Going to such extre
436.
▲
by
comex
3y ago
That recursive macro approach allows FOR_EACH to accept up to 4^N arguments (where N is the number of lines in the definition)… at the cost of making every use of FOR_EACH perform O(4^N) expansions, a fixed number regardless of the actual n
437.
▲
by
comex
3y ago
(Not the parent.) As someone who flies a few times a year, I do find it kind of soul-crushing, because of the physical discomfort of being crammed into a small space for 6 hours straight. But I suspect a headset would just make this worse;
438.
▲
by
comex
3y ago
> "I don’t want fast threads, I want futures" I don't really understand this point. In a hypothetical world where (a) threads are cheap, and (b) threads support some form of cancellation (with an ecosystem that expects thi
439.
▲
by
comex
3y ago
It does not.
440.
▲
by
comex
3y ago
By "the last item" you're referring to "Avoid Async Rust at All Cost", right? Personally I don't think that's abuse; I would have flagged that post if I'd seen it. That's despite the fact that
441.
▲
by
comex
3y ago
Hurts who? If you’ve worked around it then it doesn’t hurt you, at least not too badly. It still hurts the company as a whole. But is that your problem? You might feel a sense of social obligation or solidarity with the company. I usual
442.
▲
by
comex
3y ago
> the developer will have to pay 0.50$ per download and each month to Apple. (It’s per year, not per month.)
443.
▲
by
comex
3y ago
Can you be more specific about what the difference is?
444.
▲
by
comex
3y ago
Many of the principles here align with my tastes, such as focusing on fast compile times and supporting allocation failure. On the other hand: > Unplanned Features: > SharedPtr > UniquePtr > In Principles there is a rule that d
445.
▲
by
comex
3y ago
> again, the CTF seems to be aimed at paid apps or am i wrong? would f-droid have to pay apple the privilege to self hosting and distributing free apps? They would, unless both they, and the developer of the apps being distributed, fit i
446.
▲
by
comex
3y ago
Interesting to see how much of it is basically the Photoshop clone tool. I bet these are going to be harder to catch in the future, as fraudsters start using AI infilling instead. Or clone tool plus img2img.
447.
▲
by
comex
3y ago
The paper itself goes into detail about why the US Constitution and other memorized texts are misclassified. It’s surprising but not a killer flaw, since in most contexts it would only apply to direct quotes of famous texts.
448.
▲
by
comex
3y ago
> On IPv4, CGNAT is becoming increasingly more common so that you might share a public IPv4 address with thousands of other people at the same time. Which is an advantage from an anti-tracking perspective — an advantage you won’t get wit
449.
▲
by
comex
3y ago
If you don’t drive the bus (act as the numbering authority), then you’ll be hit by the bus (get bogus CVEs) and end up under the bus.
450.
▲
by
comex
3y ago
> The Banana Pi BPI-R4 can be purchased for $103.15 plus shipping on Aliexpress, but crazily enough this does not include the WiFi 7 card which I can’t find for sale anywhere yet… Not the same price, since it doesn't include the car
More ›