HackerTrans
TopNewTrendsCommentsPastAskShowJobs

dmytrish

no profile record

comments

dmytrish
·27 วันที่ผ่านมา·discuss
That's what wayland-client does.
dmytrish
·2 เดือนที่ผ่านมา·discuss
There are two kinds of memory leaks: forgotten manual freeing (all references are gone, but allocation is not) and forgetting to get rid of references that keeps an allocation alive. Both are a kind of logical error, but the first is mostly possible in languages with manual memory management. The second one is a universal logical error (only programmer knows which live references are really needed).
dmytrish
·2 เดือนที่ผ่านมา·discuss
You don't need Mythos for that, just open the bun issue tracker and filter for "segmentation fault".
dmytrish
·3 เดือนที่ผ่านมา·discuss
I agree with most of your points, but why would a Wayland compositor need a hypervisor at all?
dmytrish
·4 เดือนที่ผ่านมา·discuss
That does not mean that "things as they are" is "how it's ought to be".
dmytrish
·6 เดือนที่ผ่านมา·discuss
You don't have to love risk to build something you need.
dmytrish
·6 เดือนที่ผ่านมา·discuss
Thanks so much for great work! I hope to finally see VisionFive 2 with enabled GPU acceleration soon.
dmytrish
·6 เดือนที่ผ่านมา·discuss


   ~/c/t/s/zpdf (main)> zig version
   0.15.2
Sky is blue, water is wet, slop does not work.
dmytrish
·6 เดือนที่ผ่านมา·discuss
...and it does not work. I tried it on ~10 random pdfs, including very simple ones (e.g. a hello world from typst), it segfaults on every single one.
dmytrish
·9 เดือนที่ผ่านมา·discuss
+1, SREs can spend months during their onboarding basically reading design docs and getting to know about services in their vicinity.

Short of publicly releasing all internal documentation, there's not much that can make the AWS infrastructure reasonably clear to an outsider. Reading and understanding all of this also would be rather futile without actual access to source code and observability.
dmytrish
·9 เดือนที่ผ่านมา·discuss
Considering that D in "ACID" stands for "durable", it's a pretty sloppy joke.
dmytrish
·9 เดือนที่ผ่านมา·discuss
What's great about its type system? I find it severely limited and not actually useful for conveying and checking invariants.
dmytrish
·9 เดือนที่ผ่านมา·discuss
> pass around the allocator to every function that allocates to the heap.

what prevents a library from taking an allocator, saving it hidden somewhere and using it silently?
dmytrish
·10 เดือนที่ผ่านมา·discuss
So far, most of Zig enthusiasts look to me like people who get sugar rush from writing fast native code and are ignorant (i.e. newcomers to system programming) or arrogant (e.g. long time C programmers stubbornly stuck in their ways) enough to think that memory safety is just a question of not writing stupid bugs. Or luddites that think that programs must always be simple enough to get memory safety right.
dmytrish
·10 เดือนที่ผ่านมา·discuss
Actually, the strong type system is often why people like to write Rust. Because encoding logic invariants in it also helps to prevent logic bugs!

There is a significant crowd of people who don't necessarily love borrow checker, but traits/proper generic types/enums win them over Go/Python. But yes, it takes significant maturity to recognize and know how to use types properly.
dmytrish
·6 ปีที่แล้ว·discuss
Yes, that's where AT&T is more logical.

In practice, though, naming a symbol with a register name is error-prone and confusing. I'd rather have a way to escape a symbol when it's really needed than to pay the price of noise for an admittedly bad idea.
dmytrish
·6 ปีที่แล้ว·discuss
I subjectively like AT&T syntax more (as a more familiar to me and having more "machine" vibe).

However, I recognize that it's objectively worse for a human coder and contains some syntactic footguns which shoot even a experienced coder regularly:

- `number` (memory displacement/pointer) used instead of literal `$number`. It's an easy automatic mistake even for a person who knows this very well.

- the SIB clauses for x86 (memory addressing with constant Displacement and Scale and Index, Base in registers) look like `D(B, I, S)`: it's possible to remember this, but reading/writing it is not as obvious as `[D + B + I * S]`.

- Intel syntax in general is more similar to high-level languages, even though it's more verbose.

- AT&T syntax has syntactic redundancies like '%' before each register which make code much noisier than needed.
dmytrish
·6 ปีที่แล้ว·discuss
Embedded/systems programming is not possible without dropping to assembly at times. Also, it can unlock some hardware-specific performance optimizations.

Rust already has unsafe blocks (explicitly marked `unsafe`) for this kind of situations. Inline assembly obviously is allowed only in unsafe contexts and should be used very carefully.
dmytrish
·6 ปีที่แล้ว·discuss
It also translates to "only/sole/single" from Dutch.