HNHacker News
TopNewBestAskShowJobs

fusiongyro

5,495 karma · joined September 17, 2008

Daniel K Lyons

http://www.storytotell.org

Feel free to email me at fusion at storytotell dot org.

[ my public key: https://keybase.io/fusiongyro; my proof: https://keybase.io/fusiongyro/sigs/aYrkbCZouBBhqp_qOKPGdBfIn---A8P8wPVCKLSlpnA ]

submissionscomments
fusiongyro··on Guide to email in Emacs using mu and mu4e
The locking thing has not turned out to be a really serious problem for me, and I have several gigabytes of email. mu index is really fast. Also, using the Emacs sendmail hasn't been a real problem. It turns out I don't need to be productive during the ~1s it takes to send the email and I have not run into any edge cases or bugs in the ~5 years I've been rocking this setup.
fusiongyro··on Loglan – a predicate logic-based language for humans
The tense-space system is a good example. By default, a sentence like "mi tavla"/"I talk" doesn't convey any temporal information. But you could add a tense particle like "pu": "mi pu tavla"/"I [past] talked". But that doesn't really tell you how long ago it was, so maybe you want to add "zi" to indicate that it was recently that you spoke: "mi pu zi tavla"/"I [past] [recent] talked" which might be interpreted as "I was just talking". But where were you doing that? Perhaps you were just talking downstairs, so you'd add "ni'a" to indicate that it was below: "mi pu zi ni'a tavla"/"I [past] [recent] [down] talked" -> "I was just talking down there". But maybe you do this all the time? Let's add "ta'e" to indicate habitually. "mi pu zi ni'a ta'e tavla"/"I [past] [recent] [down] [habitually] talked" -> "I used to talk down there all the time". But maybe I want you to know it was kind of a problem or that I did it too much? In that case let's add "za'o" to indicate that the event went on too long: "mi pu zi ni'a ta'e za'o tavla" -> "I used to habitually talk down there too much."

I like this example because: 1) I've only used four or five of the 28 sections of Chapter 10: Imaginary Journeys, which concerns the tense system, 2) this is only the tense system, not any of the copious other systems Lojban has 3) this shows you the kind of particle-soup that I think Lojban can easily devolve into, and 4) eventually, a real Lojbanist will arrive and correct everything I said above, which is an important part of the real flavor of the language. Being less snarky, my suspicion is that there is a real art in choosing which information to add, since none of it is obligatory (unlike English), and it is quite possible to add information in Lojban which would require additional clauses in English, that makes it an interesting mental exercise to interpret.

fusiongyro··on Loglan – a predicate logic-based language for humans
It's more like Prolog with a maximum arity of 5 and about a thousand particles with complicated effects. The reference text says with some pride that it is "as simple as C++."
fusiongyro··on Skip – A programming language to skip the things you have already computed
You have a doc section named "Lvalues." Nobody talks about lvalues outside C++.
fusiongyro··on Skip – A programming language to skip the things you have already computed
How does your language compare to the glut of modern systems-ish languages like Rust, Go, Swift, Julia, Nim? I see a lot of C++ influence here. Your docs don't explain how you make parallelism ergonomic, but the "async" keyword is getting popular. Why would I choose to invest in your language over one of these other ones that has more momentum?
fusiongyro··on The Problem With APLs
Python does encourage the perspective that there is a single right way to do things. This isn't necessarily true at the high-level, but at the low level of a handful of lines, it often is true.

Like Hillel, I have often thought that my solution to a problem in J was good, only to see much shorter solutions from prominent J programmers. What makes it shorter is usually that there are direct but less obvious ways of doing things using the primitives. I have the experience of having a first look at things like grade-up and remembering it as a way of sorting, but when you see the various ways that grade-up is used in practice, there are a lot of uses for it that do not strictly have to do with sorting. This is in contrast to Python where lists can be sorted and that's all sorting does for you. I frequently forgot about the match builtin and would do convoluted things like equals with rank (0 1) and insert-equals or sum. There's more than one way to do things, but often beginner code is obviously worse.

fusiongyro··on The Problem With APLs
What I really want (and I will annoy you by talking about J instead of Dyalog) is resources for intermediate users, because there is a significant amount of literature for beginners and experts but I agree with Hillel that the road between the two levels seems to be unmitigated struggle. The Finn idiom library may be useful for APL users but even looking at it, I don't see what the purpose of it is, unless perhaps you're just supposed to read the expressions and learn novelties about how to use the built-ins.

