Better HN
topnewbestaskshowjobs
Log inSign up

FullyFunctional

3,566 karma · joined May 8, 2013 (13y ago) · 1,534 submissions

Submissions

comment 6y ago · link · parent

This marks the first Rust release than can be directly installed with plain old rustup.sh on RISC-V Linux distributions (like Ubuntu, Fedora, and others). A very awesome milestone and my thanks to all who contributed.

All the core tools I tested works 100% and almost all the crates work. A few, like libc and Nix, still needs explicit riscv64 support.

comment 6y ago · link · parent

I frequently have to defend why I hate Python but the foremost reason is that lack of static typing (which also makes reading other peoples codes harder than it need be). Static typing, especially in a rich type system like, e.g. Haskell and Rust, doesn't guarantee you don't have bugs, but it almost guarantees the ones that remain are better bugs, that is, application level bugs. However in my experience, I can usually tell what kind of code will be correct once it passes and which might still have issues.

comment 6y ago · link · parent

OT: but hoping the reach you; is there a less obfuscated version of your binary lambda evaluator?

comment 6y ago · link · parent

This is really neat, but I don't understand why the diagram version have a little added drop-down. Take for example S [\x\y\z(x z)(y z)], the alternative version doesn't have the little extra vertical line segment. Is there a reason for it?

EDIT: Curiously, the Omega doesn't have it either.

comment 6y ago · link · parent

It was actually Su. Keller, for all his brilliance, could not turn a company around. After Su, AMD has been very focused and have executed around a plan (marketing insanity notwithstanding).

It's just AMD's good fortune that Intel's consistent stumbling have made their great engineering look even more outstanding in comparison.

comment 6y ago · link · parent

That's not a particularly good representative of real applications, but I'll be happy to do the study for you. Let me introduce you to my consulting fees.

comment 6y ago · link · parent

I have an irrational reverence for my moderately modded PocketCHIP and pull it out every few months, but the keyboard is just truly awful. This is possibly a spiritual successor https://www.tindie.com/products/arturo182/keyboard-featherwi...

comment 6y ago · link · parent

The physical keys is why I still grab my 30ish year old HP-11C for quick experiments, however it's hard for me to phantom a good experience with K on a single line display. We'd probably be better off with a portrait form factor, roughly 1/3 display, 2/3 keyboard. Getting switches with the HP quality and feel is the biggest problem.

EDIT: actually, porting oK to the DM41x might be the best option (putting stickers on remapped keys).

comment 6y ago · link · parent

You clearly aren't an emacs user. Remapping the control and alt key will make it very difficult to use. Same goes for a few other "TUI" applications like it.

comment 6y ago · link · parent

That is amazing. Pray-tell, what exactly do you use the terminal for?

All the control characters have pre-existing meaning, for example in bash Ctrl-C sends SIGTERM to the foreground process, while emacs uses it a prefix command, etc.

This is the crux of the problem. You _cannot_ steal the control characters if you want the terminal to be a terminal and that means you either end up with an inconsistent mess or you pick a new and neutral (say, Cmd) modifier for your UI needs. Apple got it, Microsoft didn't (because they didn't do anything Unix like). That Linux chose to imitate Microsoft is equal part historical and tragedy. EDIT: typos'R'Us

comment 6y ago · link · parent

HN articles that show up are the ones that got the most votes so it stands to reason it what people wants to read.

comment 6y ago · link · parent

