Better HN
topnewbestaskshowjobs
Log inSign up

FullyFunctional

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

Submissions

comment 7y ago · link · parent

I always had a beef with this paper; so many of the issues are much better solved in Haskell, yet he doesn't introduce it directly until he has something to criticize. Unfortunately the critique reveal a very poor understanding.

First point, lazy evaluation incurs a mutation when the whnf is reduced. However, this mutation occurs at most once and after that the value is immutable just like in SML. Furthermore, the update is not directly exposed to the programmer and thus the compiler can implement it in a way that works efficiently in the presence of generational GC. See the GHC papers on how.

Second point, on polymorphic overloading he claims that Haskell "allow run-time resolution of overloading". Mark P. Jones and others have show how this overhead can be largely eliminated via partial evaluation applied to the type dictionaries. The use of polymorphic overloading is pervasive in Haskell code because it's incredibly useful so the "apparently small gains" is complete and utter nonsense.

In many ways O'Caml is a better SML than SML, but Haskell, and especially the GHC variant, has a type system that is light years ahead of both.

In the modern world there are many variations on the theme, but the language Rust (which borrows many ideas from these) might become the most popular yet.

EDIT: typo

comment 7y ago · link · parent

NFS is widely supported and has great performance. I'm open for alternatives, but only if supported by FreeNAS where my files live.

comment 7y ago · link · parent

Be more respectful. It broke my workflow which is having my $HOME on NFS which is also nuked with the stupid Dropbox change.

comment 7y ago · link · parent

I apologize for not providing data to back this up, but I recall reading about how the space shuttle project was derailed by political meddling. Certainly before faulting NASA too quickly, we should probably have some insight into exactly what happened.

comment 7y ago · link · parent

This is what DSSD did since ~ 2014; drive NVMe directly to the D5 from user app, never incurring a context switch (in fact the D5 was mapping into memory on all the PCIe connected clients). Latency was astonishingly low, dominated by PCIe switches for writes and NAND reads for, eh, reads. EDIT: typo

comment 7y ago · link · parent

> ... pointers were implicitly dereferenced, and so it needed to have a bunch of extra operators to disambiguate things

Funny as it has always annoyed me that static objects and dynamic objects used different syntax (a.b vs a->b) so that if you ever changed one, you'd have to go edit ALL uses. It would IMO have made sense to have a->b work for both (better still "a.b" if the syntax could be worked out).

UPDATE: referring to C if it wasn't clear.

comment 7y ago · link · parent

Claiming either is great, but I have been scammed more on KS than Indigogo. Today I super weary of both, but I have and will back projects by people who I know or whose reputation I know though other channels. (OLKB, TinyFPGA, etc).

comment 8y ago · link · parent

I'm on the RISC-V J committee (headed by Martin Mass), but what I'm proposing here is unlikely (?) to appeal to the mainstream RISC-V SoC developers, at least not without a strong PoC.

comment 8y ago · link · parent

LiPo is a really terrible choice for a UPS; it'll wear out quite quickly. LiFo is way better, like this: https://www.crowdsupply.com/silicognition/lifepo4wered-pi-pl...

comment 8y ago · link · parent

As I was recently playing with McCarthy's interpreter [1] (and much more that hasn't hit github), I had some thought about a modern Lisp machine, as an extension of a RISC-V core [2].

Software is always a big concern and rather than requiring everything be written in Lisp, I'd want to also be able to run regular binaries written in C. This requires a way to safely embed the "impure" world.

The obvious way to do this is extend the value domain with a hidden tag bit [3] which is carried around everywhere, but can't be changed or inspected by regular RISC-V instructions and in fact, almost all instructions trap if any operand is tagged.

Memory space would be partitioned into a tagged space and untagged. Tagged values can only live in the tagged space and registers (this is important for precise GC). For regular user space code, tagged values can only be created with a `cons` instruction, and accessed with `car`, `replaca`, etc instructions. Having dedicated instructions would allow a hardware read barrier for real-time (or incremental) GC. (Machine mode would be allowed unsafe access for part of the GC and various tasks).

TL;DR: adding fast Lisp support to an existing RISC-V core is likely much easier than building a new dedicated architecture from scratch.

