Better HN
topnewbestaskshowjobs
Log inSign up

FullyFunctional

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

Submissions

comment 3y ago · link · parent

it was similar to the ZX81 (monochrome and character only). Spectrum added higher resolution graphics and a highly constrained color option.

comment 3y ago · link · parent

OT: There was at least also LispMe. I used it extensively and wrote a medium large app in it.

comment 3y ago · link · parent

Once you flatten multidimensional arrays the folly of starting at 1 becomes apparent (much like mathematics got so much simpler when we switched to logarithms with the "obvious" log a + log b = log ab which was a breakthrough at the time).

If you have a two dimensional array A (1..N X 1..M), then flattening it becomes A[i][j] = flat[i + (j-1) * N]

Continuing to higher dimensions it only gets uglier.

0-based arrays are far simpler. When flattening A (0..N-1 X 0..M-1) A[i][j] becomes flat[i + N * j].

It's completely analogous to how our base-10 positional system works. Each digit doesn't start at 1, they start at 0, which is why 237 is just 2*10^2 + 3*10^1 + 7*10^0.

ADD: TIL HN supports escaping the astrix.

comment 3y ago · link · parent

A former coworker had a bad car crash after his cat jumped down between his feet!

When I took driving lesson, my instructor painted a vivid picture of the consequence of a crash while transporting heavy unsecured objects behind me - that lesson has stayed with me for over 30 years.

comment 3y ago · link · parent

More likely they are using compilers that support their private extensions. I call BS on all vendor supplied benchmark results, that includes SiFive, as they don't really represent results users are likely to get without extensive tuning.

ADD: it's unlikely the amount of cache and more likely their quite long L2 hit latency which is a lot longer (in wall-time) than, say a Cortex-A72.

comment 3y ago · link · parent

Impressive presentation but I find two things missing in particular:

* GRIN [1] - arguably a breakthrough in FP compilation; there are several implementation based on this

* HVM [2] - parallel optimal reduction. The results are very impressive.

[1] https://link.springer.com/chapter/10.1007/3-540-63237-9_19

[2] https://github.com/HigherOrderCO/HVM

comment 3y ago · link · parent

I got 7.64 SPECint2006 on my Lichee Pi 4A @ 1.85 GHz (same processor, different board). Raspberry Pi 4B @ 1.5 GHz gets 9.22 with the same compiler version and flags.

In fairness, the Cortex-A72 in the Raspberry Pi is the nth iteration of Arm cores whereas the C910 is essentially the 1st generation (the C906 is completely different and in-order). I wouldn't make too many conclusions based on this about the future of RISC-V and its implementations, but I'm looking forward to the next wave of higher performing cores coming to market.

comment 3y ago · link · parent

I'm not sure what your point is, but my Mac Mini M1 runs Linux. Asahi Linux.

comment 3y ago · link · parent

Dupe of https://news.ycombinator.com/item?id=36621057

comment 3y ago · link · parent

I'm curious how you can tell that it was BXS-4-64-MC1 that was supported. I looked and couldn't find that.

Besides the JH7110 there's TH1520 and it's using the BXM-4-64-MC1, also not supported, but 2X the speed of BXE-4-64-MC1 if I understand it correctly.

comment 3y ago · link · parent

I'm not familiar with all this, but when I run the demo page (https://webauthn.lubu.ch/_test/client.html) on macOS 13.4.1 with Safari (Firefox doesn't work) I get "none" for the apple attestation.

comment 3y ago · link · parent

And it was a great relief compared to my experience in, say, Pascal. You'll need a fairly advanced type system (Rust, Haskell, ...) to express the kind of stuff we wanted to do with static types and a very good compiler to make it efficient. We didn't have that until maybe mid-90es and trying to do it without that either led to very inefficient code or to breaking the type system.

So C was [mostly] great, but today we have better options.

comment 3y ago · link · parent

The NeXT laser did the same.

comment 3y ago · link · parent

That's misleading. The reason was not because it's a "laser printer" but because it was running PostScript (which is a full fledge programming language). Had the "API" been a trivial image printer (like the NeXT laser printer), then the compute requirements would have been far less intense.

comment 3y ago · link · parent

I was surprised to see nodes still have two pointers ("references") given that you now know that that the first pointer will always point exactly to the next node. I've see https://github.com/rswier/c4 use that. Granted it doesn't make for the most readable code, but it's even smaller and faster.

comment 3y ago · link · parent

[citation needed]

