Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
CryZe
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
CryZe
2y ago
The Yuzu devs banned anyone even mentioning TotK in the Discord. However, they apparently had some private Discord or something where the Yuzu devs shared ROMs between themselves.
32.
▲
by
CryZe
2y ago
Though arguably, the fact that in order to mutate data from multiple threads, the compiler,forces you to use some synchronization primitive, results in you having to think about how you are going to synchronize access, which should lower th
33.
▲
by
CryZe
2y ago
You could compile an actual syntax highlighter to WebAssembly and embed that into the font. That would address all the issues. However, WebAssembly is an off-by-default experimental feature for harfbuzz, so at least for now the current solu
34.
▲
by
CryZe
2y ago
new.reddit.com seems to be an older layout than just reddit.com for me, one where most stuff still works (like video embeds).
35.
▲
by
CryZe
2y ago
You definitely also get a lot more thread safety out of Rust than most languages.
36.
▲
by
CryZe
2y ago
Not mentioned in the blog post is the new addition of `size_of`, `size_of_val`, `align_of`, and `align_of_val` to the prelude, which means they don't need to be imported anymore: https://github.com/rust-lang/rust&#
37.
▲
by
CryZe
2y ago
No, from a quick glance those are only for moves of individual values. Lifetimes are something different. They are used for relating multiple (> 1) parameters / return values with each other. There is no way to have that without hav
38.
▲
by
CryZe
2y ago
You are right, and whenever we drifted by 1 hour (or whatever is deemed too much) we can just update each time zone in the TZDB to be different by that amount of time going forward. This shifts the problem from a basically unsolved one (wit
39.
▲
by
CryZe
2y ago
There's Intl.Segmenter now which does Unicode Segmentation to count the amount of graphemes for example: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... Though you are right in that
40.
▲
by
CryZe
2y ago
It uses a custom renderer, which seems to just blit its image data onto a canvas. The HTML is just there so you can actually select the text.
41.
▲
by
CryZe
3y ago
> small virtual machine to process tiny code programs Or even WebAssembly (though more of an experiment than anything): https://github.com/harfbuzz/harfbuzz/blob/main/docs/wasm-sha...
42.
▲
by
CryZe
3y ago
Yeah it's really mostly just a (heavily) stripped down binary JavaScript with basic arithmetic and operations to modify an ArrayBuffer. With Wasm-GC it's a bit more of a binary statically, strongly typed JavaScript. Either way, ou
43.
▲
by
CryZe
3y ago
This is no longer true, there's various high level types that WebAssembly can pass around, such as reference types (opaque objects from the outside world, i.e. JavaScript objects) and all the new GC types. So the only thing stopping yo
44.
▲
by
CryZe
3y ago
Reference types technically already allow for calling directly into the browser APIs as reference types allow wasm to pass JavaScript objects around. So if you import all the relevant web apis, you don't really need any (almost any?) i
45.
▲
by
CryZe
3y ago
I'd say that those are not actually the minimum. You don't need to detect undefined behavior, you just need to "make it implementation defined", so integers could just wrap around without needing to check for overflow, u
46.
▲
by
CryZe
3y ago
> but Hello World consumers TWO POINT EIGHT GIGABYTES of hard disk on my machine. While yes, that's really bad, it's just temporary build files. The actual executable should be fairly tiny.
47.
▲
by
CryZe
3y ago
It is "const enough", as in, there is nothing preventing it from being called at compile time, in fact with nightly features (and no changes to the async fn), you can call it at compile time just fine. I also put const fn there to
48.
▲
by
CryZe
3y ago
> Haven't done too much async Rust yet but I don't think it solved this issue from what I've seen. In Rust an async function is really just a const fn that synchronously only constructs and returns a state machine struct t
49.
▲
by
CryZe
3y ago
wgpu at least prefers Vulkan over DirectX 12 on Windows.
50.
▲
by
CryZe
4y ago
It does not work for me in browser Safari (iOS) either: undefined is not an object (evaluating 'navigator.wakeLock.request') Update: Turns out it's only available behind HTTPS. The PWA bug might be related.
51.
▲
by
CryZe
4y ago
Doing this through the GPU is actually somehow A LOT slower on at least Windows than going through the windowing system.
52.
▲
by
CryZe
4y ago
However, in practice Rust's calling convention does actually depend on the operating system. So on Linux Rust will make use of the stack red zone, while on Windows it doesn't. (Also some codegen in LLVM depends on the operating sy
53.
▲
by
CryZe
4y ago
> mostly feature complete I just played around with it today again and I immediately ran into like 5 bugs with font matching until I found out that there's not even an implementation for font matching other than "every property
54.
▲
by
CryZe
4y ago
I just tried it in my own renderer (that uses tiny-skia) to compare performance, but unfortunately forma is still lacking some features to do a proper comparison (strokes, the ability to scale shapes up instead of only down (?????), renderi
55.
▲
by
CryZe
4y ago
ABI wise that is not true though. structs have struct ABI, even just a newtype struct around an integer will not use integer ABI unless annotated with #[repr(transparent)].
56.
▲
by
CryZe
4y ago
Often when people say "Canvas" they mean "CanvasRenderingContext2D", which still lets the browser do all the text rendering. With WebGL you need to do all that yourself.
57.
▲
by
CryZe
4y ago
Oh right, I confused the terminology, but the point still stands mostly.
58.
▲
by
CryZe
4y ago
How is this supposed to work? The rotation of the earth is not a constant. So we either scrap UT1 ("the atomic clock") or UTC ("the calendar"). Neither sound like an actual option. The latter would imply that at some (fa
59.
▲
by
CryZe
4y ago
Yes, it seems to be.
60.
▲
by
CryZe
4y ago
I don't think I agree. A debug build of Rust code is often like 40x slower or so than a release build. Those optimizations make a huge difference. Binaryen can only do a fraction of them, so I wouldn't expect AssemblyScript to get
More ›