HackerTrans
TopNewTrendsCommentsPastAskShowJobs

unrealhoang

no profile record

comments

unrealhoang
·24 วันที่ผ่านมา·discuss
This is awesome, is there a way to render the graphics/chart in svg so that we can implement something like hover & popup (with data information)?
unrealhoang
·เดือนที่แล้ว·discuss
isn't this https://clojure.org/reference/transducers?
unrealhoang
·เดือนที่แล้ว·discuss
What if one day they do? Or appears to be, in the way that you couldn't distinguish? Will you update your priors?
unrealhoang
·2 เดือนที่ผ่านมา·discuss
It’s a good one, if you can still write functionally and same algorithmic complexity then it should not matter if you know strrev or not.
unrealhoang
·2 เดือนที่ผ่านมา·discuss
So not being able to write fizzbuzz is nowhere close to me.
unrealhoang
·2 เดือนที่ผ่านมา·discuss
And they can have an alternate screen outside the FoV of the second camera.
unrealhoang
·2 เดือนที่ผ่านมา·discuss
Or to automatically write command bitching about it.
unrealhoang
·2 เดือนที่ผ่านมา·discuss
Maybe not lootboxes but most certainly battlepass.
unrealhoang
·4 เดือนที่ผ่านมา·discuss
a bit tangent question: the communication between Python & Rust, could the pyo3 ser/de of Python objects be better than MsgPack?
unrealhoang
·5 เดือนที่ผ่านมา·discuss
it will be much less power-efficient, when jailbreak you could schedule the kindle to wake up once per 15/30/60 minutes to fetch the new data, set it as screensaver and then go back to sleep.
unrealhoang
·6 เดือนที่ผ่านมา·discuss
There’s split_at_mut to avoid writing unsafe yourself in this case.
unrealhoang
·6 เดือนที่ผ่านมา·discuss
> My groceries are cheaper if I walk out of the store without paying for them too. Who's going to stop me?

If you can consistently do that, then it IS the correct thing to do.

uv made that choice and users use them, is there an objective truth of what is “correct” to do version parsing?
unrealhoang
·7 เดือนที่ผ่านมา·discuss
Wow, now no more discussion and an accuse of bot? I’m flattered.

Also you are doing tech, be specific, what is much shallower or hollow?
unrealhoang
·7 เดือนที่ผ่านมา·discuss
All of `Vec` is much smaller than all of the place using Vec. IIRC, Vec is around 3k LoC. And for even low level code like Oxide & Android core, they are observed less than 4% of their code is inside or related to unsafe, that’s a massive improvement.

Yes, Rust is not new in term of allow building hard to misuse abstraction, it’s just allow abstraction over memory safety without relying on GC or runtime checks. Rust achieve this by adding capability to enforce shared XOR mutability with its borrowck which C++ couldn’t.
unrealhoang
·7 เดือนที่ผ่านมา·discuss
That would be the unsoundness of `Vec` itself, but if the abstraction of `Vec` is sound, there would be no way to use `Vec` outside of `unsafe` that can cause memory unsafety.

The point coming back to abstraction and responsibility, in Rust, you can build abstraction that is sound and guarantee memory safety from there. There can be soundness bug inside your abstraction, but it will be a massively smaller surface for auditing and expert required to write such abstraction. Also, when soundness bug appears, the responsibility is solely on the abstraction writer, not the user.

Whereas in C, without those safe abstraction, the surface of doing thing right to avoid memory safety issue is your entire codebase, and responsibility of "holding the knife correctly" is on the user.
unrealhoang
·7 เดือนที่ผ่านมา·discuss
from TFA, the main advantage would be for embedded (as a library) use case, FFI with Go is harder.
unrealhoang
·7 เดือนที่ผ่านมา·discuss
> logic bugs outside "unsafe" can cause bugs unsafe.

This is the wrong understanding of Rust's unsafety encapsulation. For example, no logic bug outside of `unsafe` can cause undefined behavior of Rust std's `Vec` abstraction, which is using underlying unsafe to build.

The point that "because unsafe is used so the entire Rust program is also unsafe" is a real major myth. It's as absurd as saying "because Java runtime using unsafe underlying to build so Java is also unsafe".
unrealhoang
·7 เดือนที่ผ่านมา·discuss
The get started section seems to be broken or missing content.
unrealhoang
·8 เดือนที่ผ่านมา·discuss
No but this time RFK is saying that, before it was devil Dems saying (Michelle Obama), so people had to eat trash food and be lazy out of spite.
unrealhoang
·8 เดือนที่ผ่านมา·discuss
Memory safety has a specific meaning, and panic isn’t it.

C++ can have UB, compilable non-unsafe Rust can’t, that’s what static analysis of memory safety is.

Main point here is you don’t know (and refuse to learn) new knowledge.