There are a metric tons of devices using this keyboard (I have some) and they are all sourcing from 3rd party that made spare parts for BB repairs. So while it’s indistinguishable from the original, it’s not “salvaged”.

comment 3y ago · link · parent

When I (loudly) wished for a PocketCHIP successor, I wasn’t hoping for a processor downgrade. If this was something Linux based it would have been dramatically more interesting.

ADD: I would also welcome a display-free version that could be used as a hackable BLE keyboard.

comment 3y ago · link · parent

"roam" isn't easy to search for. Do you have a link.

Does org-mode have the graphical map like NoteCards?

comment 3y ago · link · parent

I’d love to understand how this compares to Zerotier, Wireguard, Tailscale, Nebula, …

I use Zerotier because simplicity, cost, and iOS support matters more for me than speed, but I’m curious about alternatives (WG seemed much easier for me to screw up)

comment 3y ago · link · parent

Nobody (not even IBM AFAIK) uses coloring anymore so this is moot. ARMv5 isn't even supported by Linux anymore.

All modern caches PIPT, VIPT, or even VIVT must work with this scheme as it's semantically transparent to virtual memory. The performance of line-crossing accesses is a totally different issue and I would never used this "trick".

comment 3y ago · link · parent

It's just amortizing for large transfers. For frequent near-empty cases it still has the shared pointers problem. NVMe have a really clever way to avoid this, but it depends on the fact that there's [occasional] communication on the reverse stream (the SQ/CQ pair): The cache line sized entries in the submit queue has a "phase" bit in the last word. The reader can just read that to know when the entry has updated (the polarity of the bit toggles each time we loop around and you can just use the top+1 index bit if power-of-two sized).

The back pressure is handled with a credit scheme and the producer gets an updated copy of most recently-know consumer read counter with every completion message back.

Using this scheme you can achieve the optimal performance with just a single cache line of traffic for each cache-line sized message.

Unfortunately I haven't found a SPSC Rust crate that does this, but https://github.com/polyfractal/bounded-spsc-queue [abandoned] comes close.

comment 3y ago · link · parent

Yes. This morning I found my Roomba (i9 something IIRC) sitting idle in the middle of the kitchen. When I launched the iOS app, it appologised it couldn't connect due to AWS being down (I regret not taking a screenshot).

comment 3y ago · link · parent

"privileged commies" is a fascinating oxymoron. Is that really how you think of the people that disagrees with you?

comment 3y ago · link · parent

I "love" it when my vacuum stops working because an online book sellers servers went down. #modernlife

This is a good reminder to avoid cloud-centric products, but they are getting harder and harder to avoid.

comment 3y ago · link · parent

Well, that's missing a rather important part of the picture. The real culpit is Brian Krzanich, who, with beloved approval from the board I assume, completely destroyed the company. The cardinal sin was being way overly aggressive on the process technology which completely failed and left intel stuck on 14nm for way too many years. They use an "inappropriate work relation" as a reason to kick him out, but that obviously wasn't the real reason.

Bob Swan clearly wasn't the guy that could fix all this. Pat finally got the job he always wanted (he left for VMware because he didn't get it originally), but Intel is ship that's hard to turn (floating iceberg might be a more fitting analogy).

I'm rooting for Intel; I have friends there and competition is good for us consumers. Also, Intel is a friend of open source.

comment 3y ago · link · parent

I came to say this. It's not speed, it's comfort. I've been using Dvorak on my Kinesis Advantage since mid 90'es [1]. I don't actually think Dvorak is the best possible layout, but as the video points out, we are already in the realm of diminishing returns.

[1] I still use Qwerty on non-Kinesis keyboards and this fact is enough for my muscle memory to eliminate any mental overhead of switching.

comment 3y ago · link · parent

He probably should make BOX64_DYNAREC_RV64NOEXT=1 the default or at least detect it dynamically. Zba and Zbb isn't part of the application profile and other (faster) SoC do not necessarily have them (like TH1520).

comment 3y ago · link · parent

Tesla superchargers bypass the onboard AC/DC convertor already.

comment 3y ago · link · parent

That and flying cars too. Magnetic chargers are far less efficient and highly placement sensitive. They just don't make any sense. A mere gimmick.

comment 3y ago · link · parent

If what I read about the non-SC network, then I have to strongly disagree. The SC network is in my experience extremely dependable and fast. I have at most had an issue with (rare) congestion in peak traveling season at a popular stop. I have never been left stranded with all-broken chargers.
1
567
52