Better HN
topnewbestaskshowjobs
Log inSign up

FullyFunctional

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

Submissions

comment 9y ago · link · parent

(BTW: Huge kudos to Netflix for driving vendors to support FreeBSD)

Unfortunately exposing my nativity on both NICs and TLS, I've never understood why NICs couldn't support the crypto in a way that it can just send the packet straight to the wire after encryption. Is there some deep (unfixable) reason in the TLS/TCP protocol or just a lack of foresight in the NIC design?

comment 9y ago · link · parent

Yep, my Nascom 2 was a kit (2000+ solder points!). I maintain nascomhomepage.com which has most everything. If you have anything not already there, kindly share!

comment 9y ago · link · parent

Because you want to run it on your favorite platform, which might not be x86 and thus need compiler support? I wrote my own editor for exactly this reason: to always be able to have it on any platform.

comment 9y ago · link · parent

You should examine why you dream of this; what is the attraction?

This isn't my itch, but some possible answers could include having hardware enforced type safety and architectural support for efficient execution. To give a rather extreme example of what is possible with a dedicated architecture, study the Reduceron [1,2]. IMO, doing something similar for Lisp would be much much easier.

Could it be done? Yes, absolutely and it would be great fun. You'd have to work with an FPGA though unless you have a sizable fortune to fab a chip (though 28nm is almost affordable).

[1] https://www.cs.york.ac.uk/fp/reduceron [2] https://github.com/tommythorn/Reduceron

PS: Reduceron has a hardware garbage collector

comment 9y ago · link · parent

There's no technical reason a Lisp processor couldn't have followed the same development path as workstation/PC processors and kept up, but it didn't have the volume to sustain the development effort.

comment 9y ago · link · parent

> The tagging ideals still survive, e.g. in the RISC-V.

I'm not sure what you are thinking of, but there's no such thing in RISC-V. Possibly you are referring the the goals of lowRISC, which will be RISC-V based but have various extensions.

comment 9y ago · link · parent

My first computer (Nascom 2) didn't even have a floppy. A hard disk would have cost many more times than the computer. The first hard disk I saw many years later was 80 MB and very loud.

Almost six orders of magnitude advancement. I do wonder if humanity will every be able to pull such a stunt again.

comment 9y ago · link · parent

My favorite part: "Also available from XCOMP: General Purpose controllers (8 bit interface), with easy interface to microprocessor-based systems."

Contemplate this for a moment. Not exactly plug-and-play!

comment 9y ago · link · parent

Furthermore, SPARC, like most RISC at the time, didn't support unaligned accesses, so to a large extent you got tag checking for free. Eg. assuming "01" tags for pointers and a simple two-word CONS cell, car would simple be one load instruction.

  ld %rd, [%r1 - 1]
if %r1 didn't have a "01" tag, this would trap.

Finally, SPARC reserved 8 registers for "global" use, that is registers what wouldn't be otherwise used by the compiler. Use was as simple as

  register int *sp asm("%g3");
which was immensely valuable for VM implementations (and others).

Unfortunately, the tagged add instructions didn't get much use; perhaps SPARC wasn't a big enough base to justify designing around it.

comment 9y ago · link · parent

This interesting article also reminded me of another HN story (comment really) [1] about Carmack's interest in providing Plan 9 with great interactive graphics. It's IMO a great pity they didn't consider his input more seriously.

[1] https://news.ycombinator.com/item?id=14523222

comment 9y ago · link · parent

Intel lost a lawsuit to Transmeta for similar nastiness [1] (of course the latter went out of business before the total could be collected).

Charlie holds many grudges; he pissed NVIDIA off enough that they denied him access after which his been dumping dirt on them whenever he can, justified or not.

"Semi-accurate" is an appropriate name. He's sometimes right.

[1] https://en.wikipedia.org/wiki/Transmeta

comment 9y ago · link · parent

SiFive announced that at Hot Chips 2017 (last week): their quad+1 core is coming out early next year.

