Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tcfhgj
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
tcfhgj
3d ago
Still some people don't block ads and people pay for it. Simple as that.
2.
▲
by
tcfhgj
3d ago
on the other hand it is trivial to project goroutines onto Rust-tokio async/await: function func() -> async fn func() go func -> tokio::task::spawn(func) func() -> func().await func_blocking() -> tokio::task::spawn_blocking
3.
▲
by
tcfhgj
4d ago
so? avoid it where you can
4.
▲
by
tcfhgj
4d ago
how would one be executed when the function is explicitly waiting? also it's an example to demonstrate the differences of async implementations of languages, not a excerpt of a production code base
5.
▲
by
tcfhgj
4d ago
nothing is optimized away, it's just not executed - e.g. the program including semantics of the language is just designed such that it is not executed. e.g. for Rust/tokio printing B is skipped, because the process exits and cance
6.
▲
by
tcfhgj
4d ago
> for it to bring benefits your whole codebase needs to be doing it (ingesting requests, db calls, web API calls). not really - the core of apps (usually no outside dependencies), and additions which solely rely onthe core, usually can b
7.
▲
by
tcfhgj
4d ago
100% sure - Java just has to store and process more than a simple state machine, also if all threads are busy with compute bound work, async work is stalled if you don't put the compute bound work on adedicated thread (pool)
8.
▲
by
tcfhgj
5d ago
they are still more expensive than compiled async await, also mixing compute and io-bound work can cause issues
9.
▲
by
tcfhgj
5d ago
> Go sort of asks why tho and just standardizes on go routines as a good abstraction over both concurrency and parallelism. if it is really that good, why didn't Rust adopt the same thing?
10.
▲
by
tcfhgj
5d ago
I don't feels sorry for people shoving or paying to shove ads in peoples faces.
11.
▲
by
tcfhgj
5d ago
I did not claim nobody's medical care was affected. It could have happened if it was uncommon and it could have happened if it is common. My claims: 1) most flight's are not necessary 2) it's not common to fly for medical car
12.
▲
by
tcfhgj
5d ago
also I think RCS is way to insecure for Graphene OS - they have no way of making sure the communication is actually 100% secure. In my experience, Graphene OS doesn't make compromises.
13.
▲
by
tcfhgj
5d ago
Hacker News, without AI needs to be a plugin for Firefox - I don´t really want to use two pages at the same time.
14.
▲
by
tcfhgj
5d ago
I am not talking about calling C functions, but about providing a stable ABI for your binary.
15.
▲
by
tcfhgj
5d ago
Rust supports opting into the C ABI
16.
▲
by
tcfhgj
5d ago
You don't have to use Cargo,you can fall back to just using rustc; also Cargo supports censoring, meaning you can use locally stored crates.
17.
▲
by
tcfhgj
5d ago
Need is a bit strong, you can absolutely apply and do homework without, e.g. using Typst or Latex or whatever else is out there
18.
▲
by
tcfhgj
5d ago
Still can switch isp usually
19.
▲
by
tcfhgj
5d ago
Now that WinUI has a Rust API, I think using Rust is a no-brainer. The app will be running on probably about a billion of devices, and Rust will reduce the footprint on each of those - assuming not a vibe coded clone app. The additional eff
20.
▲
by
tcfhgj
5d ago
Still, it's fast enough that Rust frameworks can compete with the fastest JS frameworks on UI benchmarks [1] Imo bundle size is a bigger issue. [1] https://youtube.com/watch?v=4KtotxNAwME
21.
▲
by
tcfhgj
5d ago
Win forms/WPF is essentially legacy, and using C# consumes much more resources than Rust (even for UI, see Windows Reactor C# vs Rust). Additionally, I don't think C# is that simple anymore. By now it has so many features added a
22.
▲
by
tcfhgj
6d ago
Well that leaves up to almost 50% potentially not written in either language. And little code can already have a big impact, e.g. react native in start menu coupled with edge running in the background
23.
▲
by
tcfhgj
6d ago
Which sends your login data straight to microsoft
24.
▲
by
tcfhgj
6d ago
It includes Windows Reactor, a fairly new API for WinUI Apps
25.
▲
by
tcfhgj
6d ago
Do you mean winui3? windows-rs
26.
▲
by
tcfhgj
6d ago
WinUI (3) via Windows Reactor
27.
▲
by
tcfhgj
6d ago
Enable ipv6
28.
▲
Steward-Ownership
(en.wikipedia.org)
4 points
by
tcfhgj
7d ago
|
0 comments
29.
▲
by
tcfhgj
7d ago
You don't want to harm the economy, do you?
30.
▲
by
tcfhgj
7d ago
not everything is as harmful as flying
More ›