Better HN
topnewbestaskshowjobs
Log inSign up

IAmLiterallyAB

567 karma · joined Mar 22, 2018 (8y ago) · 218 submissions

Submissions

comment 1y ago · link · parent

Google exposes serial Serial over the SBU pins on all the Pixel devices

comment 1y ago · link · parent

If you're reaching for that hack, just use C++? You don't have to go all in on C++-isms, you can always write C-style C++ and only use the features you need.

comment 1y ago · link · parent

> However, due to the runaway popularity of LLVM, virtually all compilers now use target triples.

That's a wild take. I think its pretty universally accepted the GCC and the GNU toolchain is what made this ubiquitous.

Also, the x32 ABI is still around, support is still around, I don't know where the author got that notion

comment 1y ago · link · parent

I think its actually the anti-Tivoization stuff that they take issue with

comment 1y ago · link · parent

Fascinating!

comment 1y ago · link · parent

Surely emulating ARM on ARM would be faster / easier to JIT? Or at least it seems that way

comment 1y ago · link · parent

Firefox is under the MPL, not the GPL

comment 1y ago · link · parent

There used to be patches in AOSP for Fuchsia but they all got reverted a couple years ago. I believe Starnix is the new strategy to get Android working on Fuchsia, if they are going to try for it.

comment 1y ago · link · parent

Yay this is awesome! GDB is a buggy (https://sourceware.org/bugzilla/show_bug.cgi?id=18772 https://sourceware.org/bugzilla/show_bug.cgi?id=9425) mess and rough code quality, I've wanted a do something like this for a while.

To be 100% clear, it's not using gdb/gdbserver under the hood right?

The bugs I linked above are over a decade old, and I have to patch them every time I compile GDB server. Ultimately (IIRC) GDB needs to rework how it handles signals (to their credit, ptrace is a horribly stupid API, especially before PTRACE_SEIZE, so I don't blame them for having issues)

comment 1y ago · link · parent

That is basically how Fuchsia handles it https://fuchsia.dev/fuchsia-src/reference/kernel_objects/pro...

comment 1y ago · link · parent

One thing I want to try is looking at all the packages on a minimum install of a Linux distro. How many of those are just a dude?

comment 2y ago · link · parent

> Herb side that proposes minimal changes

Herb is developing a whole second syntax, I wouldn't call that minimal changes. And probably the only way to evolve the language at this point, because like you said Sean is introducing a different language entirely, so its not C++ at that point.

I really like some of Herb's ideas,but it seems less and less likely they'll ever be added to C++

comment 2y ago · link · parent

I've been using my own version of this. Maybe I'll switch over, this looks more complete.

comment 2y ago · link · parent

I have a side project to try to make an extreme minimal size compiler for a Forth inspired language and implementation. It's a compiler that generates a Forth like interpreter and byte code. The bytecode is huffman encoded. Nothing works yet but its an idea.

comment 2y ago · link · parent

I like the diversity of hardware and strange machines. So this saddens me. But I'm in the minority I think.

comment 2y ago · link · parent

I'm not sure I follow, do you have an example where merging makes things more obvious?

comment 2y ago · link · parent

Or Chromium mobile

comment 2y ago · link · parent

And everyone knows its impossible to write malicious code for an iPhone...

comment 2y ago · link · parent

You can though! Stock Android supports multiple users. Just enable it in settings

comment 2y ago · link · parent

You could just leave it on.

I agree it's not great.

comment 2y ago · link · parent

Couldn't you syscall into the kernel to set the flag, then return back into usermode with it set?

comment 2y ago · link · parent

As long as it's on Apple hardware it's fine right? Or is there something else

comment 2y ago · link · parent

Perhaps but people weren't getting dementia at 40 back then. It's not really relevant what the average life expectancy was

comment 2y ago · link · parent

Interesting. Implemented the Index of Coincidence version for a class in college. Was fun.

This seems like the kind of problem that could be better solved by coming up with a better algorithm. Like, ultimately the model is performing an "algorithm" of sorts on the data to guess the key length.

comment 2y ago · link · parent

Planning to read this soon. Anyone got any other compiler book recommendations? Preferably modern (I've heard the dragon book is out of date)

comment 2y ago · link · parent

I'm surprised statx was that much faster than fstatat. fstatat looks like a very thin wrapper around statx, it just calls vfs_statx and copies out the result to user space.

comment 2y ago · link · parent

> I think people like you just feel the need to have something to complain about

Thanks for the ad hominem

comment 2y ago · link · parent

Horrific. One of the things that scares me about C++. A real shame because it has some cool features and some brilliant minds working on it.

I'm hoping something like Herb's C++ syntax 2 will make the language useable for mortals like me.

comment 2y ago · link · parent

Also vmsplice

comment 2y ago · link · parent

I'm an American who has recently fallen in love with ukiyo-e and shin-hanga. Hiroshige is my favorite artist right now. I'm hanging a print on my wall today for the first time. Really cool stuff!
12345
8