HNHacker News
TopNewBestAskShowJobs

undecidabot

248 karma · joined January 4, 2016

Hi, I'm Matt. I like programming languages!

Website: https://www.lezgomatt.com

submissionscomments
undecidabot··on A Visual History of Eve: 2014 - 2018
Are you planning write a postmortem on this project? I really hope you do. I'm sure you have plenty of insights to share that would be super helpful for other people exploring this space.

Many of us here would really love to read up on the ideas behind each iteration, the specifics on what went well, what didn't go as expected, the target market and their feedback. It doesn't need to be a fancy paper, even a short but detailed bullet list for each iteration would be fine.

From my outsider perspective, it seems like you were trying to build a "silver bullet". For example, both FiveSquare Eve and WikiEve look promising. FiveSquare could be a great WYSIWYG website/app builder. WikiEve could be a great note taking tool. Just because they aren't the future of programming, doesn't mean they aren't useful!

undecidabot··on A Visual History of Eve: 2014 - 2018
Just to clarify, the STEPS Project has ended (Oct 2012). HN had a discussion on their final report not too long ago: https://news.ycombinator.com/item?id=11686325
undecidabot··on MLton Compiler Overview
Compilers come in all shapes and sizes.

Some are single pass like Turbo Pascal. They directly generate machine code while parsing (no AST!). Niklaus Wirth (Pascal/Modula/Oberon guy) wrote a book following this approach [1].

Some have multiple passes like Chez Scheme. They have many simple passes, which they call a "nanopass". Andrew Keep has a great talk on this approach [2].

In practice, most compilers today are multi-pass, though probably not as many Chez. If we look at Rust, they go from AST -> HIR -> MIR -> LLVM IR -> machine code [3]. There are probably more things going on from LLVM to machine code, but I'm not knowledgeable enough to comment on it.

I think the trade-off here is clear: less passes -> shorter compile times, more passes -> faster code generated, more modular compiler. Martin Odersky (Scala guy) has a paper attempting to get the best of both [4].

[1] http://www.ethoberon.ethz.ch/WirthPubl/CBEAll.pdf

[2] https://www.youtube.com/watch?v=Os7FE3J-U5Q

[3] https://blog.rust-lang.org/2016/04/19/MIR.html

[4] https://infoscience.epfl.ch/record/228518/files/paper.pdf

undecidabot··on Ask HN: How to self-learn math?
I really enjoyed reading "Discrete Mathematics with Applications" by Susanna S. Epp. It's very accessible. Having a good understanding of algebra should be enough.

For programmers, Discrete Mathematics is arguably the most relevant discipline of Math. Yegge wrote a long but interesting post on this subject [1].

[1] http://steve-yegge.blogspot.com/2006/03/math-for-programmers...

undecidabot··on How to Design Programs, second edition
Haven't read this book yet, but it was designed to be a more accessible and practical alternative to SICP. Check the authors' paper comparing the two (pdf) [1].

Taking a look at the contents, once a person has read through SICP and understood it, they may find most of HtDP to be boring. It would be much better to read HtDP before SICP than the other way around.

[1] https://cs.brown.edu/~sk/Publications/Papers/Published/fffk-...

undecidabot··on WebAssembly First Public Working Drafts
Just for now, it seems. It's tied together with the GC support: https://github.com/WebAssembly/design/issues/1079. I wouldn't expect it anytime soon though.
undecidabot··on In web design, everything easy is hard again
Just wanted to make a few counter-arguments:

> re: it doesn't have multiple ways of declaring a function...

Python does have multiple ways of declaring a function, the usual `def` syntax and via `lambda`. Lambdas are restricted to one line (due to Python's whitespace sensitivity), which can be inconvenient (but hey at least no one can abuse it right?).

Python functions also have a scoping gotcha: you can read the variables in the outer scope, but if you write to it (without declaring it as nonlocal) it actually treats that as a separate variable declaration (this is due to its assignment syntax).

> re: Python's datatypes are straight forward...

While Python's type system is nowhere as lenient as JavaScript's, there is at least one unexpected case which works: `True + 1` produces as valid result (2). Also, having to explicitly cast non-strings is rather inconvenient when concatenating stuff to produce a string (even Java doesn't require this). Thankfully, Python has a decent string formatting function built-in.

> re: 9999999999999999 is precisely 9999999999999999

It'll still fail if those are floating points. Yes, I am aware that Python has decimal and rational types in its standard library. My point is, no matter what language it is, programmers need to be aware of the data types and data structures they are dealing with.

FWIW, I don't think JS is better (or worse) than Python (as long as we're talking about "modern" JS with modules). Python also has its fair share of major issues, notably v2 vs v3, which is slowly becoming a non-issue as everyone (finally!) migrates to 3.

undecidabot··on Asana raises $75M Series D round led by Generation Investment Management
Looks like what https://plan.io/ is doing. Looks good. Never used it myself, not affiliated in any way.
undecidabot··on Show HN: Jpeg.io – Convert any major image format into a highly optimized JPEG
Maybe it's just my computer, but I'm getting very different file sizes (using Firefox's view image info).

original - 200.69 KB (205,510 bytes)

jpeg.io - 163.29 KB (167,212 bytes)

Photoshop - 206.41 KB (211,361 bytes)

tinyping - 190.59 KB (195,160 bytes)

EDIT: pi.gy mentions the following in its FAQ [1]:

Q: Does this service compress images?

A: No, but JPEG's might lose about 0.5% of the quality thanks to CloudFlare. Other than that your image stays just like you uploaded it. But we do strip the comments and GPS details for security & privacy reasons.

[1]: http://pi.gy/

undecidabot··on Our First 50,000 Stars
NinoScript already explained that it's a volcano in another comment with a link to the artist's explanation [1], but here's an alternative interpretation. The color blue makes it looks more like a waterfall, which symbolizes react's one-way data flow. I got this idea from an old react vs ember presentation [2].

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

[2] https://docs.google.com/presentation/d/1afMLTCpRxhJpurQ97VBH...

undecidabot··on Show HN: Using Parsing Expression Grammars to rewrite source code
Hi, you might want to check out LPegLabel[1]. It's an extension of LPeg that allows error detection and recovery by throwing labels (done manually but can be semi-automated). To put simply, throwing a label is like throwing an exception (so it bubbles up until it is caught). For error recovery, you can catch those labels and record it somewhere then continue parsing possibly skipping to a certain token like a semicolon before doing so.

I worked on modifying LPeg grammars to add error detection and recovery via LPegLabel for my Google Summer of Code, so please ask me questions about it if you have any. Right now, LPegLabel is still quite young, but it is fully usable and since it is a project under LabLua (the same research lab that is in charge of Lua and LPeg), I'm hoping it will be integrated into LPeg one day.

[1] https://github.com/sqmedeiros/lpeglabel

undecidabot··on Advanced Forth Programming Topics
Not Forth, but Factor (https://factorcode.org/) is very much inspired by Forth (also being a stack-based / concatenative programming language), and it does have a good standard library complete with your usual data structures along with extra libraries for regexp, several parsers (csv, json, xml), an http server and client, a web framework (built on top of that server with SQL DB drivers), a ui framework (via OpenGL), and even xkcd (http://docs.factorcode.org/content/article-vocab-index.html).

Check this blog out for some cool things you could do with Factor: http://re-factor.blogspot.com/

← PreviousPage 2 of 2