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

Co-simulation is widely used for verifying RTL implementations, see fx. dromajo.org but it's a general useful thing and I've used in many contexts, even for verifying a compiler against an interpreter.

comment 7y ago · link · parent

I love it. Thanks for doing this.

How long did it take you? How did you verify the memory accuracy? It sounds like you co-simulated your implementation with the emulation?

comment 7y ago · link · parent

The Raspberry Pi 4 info is out of date AFAICT. The initial release had non-working USB on my 4 GiB RPi4, but fixes came a few(?) weeks ago that apt update (over ssh) picked up. As best I can tell, it works flawlessly now. Mindbogglingly, I can comfortably do serious development work on $55 computer (albeit overclocking recommended).

At the other end of the spectrum, it's also running on my 5K iMac and that it just worked.

On the Dell XPS 15, the audio didn't work out of the box, but there's a common workaround for that.

comment 7y ago · link · parent

Because HN is not Reddit. The value of HN comes from good and insightful comments. Humor is noise and noise drowns the signal. EDIT: Humor is a problem per se if it accompanies useful comments.

comment 7y ago · link · parent

Hardly surprising for such a massive cross platform project. Catering to the particularities of each platform wastes a lot of effort. I personally really appreciate that Firefox works (mostly) the same on all the platforms I use.

comment 7y ago · link · parent

Controversial opinion alert! Java Bytecode is an awful design. It's obvious if you study it that it was never designed as a compiler intermediate. Instead it was a fairly trivial byte code machine for which JITting was an afterthought. The bytecode "verification" is such a difficult problem that it lead to multiple articles and originally had a sequence of security holes.

The JVM is also very far from language independent. Good luck making an efficient mapping for any language that doesn't look like Java.

WASM in contrast is designed explicitly for JITting, in fact, one-pass JITting is possible. The data structures maps well to the compiler backend. The representation is restricted in ways to avoid requiring expensive analysis, most notoriously, no arbitrary branching.

comment 7y ago · link · parent

The interesting thing about WASM is that it's an amazing representation[1] to translate from; certainly much more attractive than binary translation from a legacy ISA (maintaining the illusion of the original ISA carry a substantial tax). As thus, it allows you freedom to innovate something radically different, like TRIPS/EDGE radical.

I'd much rather translate from that than create the compiler backend and the entire toolchain.

[1] It's not perfect alas, as there are still many things the compiler knows that is lost in translation, such as the complete static alias sets of memory operations, true range limits on values, etc. For some of this we burn power today trying to (re-) discover at run-time (like the memory disambiguator).

comment 7y ago · link · parent

In which way is this "all" more than the flirc case? The Flirc case makes physical contact with the CPU and radiates heat all over the case. Don't let the black (removable) plastic top fool you - it's one solid piece the whole way.

comment 7y ago · link · parent

Are you 75+? My parents are. Move an icon an they get confused (I say that without judgement - they have not like grown up with an intuitive for software)

comment 7y ago · link · parent

I have tried many options (including powerful fans), but the Flirc case [1] (whole-case passive heat sink) is my favority so far and cools well enough for a 1.75 GHz overclock under torture testing (2+ GHz would crash under torture). [1] https://flirc.tv/more/raspberry-pi-4-case (I'm not affiliated, just a content customer).

comment 7y ago · link · parent

Ok, thanks, but it doesn't change that it's an unwanted expense and, the worst part, require new training.

Of course I already just learned that most of my Steam library would also turn into a pumpkin if I upgraded. Seems like I'm stuck on Mojave forever.

comment 7y ago · link · parent

The thing is, you can't use the touch bar without looking at it whereas I was constantly blind typing function keys. I think Apple have a different understand of "Pro" than I do.

comment 7y ago · link · parent

