Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fwsgonzo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
35 ms
·
481.
▲
by
fwsgonzo
6y ago
I completely agree. The fact that the first example is using printf just shows that the best it can offer is some things we already know (template metaprogramming sucks etc.). C++20 has std::format which is insanely more powerful, safe and
482.
▲
by
fwsgonzo
6y ago
You can disable them individually too: -fno-builtin-memcpy
483.
▲
by
fwsgonzo
6y ago
This is what I've been working on with RISC-V, and you have no idea how much resistance I get when I try to fix the problems relating to calling conventions, inline assembly and system calls. I don't want to have to explain what I
484.
▲
by
fwsgonzo
6y ago
That seems like quite the achievement! I'm actively looking for a high-level language to put on top of an enterprise product, but it has to either transpile to C or integrate well with a C standard library (unfortunately). It's no
485.
▲
by
fwsgonzo
6y ago
Looks like it was a cease-and-desist
486.
▲
by
fwsgonzo
6y ago
I don't know which one it is. I bought it in autumn 2019 and it has a touch screen. I run bog standard Ubuntu 20.04 LTS on it.
487.
▲
by
fwsgonzo
6y ago
There is a lot of right-wing content rabbit holes to fall into. Most people aren't inherently looking to understand what others are going through. It can make you think that others are lazy or ungrateful, and that events, even if they
488.
▲
by
fwsgonzo
6y ago
I have a Carbon X1 and it works perfectly, including the fingerprint unlock and the touchscreen.
489.
▲
by
fwsgonzo
6y ago
https://www.bbc.com/news/technology-43301643 Especially Russia would have a lot to gain from Trump being re-elected. It would have been crazy if they didn't put all hands on it. And the same can be extended to fri
490.
▲
by
fwsgonzo
6y ago
What makes you say that Facebook isn't doing those things in other countries? It really is. It's so easy to get caught in a web of scary news that agree with something you were already thinking, and never letting go. I have friend
491.
▲
by
fwsgonzo
6y ago
This is the delisted video: https://www.youtube.com/watch?v=_2khAmMTAjI
492.
▲
by
fwsgonzo
6y ago
We really need a simpler language that has the same ownership model. I like Nim because I can compile it without threading support, and for RISC-V (albeit 64-bit, wish it had 32-bit support too..). Overall, I like it, but I could not justif
493.
▲
by
fwsgonzo
6y ago
I don't think it was that disappointing. All it says it that the difference between elderly high-intensity and medium-intensity training is very little, and not statistically significant. Same with both combined compared to an elderly
494.
▲
by
fwsgonzo
6y ago
https://linuxplumbersconf.org/event/4/contributions/283/atta... That presentation has some info on XO
495.
▲
by
fwsgonzo
6y ago
When Linux loads your program it actually puts quite a bit of stuff on the stack. The first thing it puts is the argc followed by an array of argv pointers, followed by a zero. After that it puts the environment variables, followed by a zer
496.
▲
by
fwsgonzo
6y ago
Thanks, I was aware of canaries actually, and I've been using XO (execute-only) which makes code unreadable, which is a better version of what you call W xor X in my own emulation. Code should simply not be readable, as it never contai
497.
▲
by
fwsgonzo
6y ago
Well the table would have fixed indexes that translate either into addresses that go to trampoline functions that would then execute the system call, or just some kind of translation 0 -> write etc. It's not important. That said, I
498.
▲
by
fwsgonzo
6y ago
How many exploits are made unreasonably hard just by making the executable code execute-only? Also, what about making syscall table something that is passed to each process on start - containing syscalls in random order? I largely don'
499.
▲
by
fwsgonzo
6y ago
Considering how vapid the current lineup of social networking is, I'm willing to see how it turns out. There are some other great features too, but I didn't see anything about video-conferencing, which would be a killer feature.
500.
▲
by
fwsgonzo
6y ago
You don't have to have the executable code in-memory for RISC-V emulation.
501.
▲
by
fwsgonzo
6y ago
Sounds awesome. I have some abstractions for making interfacing easier, but I don't have any auto-generated structures. https://github.com/fwsGonzo/rvscript I have done that here. Example: APICALL(api_math_s
502.
▲
by
fwsgonzo
6y ago
Very interesting, and thanks. > the running code is not even provided with a way to access itself. You can do the same thing with some ELF post-processing. I have done this, and used it over several months now. It works just fine, even t
503.
▲
by
fwsgonzo
6y ago
I don't completely understand your second point there, because I'm not necessarily talking about full-system emulation. Just userspace emulation. So, why can't RISC-V be a sandbox? It's just loading a normal ELF into a v
504.
▲
by
fwsgonzo
6y ago
There's always RISC-V :) Nothing wrong with it, or anything preventing it to be just as fast. The only thing it doesn't have yet is a standardized vector-extension, but it's probably pretty close. We just need JIT support for
505.
▲
by
fwsgonzo
6y ago
No, but there are many things that don't provide any net value that is even more prolific. All the sugary drinks that just give you health issues, the big monopolistic companies that replaced smaller decent-wage shops with big low-wage
506.
▲
by
fwsgonzo
6y ago
There is a table, here is the code: https://github.com/fwsGonzo/rvscript/blob/master/engine/scri...
507.
▲
by
fwsgonzo
6y ago
Much less so with functions at compile time. The first thing I noticed was his example of the fibonacci numbers at compile-time. You can do those things with regular functions now, and just marking it as constexpr or constinit. I actually t
508.
▲
by
fwsgonzo
6y ago
no I think I tried just about everything: pub, extern etc. The only thing that worked was adding a linker argumment: "-C", "link_args=--undefined=<name_of_function>" That will force the linker to assume it's r
509.
▲
by
fwsgonzo
6y ago
It's weird because out of all the languages I have made a special environment for, Zig is the only one I couldn't figure out how to. For example, how to write global asm? How to call the Zig main function? I guess I need a trampol
510.
▲
Show HN: C++17 RISC-V RV32GC / RV64GC userspace emulator library
(github.com)
31 points
by
fwsgonzo
6y ago
|
5 comments
More ›