The approach I've taken, which I think is common and slow and easy to "fall off the bandwagon", is to write my solutions to my problems on my blog or email the J mailing list and see if the experts can improve on my code. They always can, if they care enough to show me, and they usually do. But as I mentioned in my other comment, I think one of the wonders of APL/J/etc. is that it seems to share even less with conventional programming languages than it seems to at first because the way APL programmers decompose problems is radically different. I often find myself trolling through the dictionary looking for things that I wouldn't need if I didn't break the program down into as small pieces. Choosing the right verb is partly tactical, but the whole strategy for attacking problems is so unconventional you are often looking from the wrong vantage point.

I don't know if there is a royal road to APL that addresses this, but I share Hillel's desire for one. I suspect there isn't, and the only way to really get better is: read lots of code, write lots of code, get feedback on your code, repeat.

fusiongyro··on The Problem With APLs
I definitely agree with Hillel's prescription here. In a complex topic, you need different kinds of literature. For beginners, there is J for C Programmers, and for experts there is NuVoc and the official dictionary. But for intermediate users who grasp the basic concepts, J and other APLs are harder than other languages because there seems to be a whole strategic aspect separate from the tactical aspect. It seems as though trying to figure out how to do something in APL based on experience with any non-APL programming language gives you a huge X-Y problem, where even you cannot even trust how you would decompose the problem. Relearning that after a dozen or so more conventional languages seems to be a significant cognitive barrier.

This confrontation with an alien culture of computing seems to make us recoil in horror for the most part. But having been over that barrier with SQL and Prolog, I find it plausible that the APLs really do represent a more elegant approach to computation that just requires a much larger up-front investment.

fusiongyro··on “The Riemann Hypothesis” by Michael Atiyah – Preprint
There is some discussion of your paper on math.stackexchange here: https://math.stackexchange.com/a/1900048/24124

I have no idea why you think proving a famous conjecture would endanger your life, but if that is true, HN is probably not able to help. Adding a Hollywood factor to your appeal degrades your work and yourself and is unlikely to generate the kind of attention you want.

fusiongyro··on Meow Wolf’s Magic Kingdom
You're assuming the economy in NM gets better, but luckily we've been remarkably upturn-resistant, at least throughout my life.
fusiongyro··on Meow Wolf’s Magic Kingdom
I loved it when I went a couple years ago, but this was a problem for me too. I'd like to take my kids, but they're small (6 and 3) and I worry that the stream of people will be a problem for them too, so I keep thinking of trying to go on a weekday. But I haven't yet.
fusiongyro··on PL/Lua: Lua as a loadable procedural language for Postgres
How much fun is that?
fusiongyro··on Ask HN: What's a starting point for learning how to write programming languages?
To understand how computers work is the reason that compilers is the capstone class in many CS programs. It unites automata with algorithms and machine code, bringing everything together in one program. I'm pretty sure I wouldn't have gotten through this exercise myself outside college.

A lot of the resources out there are going to assume you have one or two sides of this triangle already and are ready to bring it all together. If you don't then you'll probably feel like you're in over your head.

I would recommend checking out "Let's Build a Compiler". It's a bit old-fashioned but at least things are pretty simple. https://compilers.iecc.com/crenshaw/

Different flavors of Markdown are not a bad place to start. Try and find something with a real syntax. As I recall, the original/official version is defined by a Perl program and has no true grammar. But other variants probably do.

SQL is not simple. Just the parser for PostgreSQL's dialect was around 1500 lines of code, last I checked. Although, if you did a small subset, maybe it wouldn't be so bad.

I really like the book Semantics with Applications which discusses the meaning of different programming languages. When I was starting out, it seemed to me like there was a lot riding on the syntactic differences between languages like C and Pascal. Now having seen the fringe, a lot of those differences are not as significant to me as they were before. This book helps you drill into what makes some languages different below the surface, and how to model those differences formally.

I think it's eminently possible to make a small language, like "While", in a few pages of code. I would start with a very simple unambiguous grammar, and a little interpreter for it, but if you really want the full experience, generate assembler. This paper sort of presents the language I'm talking about, but there is a lot here about type theory and semantics that may not be interesting to you, so just ignore that. https://arxiv.org/pdf/1603.08949.pdf When I took compilers ~15 years ago, we generated code for nasm because gas syntax was too weird for us. Anyway.

Another approach that looks interesting to me is "many small steps": http://scheme2006.cs.uchicago.edu/11-ghuloum.pdf The idea here is to start with a program that only knows about integers, but handle everything end-to-end. Then you slowly add features one-by-one, but in an end-to-end fashion. I think this would be a lot easier to iterate and it hearkens back to Crenshaw's approach.

A lot of compiler construction material focuses on Lisp and Scheme. This is because it sort of hides or ignores the parsing problem. You will probably have to learn some other languages to build a compiler; it wouldn't hurt to know some Lisp or Scheme to be able to access these resources. A lot of people build a Lisp-like language as their first for this reason too. Just something I'm pointing out.