In addition to that, I expect to see some interesting announcements at the RISC-V workshop in Nov.

Patience, patience. It's likely that RISC-V adoption will happen bottom up, first deeply embedded space (like NVIDIA, who is using it internally in the GPU for managements). Next, bigger cores will also happen especially where there's no (perceived) advantage to using ARM. A standalone chip will probably come late and will likely come from China from someone looking for a way to stand out from the myriad of ARM vendors out there.

Just the idle musings of an ARM-chair analyst.

comment 9y ago · link · parent

Arghh. The series ended before he succeeded. So close!

It was a fascinating read however and an inspiring display of persistence.

comment 9y ago · link · parent

Ha, your comment was my first introduction to Nim but it looks interesting so I "brew install nim" and tried your test (thanks!) with "nim c test.nim && ./test" on macOS and my results is the opposite of your: hello1 is garbled while hello2 works.

I bit of googling found the next steps "nimble install minx" but for compiling your win.nim example I had to use "nim --noMain --threads:on c -r win.nim" but the result worked. However AFAIK, there's no official way to make statically linked binaries on the latest macOS.

comment 9y ago · link · parent

The article is [only] a write up of the Hot Chips presentation (I was there). Without a an external validation of the claims it's merely pretty pictures. Iff their claims holds true, then there's some interesting elements here.

This is far from the only data-flow architecture out there (my favorite is the TRIPS instance of EDGE), but so far none have succeeded in the market.

The self-timed part is using NULL Convention Logic (NCL). Wave have dubbed their implementation of this WTL (see https://news.ycombinator.com/item?id=11469749). There are some very interesting questions about exactly how they use this, but it sounds like the synchronization between compute nodes is using NCL, but the compute nodes are conventional synchronous logic, clocked by the completion signal from NCL. That would certainly be an interesting hybrid, but the 6.7 GHz results begs a lot of questions.

comment 9y ago · link · parent

Good list for starters, but obviously the reset question has nuances (not opening that can of worms).

One thing that bit me when I was a complete n00b: assigning registers from within more than a single always block. On my simulator (at the time) it worked perfectly but the synthesis tool silently ignored one of the blocks.

EDA tools suck. There I said it. Coming from a software it's truly shocking how poor error/warnings are handled. My "favorite" part is that you cannot enforce a "0 warnings" discipline as the libraries and examples from the vendors provoke thousands warnings and the only workaround is to filter the individual instances of the messages.

comment 9y ago · link · parent

2nd. There's also Lava (and variations). Lava predates both CLaSH and Chisel.

comment 9y ago · link · parent

Those who voted for Brexit didn't and won't understand the impact which will play out over decades. This breaks the feedback loop.

There are parallels with the US election.

comment 9y ago · link · parent

Fanatics deliberately abandon objective judgement.

Many of the quotes makes me question the authors experience. Everything is relative. Compared to Fortran, Lisp is all that and more. Compared to modern languages (say, Haskell), not so much.

comment 9y ago · link · parent

With utmost respect: this isn't a super valuable data point. A "production deployment" with lots of users and/or workloads will see issues you will never encounter in a moderate setting.

FWIW, I use FreeNAS in a similar small but diverse setting with nary a problem, but when I sat it up for a 30+ organization, issue arose that I hadn't expected (not data loss, but usability and performance issues).

comment 9y ago · link · parent

According to http://www.wilfred.me.uk/blog/2017/07/15/these-weeks-in-rema... it's running on 32-bit macOS. I don't know if Remacs is 32-bit-only on all platforms.

This is an interesting project and I wish them well. I have no opinion on Rust at the moment, but I do see this as part of a general trend towards safer languages.

comment 9y ago · link · parent

I'm stunned at how readable this is, especially the 80COLUMNS font. The 'm', 'n', and 'w' seems like they shouldn't be readable, yet my brain is tricked into recognizing them.

Had this been standard, or at least more easily accessible, it would have made the C64 a lot more useful to me.

OT: Is there a 4x8 latin1 font anywhere?

comment 9y ago · link · parent

Fedora is a fine Linux distro (as are many others).

I was hoping to see an update on the RISC-V port. Fabrice has made it easy to try to the early F25 in the browser (see, https://vfsync.org/vm_list.html) and I'd really love to see RISC-V becoming an officially supported architecture now that the privileged spec is frozen (that is, will evolve in a backwards compatible way).

comment 9y ago · link · parent

(EDIT: typos galore)

Thank you. Boy, this was a long time ago and I haven't written anything. I suspect it will be obvious for anyone skilled in the act, but I had to go look at my code at bit to remember some of this.

First a quick word from the POV of a compiler: the register windows are supposed to make function call easier and I suppose it works as designed for hand written code, but it actually adds a lot of complexity to indirect call/virtual functions and is a disaster for anything that switches stack (context switches, coroutines, etc). Another problem is the immediate fields which are just 8-bit unsigned, very often too small. And in practical terms, the GCC port really struggles to make good code for MMIX. Try it!

From the implementation POV: even ignoring the resource requirement for the full MMIX (which besides 256 registers includes a LOT of functionality), it's hard to pipeline as MMIX actually have fairly complicated semantics; just look at the state machine, the S_XXX symbols in https://github.com/tommythorn/fpgammix/blob/master/rtl/core.... While you can obviously deal with that (as witnessed by x86), it requires you to speculate a lot (for starters, speculate that you didn't get an interrupt). All speculation add complication as you need to recover from mis-speculation. This in term hurts cycle time by making stages more complicated and is a MAJOR source of verification work (AKA bugs).

My implementation is nearly completely un-pipelined, very similar to a simple interpreter but in Verilog. Once I had enough functionality that I could look back and consider a more realistic implementation, I really lost the enthusiasm and instead focused on MIPS which is dramatically more efficient and easier to implement (pesky branch delay-slot not withstanding). Of course, later a friend leaked word of nascent RISC-V and the world was forever different.

I actually asked Don directly why he hadn't gone with something like MIPS, but he answered vaguely that he wanted something for education.

On the positive side, I found a bug and scored a $2.56 check (real dollars) and a couple of MMIX T-shirts :)

