Viewing profile — ultimaweapon
ultimaweapon
HN member- Joined
- Fri, Feb 25, 2022, 4:17 AM UTC
- HN karma
- 96
- Public activity
- 28 items
- HN profile
- View on Hacker News ↗
About ultimaweapon
No profile information was provided.
Recent public activity
-
comment
Comment #48843861
Not the author but I also moved from C# to Rust. In the first place I did not consider Rust for C# works like REST API but after I proficient with Rust I no longer want to work wit…
-
comment
Comment #48409203
> After never catching covid Maybe it is because you are vaccinated?
-
comment
Comment #48276488
What language you are trying to port from?
-
comment
Comment #45410106
My observation is most people who suggest Rust alternative don't use Rust. People who actually use Rust known it is worth to rewrite C/C++ software in Rust, either the whole or par…
-
comment
Comment #45382633
The benefit of drivers being in the user-space is it will limit the damage if that driver has vulnerabilities. The downside is, I don't think the performance will be great. The ker…
-
comment
Comment #45298880
Rust give more ergonomic to this. In C++ it need a lot of typing for creating a new type compared to Rust.
-
story
Show HN: Tsuki – Lua 5.4 ported to Rust
Tsuki is a port of Lua 5.4 to Rust via C2Rust. I started working on this because I was tried to build a Lua bindings with overhead less than mlua and found out the approach I use i…
-
comment
Comment #43913890
Checked addition by default will have too much overhead and it will hurt performance, which unacceptable in Rust since it was designed as a system language. Swift can use checked a…
-
comment
Comment #43912986
Rust is the only language I can easily control how integer overflow should behave. I can use `var1.wrapping_add(var2)` if I want the result to be wrapped or `var1.checked_add(var2)…
-
comment
Comment #43902469
I'm coming from C++ now I don't want to use C++ anymore. When C++ was still my primary language I always frustrated with some of its feature like non-destructive move, copy by defa…
-
comment
Comment #43868272
> Rust is still popular but it turns out the developer joy is pretty low. Rust is one of the language I enjoy to use. The problem is you need to overcome its steep learning curve i…
-
comment
Comment #43630291
> C++ can be safe enough if you proceed with care. The problem with this is if you have a team working on a C++ product you will need some people who can catch memory bugs to revie…
-
comment
Comment #43579171
For me lack of language specification is not a problem and it is good that Rust only have one implementation so I don't have a headache to support multiple compilers like C++. The …
-
comment
Comment #43534221
Most C/C++ users don't understand how Rust achieve memory safety because they don't know Rust enough. They always underestimate Rust memory safety. The truth is Rust can give you n…
-
comment
Comment #43503782
I'm living in Thailand for almost 40 years and this is the first time I have a nausea due to earthquake even it is very far from its origin. I can't imagine how much catastrophe th…
-
comment
Comment #43385888
To be fair the UB caused by this function come from the underlying C implementation and this function already marked as unsafe on 2024 edition.
-
comment
Comment #43125011
Of course the modern C++ are safer but you can still shoot yourself in the foot. Compared to Rust you still need to think about the memory safety when writing C++ while Rust you do…
-
comment
Comment #42970438
Once you know how Rust works it is likely your Rust code will be faster than C/C++ with less effort. I can say this because I was using C++ for a long time since Visual C++ 6.0 and…
-
comment
Comment #42970121
You are very unlikely to hit this bug in a real world Rust project while C/C++ you can easily hit by a memory safety bug.
-
comment
Comment #42928989
Actually the interoperability is very good. C can directly call into Rust and Rust can directly call into C. Rust can construct any C type and can expose opaque pointers to C world…
-
comment
Comment #42644209
Actually it is very simple to communicate with the modern hardware (both x86 and ARM). All you need to do is read/write the hardware memory. This called Memory-mapped I/O (or MMIO …
-
comment
Comment #41787592
I always use left hand for everything that does not requires right hand. The only activities I need to use right hand is when I use a desktop computer or writing. I was tried to us…
-
comment
Comment #41309605
I don't know about the older generation so I'll explain how PS4 emulation can be achieve. The first step is to understand how the console run the game. The good news is the PS4 has…
-
comment
Comment #41309049
Most PS4 emulators work in the same way as Wine.
-
comment
Comment #41308383
Those wiki has some incorrect information. How shadPS4 and fpPS4 works are the same. Almost of them can be categorized as a compatibility layer. The only one that can be called a P…