I was there for most of that, but loosing 32-bit feels different to me. For the physical peripherals, I could still use them on old hardware. Forcing me to remain on an old OS is far more severe and I too (and everyone in my extended family) ran into this. In particular, my relatives depend on the old Microsoft office packages they bought eons ago. "Fixing" the problem Apple gifted us means buying and learning new software (and AFAICT, you can't even buy Office anymore, only rent it).

This is extremely disappointing and I'm not even sure what to do next time their hardware dies (which has happened multiple times).

comment 7y ago · link · parent

Take that one step further and do what NFSv4 does: do more per command (system call); instead of sending a single command (with a single response coming back), send a sequence of command and the responses from all of them (terminating early if any of them fails).

comment 7y ago · link · parent

Surprised - I thought it was going to be about MBPs that can run Mojava, the last good macOS. It's my understanding that new hardware isn't (generally) compatible with older OSes. Apple killing my legacy (32-bit) apps officially ended my love-affair with macOS - typing this on a Ubuntu laptop.

comment 7y ago · link · parent

I doubt it will surprise you, but many disagrees with you. Using Haskell isn't a burden - on the contrary, it's far easier to get stuff working correctly. The type checker looks over your shoulder and stays out of the way until you make a blunder. It's not uncommon for things to work as soon as they pass the compiler. I work in C every day and this is not the typical experience there.

I'm hugely interested in Rust, but I'm disappointed that they felt the need to rename all concepts and adopt an ugly syntax. I assume it was done to attract the C++ crowd.

comment 7y ago · link · parent

Or deploy storage to make the curve smoother

comment 7y ago · link · parent

Having been with all the usual providers I feel T-mobile sucks the least, but on a wim I got a Ting SIM card for a spare phone and I ended up using it a lot. I love the transparency and have no complaints so far.

comment 7y ago · link · parent

> Just because we wrote 8 in the MMU mode, we don't quite have the MMU turned on. The reason is because we're in CPU mode #3, which is the machine mode. So, we need to switch to "supervisor"

I'd encourage him to start in Supervisor mode instead and use one of the standard bootloaders (bbl or openSBI) to deal with machine mode. This would be compatible with Linux and be more portable as different platforms will supply platform specific boot loaders.

comment 7y ago · link · parent

If I'm not mistaken, the thiveing Computer History Museum in Mountain View, CA, is where everything from that museum moved to, so no(?) artifacts were lost. I can personally recommend it.

comment 7y ago · link · parent

It was already announced at the RISC-V summit in Santa Clara, December 2018.

I couldn't quite tell if the cache was turned off permanently or it is a configuration option.

comment 7y ago · link · parent

Amazing, truly, but ... don't get the early version of a new model. I got one of the very early (RWD, 2012) Model S. It was awesome, but it had a far amount of birthing problems and thankfully I live close enough to the service center. However, I really wanted AWD so I swapped it out in 2014 and I haven't had almost no problems with it since.

Compared to the (notoriously reliable) Subaru Impreza WRX I drove for 10 years prior to that, there are no regular oil changes, etc.

I do spend more on tires now :(

comment 7y ago · link · parent

Who is moving goal posts? You claim above that the Porche is "Better in every way". Two rather significant ways it's not: speed and range.

comment 7y ago · link · parent

And yet none of these many examples are really compelling compared to a Tesla (wrt. range and performance). Quality > Quantity.

I'm actually glad they are trying, but they need to try harder.

comment 7y ago · link · parent

I haven't used or wanted a roof rack in 30 years (extra mass and drag at the highest location? No thanks), but the Model X has a lot of storage space, including the frunk so it's a non-issue.

The falcon doors also provide a surprising benefit: cover in the rain. And they are very practical with small children.

comment 7y ago · link · parent

Most certainly a compromise. More inputs amortizes more of the overhead (power pins, input pads etc), but too many wastes density.

A similar issues shows up in FPGA where four-input lookup tables (LUT4) were the sweet-spot for many generations but in the past few years LUT6 (and hybrids like the ALM ~ 2xLUT6) have taken over.

comment 7y ago · link · parent

A relentless optimization process executed over decades is always fascinating! Of course my 7-yrs quipped "Is that Fortnite?" to which followed a mini lecture in the history of FPSes.

comment 7y ago · link · parent

Well, it's not that simple. The CUDA model has a inherent penalty for divergent thread behavior, that is, when all threads do the same, peak performance is attained. If they all follow a different path, the result can be disastrous.

The relevance to media encoding is that the higher profiles do a lot of data dependent special casing. It's no accident that the earliest CUDA Video codecs only handled the base profile.

This also hurts a CPU implementation but much less.

comment 7y ago · link · parent

Not to be pedantic, but you could argue it goes all the way to 6502, so they have gone though all these transitions: 6502 -> m68k -> PowerPC -> x86. Added a x86 -> Arm64 transition would hardly be shocking.

EDIT: In case it wasn't clear; there are Apple II emulators for the Macintosh.

comment 7y ago · link · parent

The problems start in the first sentence. "Optimal" doesn't mean what Poul thinks, so he's attacking a straw-man. The data structure he poo-poos is CS 101 material. Anyone doing serious development knows better and uses structures appropriate for the underlying hardware (which fx. on an FPGA might be vastly different from an embedded process, and typically different from a workstation).

Databases have used B-tree and variants for at least 50 years, not binary trees, so obviously we Know this.

Much to do about absolutely nothing.

EDIT: typos

1
333435
52