Anyway, it's a noble goal and best of luck!

fusiongyro··on The iPhone Franchise
Interesting, thanks for correcting me.
fusiongyro··on The iPhone Franchise
Supposedly, lithium ion batteries like to be totally drained before being charged and then charged to max before being unplugged. I personally find this regime difficult to attain with phones because I'd rather not have the phone die while I'm far from a charger, so I often start charging when it is at 20% or so. And when I have to go to work, I unplug the phone, even if it isn't at 100% charge. I think most people do similarly, but the battery would really prefer you use it all the way up and charge to max. I think this is what the GP means by "carefully charging."
fusiongyro··on Apple Special Event [video]
Apple may have intended it to be about price, but look at all the complaining. A lot of people bought it for size.
fusiongyro··on Apple Special Event [video]
You sure about that? The XS is smaller than the XR.
fusiongyro··on Maybe adding generics to Go is about syntax after all
I wish the world adopted ML's modules and functors. Especially higher-order functors, which are kind of an extension of the standard.

But I think Go is more worried about compiler performance, so if there are significant complexities in the surface syntax of generics or in their downstream consequences, it will be an impediment there. I think the people behind Go consider most type theory to be an impediment to productivity and would rather accept something simple with shortcomings they understand than try to do it "right." I think this is a perfect example of Unix's "worse is better" philosophy. Whether we agree with it or not is another question.

fusiongyro··on What they don’t tell you about event sourcing
I worry about GDPR with respect to Kafka and other append-only databases.
fusiongyro··on Introducing Ghost 2.0
I have to give him credit, I was here to complain about it.
fusiongyro··on Think Julia: How to Think Like a Computer Scientist
One thing that makes Julia cool is that adding the types improves performance, but you don't have to add them if you don't want to.
fusiongyro··on Think Julia: How to Think Like a Computer Scientist
I've only been learning for about a week, but I think if you're a nerd for language design, you will appreciate it on an aesthetic level as a very tight design around a powerful concept. Common Lisp also has multiple dispatch, but I feel the integration of it into all the nooks and crannies of Julia really pays off. Julia's performance doesn't appear as a side effect of building on the LLVM or because they over-optimized the core, as it does in many young performance-oriented languages. Instead, it appears as a tangible benefit of a multiple-dispatch oriented design that makes it easy to add information to the system to improve performance without compromising the clarity of a sketch.

I have often felt that there are many discontinuities between "pretty" Haskell as it is taught and pragmatic Haskell. I haven't used Julia enough in anger to say it for sure, but I see in the way it works great potential for the pragmatic code to be as beautiful as the high-level and abstract code.

For a long time I have felt that Haskell represented the most mathematical language. Julia really shows that there are other ways of building a mathematical language with taste and style. It's oriented to practitioners and applied math folks rather than computer scientists and pure mathematicians. I have enjoyed seeing the differences between these systems quite a bit, and I think Julia has a bright future as a practical, daily-use system for science.

fusiongyro··on M4 (computer language)
M4 is an interesting macro language, but developed (IMO) a somewhat undeserved reputation for being awful because it is how you build autoconf inputs as well as sendmail configuration files. Guilt by association.

M4 has some "interesting" quirks but I have used it to build a static site. I briefly was maintaining my blog using make and M4. I no longer remember what the precise reason was that I stopped doing that, probably just that I wanted a through-the-web editor for content. I could dig up the "code" if there were interest in that.

fusiongyro··on Launch HN: The Buttermilk Company (YC S18) – Homemade Indian Food in 5 Minutes
The difference between red and green chile is whether it has been dried, but nobody here calls it sauce (even though it almost always is). Hatch is a town that produces it, but they're technically Anaheim peppers. However, if you walk into any restaurant in New Mexico and say "I'd like the Hatch chili sauce on the side" you're going to get a raised eyebrow. The state question is "red or green?"
fusiongyro··on Launch HN: The Buttermilk Company (YC S18) – Homemade Indian Food in 5 Minutes
We're talking specifically about the region in New Mexico in which I live.
fusiongyro··on Launch HN: The Buttermilk Company (YC S18) – Homemade Indian Food in 5 Minutes
> Hatch chili sauce

It's just called chile.

fusiongyro··on Emacs Lisp JIT Compiler
"Common Lisp Modules" by any chance?
fusiongyro··on YC China and Qi Lu
Fair enough.
fusiongyro··on YC China and Qi Lu
The comment may be referencing this post: https://news.ycombinator.com/item?id=17737942
fusiongyro··on Emacs Lisp JIT Compiler
The idea was to replace Emacs's embedded Elisp interpreter with Guile's, not to rewrite Emacs in Guile Scheme.
← PreviousPage 2 of 34Next →