Better HN
topnewbestaskshowjobs
Log inSign up

guerrilla

9,807 karma · joined Aug 10, 2013 (13y ago) · 5,135 submissions

Submissions

comment 5y ago · link · parent

At the same time it reminds me of tacit programming/point-free style[1] in general and dataflow[2] programming.

1. https://en.wikipedia.org/wiki/Tacit_programming

2. https://en.wikipedia.org/wiki/Dataflow_programming

comment 5y ago · link · parent

I suggest starting by looking up the Curry-Howard isomorphism.

comment 5y ago · link · parent

It would be nice if we actually had a rule to add a tl;dw to videos over 5 minutes on HN. This was 6 minutes of rambling before he said anything meaningful.

comment 5y ago · link · parent

I noticed your simpler loops and prefer those for sure. It feels like that's what they should have been from the start for flexibility of implementation.

comment 5y ago · link · parent

This is beautiful. I like the simple subet you chose. How long did this take? It just says checked in 5 days ago.

Thanks for including the gif too because the player didn't work on Firefox 85 on my Android tablet, so it was nice to have the expected output to verify.

comment 5y ago · link · parent

1. Swedish Radio (sr.se)

2. The Financial Times (ft.com)

3. HN

4. Wikipedia

5. DuckDuckGo

6. NPR (npr.org)

7. DW (dw.de)

4207.

Framework for Modular Analysis of C(frama-c.com ↗)

1 points · by guerrilla · 5y ago · discuss

comment 5y ago · link · parent

One way to do that could be with frama-c [1]. It allows you to put the checks in comments that are interpreted prior to C compilation. See the example here [2].

1. https://frama-c.com/

2. https://frama-c.com/html/acsl.html

comment 5y ago · link · parent

Thanks, SOD32 looks interesting. It also led me to find this: https://github.com/kt97679/relf

comment 5y ago · link · parent

Is that dialect written in C available online? I'm collecting implementations at the moment. If you know any other C implementations besides the popular ones I'd be grateful for pointers to those too.

comment 5y ago · link · parent

Thanks for that by the away. It's an amazing educational resource.

comment 5y ago · link · parent

That'd be my next project if I complete this one to my satisfaction.

comment 5y ago · link · parent

Too much? I've been posting things I think other people might find interesting while researching implementing a Forth compiler after having just done a Scheme.

4214.

StoneKnifeForth (With a Metacircular Compiler)(github.com ↗)

102 points · by guerrilla · 5y ago · 52 comments

comment 5y ago · link · parent

I'd like to see that or maybe try it myself but that's not quite the same as Forth fitting in a 512 byte boot sector[1] or on a tinyAVR. I bet it can be done but I suspect it'd require more cleverness than doing the same with Forth.

1. https://news.ycombinator.com/item?id=24604457

4216.

Jonesforth.S: A Forth Compiler Tutorial(github.com ↗)

5 points · by guerrilla · 5y ago · discuss

4217.

Forth: The Hacker's Language (2017)(hackaday.com ↗)

23 points · by guerrilla · 5y ago · discuss

comment 5y ago · link · parent

According to Wikipedia[1] it's used in astronomy and aerospace. It's also used in OpenFirmware like in old PowerPC Mac and IBM computers.

1. https://en.m.wikipedia.org/wiki/Forth_(programming_language)

4219.

Easy Forth: Learn forth with REPL in the browser(skilldrick.github.io ↗)

100 points · by guerrilla · 5y ago · 30 comments

comment 5y ago · link · parent

This wouldn't work at all for me although I'm probably a minority. I never load any images unless I need to see them for some reason, which is extremely rare. I'd get unsubscribed from your digest but bad actors don't do this and would just keep sending me crap.

(Edit: I just read both Thunderbird and Protonmail do this by default, so maybe I'm not too much of a minority?)

comment 5y ago · link · parent

Interesting[1] but off topic. Definitions were not discussed in the article but asking whether something is real or not without clear criteria is foolish.

https://plato.stanford.edu/entries/definitions/

comment 5y ago · link · parent

Yeah, I was actually wondering if maybe gcc did that second one with floats on purpose because of profiling data that they have.

4223.

Stream_libarchive: Workaround various types of locale braindeath(github.com ↗)

1 points · by guerrilla · 5y ago · discuss

comment 5y ago · link · parent

Yes, thanks, I edited out the ambiguity.

comment 5y ago · link · parent

It seems that way to me too but it (i.e. the notion that QM is needlessly complex and akin to the Ptolematic system) is nothing but conjecture without some candidates for assumptions that might need to be challenged.

[edited for clarity]

comment 5y ago · link · parent

I really hope there'll be a classic mode where one can just open a file with a file chooser because this is just really inefficient.

comment 5y ago · link · parent

Why were you doing this?

comment 5y ago · link · parent

I can't escape the nagging question: is it really 1,000 or actually 1,024 and simplified for the press release?

comment 5y ago · link · parent

I agree. For some reason, I didn't get the lambda calculus when I first encountered it but it became entirely obvious after doing just a couple of exercises by hand.
1
140141142
172