It's weird how even pure languages tend to treat the Unix execution model as ambient state.
Are there any PLs that define a main function like this?
fn main(args, stdin, stdout, env) -> exit code
miniblog.
I've written a very small, very bad, type checker for my toy programming language. Within three days, it found a bug in a program I was writing!
I think software maintainers can perceive their projects as way more buggy than they actually are.
You spend more time looking at the bug tracker, which is (hopefully!) not representative of typical usage.
For my personal server, I deploy services with docker and update with watchtower. It works OK, but I'd love to have a proper configuration as code approach.
I want a git commit to change a file that says which version should be live, and then CI should deploy that.
@krinkle Huh, that definitely looks like a bug, and a weird one at that. Please file an issue 🙂
tap> is an elegant Clojure debugging feature: it passes the argument to any functions registered with add-tap.
You might set up a custom printer for your data type, or save values for later examination, and you can easily disable the tap too.
I've released difftastic 0.57! In this release:
* A bunch of improvements around detection and display of binary files.
* Fixed some diffing issues with (ironically) text files.
* Better diff results for Scheme.
I'm delighted that so many people are getting value in difftastic, but there has been a significant increase in new issues recently! Hopefully this is a temporary bump from HN.
It's a genuine risk from creating a generic tool: if 1% of devs use it, that's a huge userbase.
The Bitter Lesson: how implementing generic search and scaling compute outperforms custom logic in many situations:
Thinking more about the "auto eval definitions" approach, I think it breaks down when debugging. If I want to step through the existing definition, it'd be really awkward to re-evaluate the definition at my cursor.
The lisp model of programming is generally: write a function, evaluate it, interactively call it with some arguments, iterate. Jupyter notebooks are similar.
Why not automatically evaluate definitions (not expressions) whilst working? It seems like it could be a satisfying way to work with code.
I've release difftastic 0.56! In this release:
* Added support for Scheme and Smali
* Improved JS, TypeScript, QML and Perl parsers
* File permission changes are now reported
I've been reading about the object-capability model as seen in the E programming language.
It reminds me of dependency injection, but used pervasively. Rather than calling static methods, you pass in object arguments and call methods in them.
I'm flattered that SemanticDiff has a blog post comparing it with difftastic! https://semanticdiff.com/blog/semanticdiff-vs-difftastic/
It's a pretty even-handed post, and it touches on some of the different design decisions. For example, SemanticDiff considers 0xA and 10 to be the same when diffing.
Are there any open source serverless platforms? It feels like something I ought to be able to run in Docker on my personal VMs, but I've not heard of anything.
(I appreciate the irony of serverless on your own server, but the programming model seems generally applicable.)
Showing 346-360 of 7,652 posts