Even if I wanted to relearn (I don't), you still have the problem of inconsistencies. In terminal copy is Shift-Ctrl-C, in Firefox it's Ctrl-C, and you don't have all of the emacs bindings my muscle memory relies on (which is a big deal for me - I use them all and all the time).

comment 6y ago · link · parent

I for one would love for [a version of] Linux to use the keybindings of macOS (in particular emacs bindings in all text fields) and really good trackpad support.

There are many subtle things that works amazingly well on macOS. Most immediately, scrolling with the trackpad is smooth, responsive, and smooth. On Ubuntu 20.04 (XPS 15 9550), my experience was pretty much the opposite and with visible tearing. I'm not trying to bash Linux, I want to move to it, but these are the things holding me back.

comment 6y ago · link · parent

I had the good fortune to have Ole Caprani as my 2nd year teacher at the university and he really drilled home the message that it's all the same the whole way down. The more you understand the whole stack, the more you realize that even the CPU is just an interpreter for it's own language (the ISA).

A sufficiently smart interpreter for a language can be faster than a native binary as the former has the freedom to adapt to dynamic conditions. This is the essential point of JITs. It beats ahead of time compilation when dynamic conditions do change but slowly enough to amortize the overhead of adapting to it.

comment 6y ago · link · parent

You may feel this, but I find these articles to be a high-light of HN. Optimization adventures are stuff I learn from and actually use. That it's in Rust makes sense as it does offer new ways to do things (in this particular article, the Rust aspect wasn't particular important, but it's a follow up to one where it was).

comment 6y ago · link · parent

Instead of downvoting me, maybe you could explain what I'm missing?

comment 6y ago · link · parent

Honest question, why couldn't you do this before, having the boot loader on an SDcard and everything else hanging off USB?

comment 6y ago · link · parent

It's nice but I'm honestly baffled that it's seen as such a big deal as it's pretty trivial to make grub boot off USB, leaving the SDcard only being used doing the initial boot. Is it just about the convenience?

comment 6y ago · link · parent

Please note that it has a non-working MMU and is limited to 8 MB of DRAM. This is not the SBC you were looking for.

comment 6y ago · link · parent

It took me a fair amount of searching to establish that ESC refers to https://en.wikipedia.org/wiki/Entity_component_system

comment 6y ago · link · parent

Touché. I do desperately miss macOS's emacs bindings across the board and the wonderful Cmd that leaves Ctrl alone. I constantly look for a Linux distro that actually "get it", but so far all I've seen are efforts to make it _look_ like macOS, without making it _feel_ like it.

TL;DR: I cope, begrudgingly.

comment 6y ago · link · parent

That's pretty much my setup for the past few years. I find there's a significant productivity boost from being able to resume exactly where I left off hours or days ago, without having to depending on accessing with the same devices from the same location. For this, mosh + tmux are super lovely. I do use VS Code locally, but I export the filesystem, typically with sshfs.

comment 6y ago · link · parent

Yep, I've been doing this for nearly a decade. This in combination with Gmail's spam filter works just fine. I have caught quite a few emails to my parents from people who can't spell their (simple) email address.

comment 6y ago · link · parent

I change platforms many times a day (macOS, Linux, occasionally Windows) and VS Code being cross platform is essential for my use of it. Being Mac-only is a complete deal-breaker.

comment 6y ago · link · parent

+ freedom to make your own extensions + $0 license fees. The list goes on.

comment 6y ago · link · parent

First, the RISC-V Consortium is an organization (now) based in Switzerland. Second, there is literally nothing anyone can do to stop you from making a RISC-V core, short of calling it "RISC-V". For that, you have to pass a few tests, but all trivial stuff for a serious contender.

On a related note, I don't think it's an accident that Apple almost completely avoids talking about "Arm" but instead calls it "Apple Silicon".

comment 6y ago · link · parent

It's not clear to me. The big new thing in the 74 core is the vector extension (thus, RV64GCV) and in the context of the question it might very well have been that the OP was asking about. Clear and effective communication benefits from the absence of ambiguity lest we just end up with a bunch of TLAs that ATM seems FTW, but might raise a "WTF" for someone else. YMMV.

EDIT: reworded

comment 6y ago · link · parent

What is "R-V"? Please use correct non-ambiguous terminology.

The press release says nothing, but 740 suggest it's based on the 74 which is a dual issue core with the vector extension. The latter is a big deal (basically doubles the silicon area for one metric), but ISTM that it's not the OoO core, so not in the same class as eg. BOOM.

comment 6y ago · link · parent

That was a surprisingly great review, thanks. I do regret that the Apple-style half-sized up and down arrows are so common.

comment 6y ago · link · parent

> Our reviews generally leave extensive synthetic benchmarking to others

That left a really bad impression - I get that they are too lazy to actually measure the performance, but the snooty "synthetic" was uncalled for and frankly disrespectful to the people doing the work they are too lazy for.

1
282930
52