(set! projects (cons 'RISCV-LISP projects))

[1] https://github.com/tommythorn/lisp [2] https://github.com/tommythorn/yarvi [3] If you have data cache, it's not hard to implement a cache line as, say, 32 33-bit word line, backed by 33 32-bit memory words.

comment 8y ago · link · parent

This is incredible. I first thought it was just screenshots. Anyway to contact you offline? I want to suggest Nascom 2 support.

comment 8y ago · link · parent

Is this a serious question? They are stealing results of very long and expensive R&D, commonly know as Intellectual Property, or "IP". Producing this locally would require a sufficient mass of experience talent and lots of time and money. It might not even be possible to catch up.

The fact that this is being stolen from Micron who presumably weren't blind to the value of their IP make it all the more frighting. None of the companies I have worked for in the past few decades would have had any chance of resisting a motivated thief as locking down knowledge runs counter to fostering innovation.

comment 8y ago · link · parent

The striking part about that article is that there is zero discussion about technical merit. I've never seen nor used a TI 99/9A, but the stories I read weren't too kind.

In my neck of the woods (Denmark), in the 1978-ish your choices were expensive pre-built Z-80 machines, like the Luxor ABC-80 or danish niche computers (some which were actually amazing for the time). I went with a British kit, the Z-80 based Nascom 2.

Roughly 1 years later, the market had changed and 6502 based options were abundant with the BBC, VIC-20, and Commodore 64 taking the lead (ZX80, ZX81, and ZX Spectrum were popular too). Later Amiga arrived with its own following.

All this to say that the world was such a mess of an abundance of incompatible computers that when the IBM PC came out, the main attraction was the belief that, because of I.B.M., this would become popular enough that there would be a critical mass of great and actually useful software.

I sometimes try to imagine how things would have played differently had IBM abstained from the "hobby market".

comment 8y ago · link · parent

FUD. Even if all the electricity was generated with petrol, it would still be a win because EVs are way more efficient than gas cars, typically 100+ MPGe.

comment 8y ago · link · parent

I grew up in Denmark and have a fine-tuned sense for metric measurements (1 mm, 1 cm, and 1 meter). In my small town is more common for craft people (~ "contractors") to compete on who had the more accurate eye measurements. It's truly a sight to behold.

TL;DR: any measurement unit can be learned; Metric strength in the simplicity of conversions.

comment 8y ago · link · parent

Nit: 99.5% doesn't account for the far greater efficiency of the EVs themselves, typically 100+ MPGe, thus the true reduction is even closer to 100% (fwiw, my roof produces all of my EV consumption most of the year).

comment 8y ago · link · parent

Actually a good enough port of TinyEMU/RISC-V allowing for network communication and persistent storage would probably make the iPad interesting for me. Would Apple allow such a thing on the App Store? It would still have to be open source of course.

Fedora/RISC-V is dangerously close to being useful; the only apps I miss are a couple of the big hurdles: Firefox, GHC, and Java.

comment 8y ago · link · parent

The ISA is similar to but still smaller than Wirth's RISC5 (unrelated to RISC-V). The choice of including DIV (and MUL) in such a small ISA suggests that's it's not guided by physical implementation.

A RISC-V RV32IM[S] implementation (be that emulator or RTL) would have similar complexity and size, and would have a far more mature software stack.

comment 8y ago · link · parent

Spot on. I have a partially finished byte-compiled Scheme which I abandoned when it grew to big for its original target platform, sigh. So much to be said for something that actually runs.

comment 8y ago · link · parent

Always good fun. Reminds me of XLISP which was my first exposure to Lisp.

There's a lot to be said for small implementations that gets to the heart of the issues. Most great oeuvres of software had a kernel beginning like this.

Some fun directions you could take this: Change the GC to Baker-style incremental (~ "real-time"), use cdr-coding, use tagged integers, add a compiler and compile to byte-code or threaded code. EDIT: grammar.

comment 8y ago · link · parent

It surprises me and doesn’t match my observations, but there at least one element to take into account: weather. There’s a reason the California car is treasured. Snow and the salt used to fight it is really corrosive to cars in Denmark.

comment 8y ago · link · parent

Consumerism is bad for the planet, 100% true. However the "every 3 years like an average westerner" remark needs citation. In the context of the article (Denmark) it is certainly not true. Cars are so expensive (the 180% tax is absolutely real - I've paid it) that people hold on to cars longer and buy used more. In fact, the number of people with zero cars would be hard to believe if you come from California.

Alas, the politics are made by city people (who have access to really good public transport) and paid for by people in suburbia who _have_ to own a car to survive (and no, we can't just move everyone to the city).

EDIT: typos

comment 8y ago · link · parent

Provenance: There was a recent post about PiDP-11 which is awesome in itself, but the page led to this which is probably more remarkable than is apparent at first; a Single Board Computer which implements all logic in TTL and with a remarkable functionality given the relatively few chips.

There are many SBCs of the era using more chips that this, despite having a Z-80 or 6502 onboard.

comment 8y ago · link · parent

I'd assume they the speaker was for diagnosis, eg. if you could hear an "Ahoy?" then you should probably start over.

1135.

Gigatron, TTL computer kit without a CPU(gigatron.io ↗)

9 points · by FullyFunctional · 8y ago · 3 comments

comment 8y ago · link · parent

Lying has nothing to do with it. Users don't _care_ about the details of what the system is doing and it's just cognitive noise, distracting from the task at hand.

The suspended app screenshot is way more that appearance. We all need a moment to remember to context of what we were doing. Showing us a screenshot of the suspended state enables us to use the loading time productively so that we are immediately ready to interact once it's up.

comment 8y ago · link · parent

This is really frustrating as if you already have an FPGA (and appropriate regulators), the controller is just redundant overhead (in every metric conceivable). I'm glad to see at least the beginning of reverse engineering as some of the panels (typically kindle replacement panels) are quite affordable and even the $450 13.3" panel isn't unreasonably expensive. (An FPGA-powered PocketCHIP-like device with e-Ink would be a lot of fun).

comment 8y ago · link · parent

They should just post the catch-all "Warning: living might prove fatal."

comment 8y ago · link · parent

Doesn't help one iota. The relay attack uses a two way amplifier to effectively increase the reach of the frob. This way the evildoers can steal the car while you are sleeping.

As tropo suggests above, it would have to measure the distance (signal propagation), but I suspect that would drive the cost of the frob up significantly.

EDIT: to be clear, this isn't the attack discussed in the article, but a more serious problem that is already in use today.

comment 8y ago · link · parent

No amount of perfect encryption will protect against a relay attack.
1
373839
52