comment 9y ago · link · parent

If you consider an FPGA board real hardware, then yes, I've run MMIX programs, including graphics, on real hardware: https://github.com/tommythorn/fpgammix Caveats: this is some of the worst Verilog I've even written; I was explicitly racing ahead learning about MMIX as I went along. In the end I had a large subset (integer usermode) when I abandoned it. As much as I wanted to like it, it's really a pretty terrible architecture from most perspectives: it's impossible to scale down, hard to scale up, and nearly impossible to generate good code for. In contrast, RISC-V is IMO the nicest RISC ISA ever design.

comment 9y ago · link · parent

As someone who wrote a reasonable amount of assembler, my first exposure to RISC (SPARC) nearly blew my mind; so easy to learn and much less struggle to write well. I never understood the attachment to arcane ISAs.

comment 9y ago · link · parent

The headline promised a lot but the article delivered "4.4 percent less energy". Also, I find it interesting that the motor Tesla uses isn't even mentioned (and AFAICT doesn't fall in categories they compare).

comment 9y ago · link · parent

Will this work the same way on FreeBSD/FreeNAS when this eventually lands?

OT: one of the sed lines is hard to read

   sed -i 's/github.com\/zfsonlinux\/zfs.git/github.com\/tcaputi\/zfs.git/' PKGBUILD

the OP might leverage that you can use other quoting characters, like

   sed -i 's,github.com/zfsonlinux/zfs.git,github.com/tcaputi/zfs.git,' PKGBUILD

comment 9y ago · link · parent

The difference in both syntax and type system is vast, unless you are coming from, say Fortran or APL.
1
434445
52