Hacker News new | past | comments | ask | show | jobs | submit | mattmight's comments login

"Think of it as an unholy combination of bash and Lisp" reminded me of Scheme Shell: https://scsh.net/

My Ph.D. advisor Olin Shivers created this. It's more pulling bash into Lisp than Lisp into bash.

It doesn't seem to be maintained anymore, but some of its ideas live on in Racket.


And now there’s Rash: The Reckless Racket Shell

http://rash-lang.org/

https://github.com/willghatch/racket-rash


I’ve always wanted to ask about the notorious introduction to scsh’s manual… [1] could Olin have been less than 100% satirical there?

[1] https://scsh.net/docu/html/man.html


Same! I use ollama a lot, but when I need to do real engineering with language models, I end up having to go back to llama.cpp because I need grammar-constrained generation to get most models to behave reasonably. They just don't follow instructions well enough without it.


Glad to see you're still doing the right thing, JT!


Ha thanks!


(Article author here.)

This was the reference I used for TeX programming: https://pgfplots.sourceforge.net/TeX-programming-notes.pdf


I had a similar thought after finishing:if you wanted to really learn a new language in depth, you could solve all 25 days using that language.


I think I'd have felt the same way up until I learned Rust in 2021, and now I just think "I'd rather solve this in Rust" almost always. Rust might have spoiled me for other languages. But yes, in general AoC is definitely a good way to learn a programming language. Since we probably don't need vast numbers of Rust programmers it makes sense to acquire say, Python, or Typescript or something if you're working in some discipline where programming might be useful but is not your core skill.

The initial headline of your front page intrigued me because I had noticed in surveying my own institution (the one where I studied, both as an undergraduate and as a postgraduate, and where I now happen to work) that while most of the undergrad courses of study we offer that require mathematics include at least an opportunity to program, Medicine does not. I reasoned at the time that the Medics have to cram such a large amount of other material into their brief time that maybe there's just no room to teach them to write code if they are to sleep (in my country they certainly won't have time to sleep once they're junior doctors)


This is what I try to do. I solve them all (or nearly, I did one in Python only this year) in Common Lisp (my hobby language of choice), and the last few years I try to tackle them in a second language (Ada, Rust, Python, C++) up to the point that my time is too limited to do both versions (or where I find the second version is adding nothing to my understanding of the language I'm exploring).

This year I used Python as my second language (still plan to finish) but with a strong emphasis on TDD and property-based testing since I'm already familiar, but not fluent, with Python.


Day 7 is still impressive!


Thanks!

I have a part two planned to comment more about the languages / days themselves.

This post was just getting too long to include it here.


neat! looking forward to it


Woops -- I'll take those down. Thanks for pointing that out.


I’ve never written any serious software using C++.

But, I did once learn how to do template meta-programming:

https://matt.might.net/articles/c++-template-meta-programmin...


Thank you for the kind words!

I missed blogging too, so I set a New Year’s resolution in January to write at least two blog posts this year. It had been over seven years since my last!

I still hadn’t written one by November, but now I’ve got three for the year.

I’m optimistic I can keep it up now.


I've asked my team at Amazon [usual disclaimers] to read this, and highlighted my favorite takeaways: "Well-timed sleep was probably the most important thing I did", and "Using sleep to do the heavy lifting on algorithm design". I love this concept, and need to incorporate more of it myself.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: