Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zRedShift
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
zRedShift
3y ago
I use DC on my Mac, works just as well as on Linux, some of the touchpad gesture sometimes changes the font size and I have to reconfigure it once in a while when I accidentally do them, haven’t figured out a simple way to prevent this from
2.
▲
by
zRedShift
4y ago
I agree, but what I'm saying is, it only generates the numbers once and then sorts them 500 times. Yes it's a flawed measurement because it measures the generation time + 500 sorts, but the time to generate the numbers is probably
3.
▲
by
zRedShift
4y ago
Made a PR with the fixes, Rust is now 3 times faster than tinygo, and the wasm is almost 3 times smaller (wasm+js is twice as small) as expected. https://github.com/Ecostack/wasm-rust-go-asc/pull/1 My first f
4.
▲
by
zRedShift
4y ago
It's also not measuring rng speed, it's measuring memcpy and sort speed.
5.
▲
by
zRedShift
4y ago
Your go uses `pdqsort` to sort 4 byte ints from 0 to 100, while rust uses a stable sort (`sort_unstable` is equivalent to `pdqsort`) on single byte integers from 0 to 255. Hardly a fair comparison.
6.
▲
by
zRedShift
4y ago
You typically use build-std and possibly abort on panics or immediate-abort to disable the string formatting code in stdlib, and you do fat LTO. after stripping the binary, it’s pretty damn small. If you want even further savings on std, yo
7.
▲
by
zRedShift
4y ago
How is it different from "If you ever go down the JNI road in Java"? Be it a library the bundles RocksDB, or Android stuff, doesn't matter that your average Spring Boot developer probably won't be having any native depen
8.
▲
by
zRedShift
4y ago
I don't even disagree with these points! But if you go down to language lawyering and semantics, I think one could technically make a case for Rust being safer (in the memory safety sense) than Java/Go/(insert any GC'd m
9.
▲
by
zRedShift
4y ago
No one is writing kernels, raw register level volatile DMA bit-banging embedded code, and other "impossible without unsafe" code in Java/Go (Ok, almost no one, don't @ me, pjmlp, there are kernels built in memory-safe la
10.
▲
by
zRedShift
4y ago
Both Java and Go also have unsafe, and are often used for FFI/Performance, and some popular/foundational libraries (like Google's Protobuf library in Java) use unsafe just for added performance. Heck, Go has an Assembler. So
11.
▲
by
zRedShift
4y ago
> For regular application code there's no real benefit Can't disagree, naive garbage collected code would outperform naive Rust code that allocates Strings and Vecs up the wazoo. And performance isn't a real issue with sim
12.
▲
by
zRedShift
4y ago
Do you want to use AVX-512? Zen 4 is your only real option out of the three. They disabled AVX-512 on Golden Cove due to Gracemont not having it, and not having implemented any sort of AVX-512 workload CPU pinning like idk, SIGILL trapping?
13.
▲
by
zRedShift
4y ago
https://doc.rust-lang.org/std/macro.include_bytes.html
14.
▲
by
zRedShift
4y ago
I think you meant Espressif, Steve. They have a fork of LLVM with Xtensa support they’re looking to upstream (still a few things missing, like the DSP/AI instructions in ESP32-S3, and I think the codegen is better on GCC for now). And
15.
▲
by
zRedShift
4y ago
Funnily enough, these are the top 3 languages in the company I work in.
16.
▲
by
zRedShift
4y ago
If we're talking about wish-lists, encoding performance on low-power IoT devices, maybe? It has decent SIMD support on ARM/x86 and tweakable complexity settings, but if your device is weaker than an ESP32, you'll be hard-pres
17.
▲
by
zRedShift
4y ago
FLAC compression is, although lossless, not nearly as straightforward as raw PCM/WAV/AIFF. It has LPC (linear predictive coding), with the usual residual entropy/RLE coding (but without the quantization stage, due to being lo
18.
▲
by
zRedShift
4y ago
>iOS https://www.reddit.com/r/rust/comments/vj40qq/noumenal_my_3d... Does this count? And we’re soon shipping Rust components to several hundred thousands of iOS (and Android, but it’s technically Lin
19.
▲
by
zRedShift
4y ago
> legdur First commit 2 months ago, started with edition 2021. https://hg.sr.ht/~cyplo/legdur/browse/Cargo.toml?rev=ca11815... Have you tried compiling something less than bleeding edge, with a year old co
20.
▲
by
zRedShift
4y ago
Have you tried cargo zigbuild? You can target specific GLIBC versions. https://github.com/messense/cargo-zigbuild
21.
▲
by
zRedShift
4y ago
For further reading, I recommend Niko's latest blog, tangentially related to rustc internals (and arena allocation): https://smallcultfollowing.com/babysteps/blog/2022/06/15/wha...
22.
▲
by
zRedShift
4y ago
I use Zig and cargo-zigbuild to cross-compile my Rust projects. It simply works, without Docker, if I want it to use older GLIBC symbols for an embedded Linux target running an ancient kernel/glibc version, or if I want to cross-compil
23.
▲
by
zRedShift
5y ago
FWIW, the Read/Write traits have a vectored read/write method, which File implements using readv/writev on supporting Unix platforms: https://doc.rust-lang.org/src/std/sys/unix/fd.rs.html#7
24.
▲
by
zRedShift
5y ago
Official response: https://blog.jetbrains.com/blog/2021/11/29/welcome-to-fleet/... It’s written in Kotlin mainly, a little bit of Rust for native parts, Skiko (Skija + AWT) The UI framework is si
25.
▲
by
zRedShift
5y ago
Well, for one, in the Rust version, check(i32::MIN) will return false if built with overflow checks disabled (the default for release builds). C++ will of course always return true.
26.
▲
by
zRedShift
5y ago
> Ojeda said that he had been invited to Rustconf this year, which was a good sign, but then his submission on Rust in the kernel was rejected — a less-good sign. The consideration of Rust for the kernel was then highlighted at that
27.
▲
by
zRedShift
5y ago
https://fasterthanli.me/articles/i-want-off-mr-golangs-wild-... I think this is what you're looking for.
28.
▲
by
zRedShift
5y ago
You can play with atomics as much as you want in safe Rust but you can't cause a data race without aliased mutability, which means using UnsafeCell, raw pointer operations or a & to &mut transmute (unsound and UB as long as noa
29.
▲
by
zRedShift
5y ago
Maybe this can help you, I looked at your fork of tree-sitter to figure out what you were trying to do. https://play.rust-lang.org/?version=stable&edition=2018&gist... But what you really want is to get your head ar
30.
▲
by
zRedShift
6y ago
Search everything here: https://microsoft.github.io/windows-docs-rs/doc/bindings/win...
More ›