Better HN
topnewbestaskshowjobs
Log inSign up

FullyFunctional

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

Submissions

comment 4y ago · link · parent

It would be hard to miss as it’s required to display anything. However, most dev kits come with a controller which embeds a [proprietary] set of waveforms. That however leaves you with conservative implementations and far from state-of-the-art.

comment 4y ago · link · parent

Thanks I might misremember. Regradless, 8080 is still awful and they could have sone better with more foresight (which is easy to say so many decades later).

comment 4y ago · link · parent

This is missing a conversation about https://lib.rs/crates/compact_str (and a few alternatives like it). TL;DR: String takes the space of three pointers, that is, 24 bytes on 64-bit archs. compact_str fits up to 24 byte strings in the same space and reverts to String for longer strings.

ADD: that is, avoids heap allocation for those, unlike both Box<str> and String.

comment 4y ago · link · parent

That's too generous. They were primarily designed for what was easy to implement and what _could_ be handled in assembly. Also, 8080 was an evolution of the 4040 (and that owed much to the 4004). Z80 had to be compatible with the 8080... I know less of 6502 but most of them were designed about what could be done, not what would be easy to program.

comment 4y ago · link · parent

Very cool. While obviously not ideal, the results are probably accurate within a small factor. Unfortunately there's no assembly version for 65C02 but Z80 does surprisingly well in this test.

I muse what could be done with modern cross-compiler (SAT solving for optional code sequences?) A llvm backend for Z80 has recently kicked back into gear: https://github.com/jacobly0/llvm-project

comment 4y ago · link · parent

With the optics of _compiled_ code, how do the various 8-bitters stack up? (6809/6811, 65C02, Z80, H8, ...)? One would have to account for the frequency allowed by the ISA at iso-technologies (which makes including AVR somewhat tricky).

I only have experience with Z80 and 65C02 and I believe the consensus is that a 4 MHz Z80 beats a 2 MHz 65C02, but neither is a particularly nice compiler target.

comment 4y ago · link · parent

The author seems desperate to justify the existence of this blatantly obvious Ponzi scheme. Also on display is the oft associated arrogance that insists that the only reason people are against Crypto currencies is because they “missed out”.

What a depressing load of manure. I can’t wait for it all to crash and burn yet I feel sorry for the many who were duped and lost a lot of money they couldn’t afford to loose.

comment 4y ago · link · parent

Thanks, got pointers?

It already works very well (seat-of-the-pants feels comparable to or better than my sshfs recollection); I managed to build Rust projects over it (with target on local FS).

Googling around suggest bumping the TCP transfer window but I don't see that as option in macOS's man mount_nfs, or any other useful option for that matter.

comment 4y ago · link · parent

Oh wow, inspired by the stunnel above I just successfully used

    $ ssh -Nf -L2049:my-nas:2049 my-gw
    $ sudo mount -t nfs -o vers=4 localhost:/mnt/somewhere/username /home
to mount my home (5,000 miles from where I currently sit) over ssh (over zerotier) without needing SSHFS. I'm going to use this going forward.

comment 4y ago · link · parent

All machines (~ 10 highly diverse) in my home lab mounts my $HOME over NFSv4 from a TrueNAS server. Works very well. I can saturate 10 GbE easily (and have 100 GbE point-to-point to the main compute server). SSHFS is just crazy slow in comparison, has tremendous CPU load, doesn't have reliable coherency semantics (well it can, but then it's even slower). However, creating an ad-hoc sshfs mount is trivial unlike with NFSv4. Also, SSHFS is of course encryped on the wire unlike NFSv4.

TL;DR: both have valid use cases, but for a home file server I'd definitely choose NFSv4 for Unix (*BSD, Linux, macOS) hosts (know nothing about Windows).

comment 4y ago · link · parent

NFSv4 (not NFSv3 or earlier) is the most efficient network FS protocol (beats SMB in all my testing), but I frequently access work machines over VPN and can't use NFS because of many reasons in which case SSHFS is very convenient.

ADD: Some might not be aware that NFSv4 is a MAJOR change from the earlier versions and has many radical changes, including: time-expiring lease-based coherency, bundled requests (do much more in each NFSv4 network packet), locking built-in to the protocol. Don't don't base your assumptions of NFS on NFSv3.

Some on this thread suggests Syncthing, scp, rsync, etc, but this not really the same. When the file system is enormous and you need to commit your changes back - it would be impractical to sync everything (many TiB of data) and a pain to try to remember which things changed.

The situation on macOS has been a bit sad; Mac Homebrew refuse to install sshfs as Mac FUSE is not open source (because the author got fed up with commercial abuse of his work). I sympathize, but that still leaves me in limbo. Ideally, Apple should just include a FUSE like facility in macOS as it's so useful.

comment 4y ago · link · parent

It's mentioned by Mihail Milchev in comment #13. I say that exactly because this is the reason I've been doing this for years myself.

comment 4y ago · link · parent

The cargo here is humans

comment 4y ago · link · parent

This irks me greatly. I never ever use Excel and only rarely spreadsheet (and only for easy graphing).

I use 1st year university-level math very frequently (stats, algebra, etc), but very very rarely anything more advanced.

PhD in CS, not from a school on his list.

comment 4y ago · link · parent

Indeed, that "18%" improvement is almost certainly made up of very many 1% improvements (or more likely, many improvements that each only makes difference in some scenarios).

comment 4y ago · link · parent

I have worked on simulators for most of my life and the GPs definition is not true.

There's no formal distinction between the two, but conventionally emulation is more faithful whereas simulation is more high-level. Still, the two are used fairly interchangeably.

comment 4y ago · link · parent

My only interest in this is as an FPGA dev kit. It was surprisingly hard to find details on the actual hardware but it appears to be a Xilinx™ Artix A7 200T according to https://shop.trenz-electronic.de/en/TE0765-03-S001-MEGA65-hi... That page curiously doesn't specify the amount of external DRAM, but various hints suggests it might be 8 MiB of HyperRAM (that's DRAM with a simpler protocol). Cute.

comment 4y ago · link · parent

It was purely software, but future developments of the idea (like NVIDIA Denver) wasn't purely software. However, the backend is necessarily tried to the ISA you are emulating (true for all of them, including SoftMachine). You need the data types to match (eg. Transmeta supported x87-style FP) to have any hope of performance. The universal machine is neither possible nor desirable (it would be inefficient).

These days the IMO most interesting ISA from a JIT point of view is WASM as it's the one that offers the most information (context) and the fewest constraints on the implementation.

comment 4y ago · link · parent

You are exactly right, both about how he deals with criticism, takes credit, and I should have caught on at the time (I didn’t - due to unrelated reasons).

It was apparent from very early on that I would never want to work for him. Later I have met ex-Tesla employees who confirmed my concerns (“you work on whatever is his most reason pet idea, dropping everything else”).

comment 4y ago · link · parent

I have bought three Tesla since they first came out. I love the cars, dispute imperfections they are still the best I have driven. But - I’m embarrassed to have any association, however remote. with Musk.

There were plenty of warning signs, but it’s wasn’t until Covid (“Silly, it’s just like a flu”) that I couldn’t look away any more. Since then his megalomania has only grown. Where does it end?

comment 4y ago · link · parent

"the size of a two-pence coin" -- I need to know how many football fields that equates to. Heavens forbid using actually sensible units.

comment 4y ago · link · parent

Someone is documenting their findings on Lisp-1: https://github.com/erikcorry/understanding-lisp-1

comment 4y ago · link · parent

Add: got it working with simh ("brew install simh; pdp1") using the instructions in the linked zip file. It is _really_ delicate, but I finally got fib working:

    (rplacd (quote sub) (quote (expr (lambda (a b) (plus a (minus b))))))

    (rplacd (quote fib) (quote (expr (lambda (l) (cond ((greaterp l 1) (plus (fib (sub l 2)) (fib (sub l 1)))) (t l))))))

    (fib 22) 
    5030
Why yes, it's all in octal fib(18) = 2584

comment 4y ago · link · parent

A "register" is just a [core] memory word. ("The PDP-1 uses an 18-bit word size and has 4096 words as standard main memory", https://en.wikipedia.org/wiki/PDP-1). Terminology changed since then.

I like how the assembly source code is small enough to include at the end of the manual. A bit of slogging finds you the source code and a pdp-1 assembler, enough to run it on simh or MESS, but even though there's a online PDP-1 emulator running SpaceWar!, I wasn't able to find a way to run Lisp 1 online.

* http://www.softwarepreservation.org/projects/LISP/interlisp_...

* http://simh.trailing-edge.com/kits/lispswre.zip

comment 4y ago · link · parent

That smells an awful lot like arithmetic coding. Is it just a reformulation (genuinely curious)?

comment 4y ago · link · parent

We adopted Slack and I hate it but use daily. What I find so frustrating with Slack is that it's

1. Super terrible at threading. Threads are clearly discouraged and don't nest. This appears to be by design, but even Usenet handled threading better.

2. Slack is an information wastebasket - at least in my experience it's really hard to find information once there's a significant traffic in a deployment.

3. Too Much Notification! I have to mute channels that has a high rate of addressing the channel.

However there's no denying that it's popular. Seems like every place I go is using Slack. At least slack allows me to edit my typos.

comment 4y ago · link · parent

Hyper efficiency isn't about you, it's for the corporation and, to no small degree, the insurance company.

I'd have to imagine that the amortized cost (millions?) for the MRI machine, it's operation and storage, and the trained personnel isn't free, but obviously much less than you and your insurance pay.

1
151617
52