Better HN
topnewbestaskshowjobs
Log inSign up

ctrlmeta

726 karma · joined Aug 8, 2022 (4y ago) · 175 submissions

Living in a buffer
Submissions

comment 3y ago · link · parent

> A few months ago I started a new job at a company that uses Elixir

> In fact, I might go as far as saying that Elixir gives you a fun language (like Ruby) while leaving out the stateful footguns OOP languages give you.

I don't mean to discount the author's experiences and opinion in this post. It's a nice post with a lot of good food for thought. Likewise I want to share only my own experience here. Two months into any new programming language, it feels like a fun language. Eventually the novelty factor wears off. And then it becomes a boring language. And I say "boring" in a positive sense.

The daily driver languages should be boring. Should present no surprises. Get the job done and get out of my way. When we transistion from the fun phase to that boring phase, what matters more is how good the language is fundamentally designed. As an example in Elixir the pattern matching abilities are great but I don't know if I could justify choosing a language without compile-time type safety in this day and age!

comment 3y ago · link · parent

Emacs being Emacs it is possible to change how Emacs behaves for every key you type. Evil mode is a fantastic example of how you can emulate most of Vi within Emacs! But it's not the only game in town.

If you don't want to buy into the whole Vi and modal editing thing there are plethora of packages to have better key bindings. To name a few: god-mode, devil-mode, meow, hydra, general, spacemacs. Pick any from this and you don't have to worry about key chording anymore.

comment 3y ago · link · parent

Yes, sooner or later this is going to become the future of GPT in applications. The models are going to be embedded directly within the applications.

I'm hoping for more progress in the performance of vectorized computing so that both model training and usage can become cheaper. If that happens, I am hopeful we are going to see a lot of open source models that can embedded into the applications.

34.

Effect Handlers for WebAssembly(wasmfx.dev ↗)

2 points · by ctrlmeta · 3y ago · discuss

comment 3y ago · link · parent

Have you looked at devil-mode? If by Kraken you mean key chords, devil-mode lets you type without key chords but it does not force modal editing on you.

comment 3y ago · link · parent

> That Opusmodus has adopted MusicXML

What are some other notable and open formats for notating scores? I'd like to know the what the popular formats are, do a survey and choose one for my own work.

37.

Bad Emacs defaults(idiomdrottning.org ↗)

182 points · by ctrlmeta · 3y ago · 152 comments

38.

Ask HN: Alternatives to Linode for running simple VPSes?

3 points · by ctrlmeta · 3y ago · 2 comments

comment 4y ago · link · parent

> If so it seems unclear where to draw the line. If not it sounds nonfunctional.

There is no line. It is just one long linear list. An undo operation is an edit to the text after all. So the edit made by the undo operation also goes as a text edit operation in the undo list.

This is the way undo has always been in Emacs. I wouldn't say it is nonfunctional. I use this in Emacs undo, redo (which is undo-of-undo) and it feels okay most of the time. It is good to know that Emacs will never lose any edit even if I have performed a confusing series of undos and redos. But it can get confusing pretty soon if we are undoing and redoing on the same edit too many times.

That is why many people don't like linear undo history and install an undo-tree plugin which makes undos easy to navigate in a tree. Yet another reason to design some computer/software history lessons so that devs can learn from the existing techniques, their adoption, benefits and complaints.

comment 4y ago · link · parent

> No, there is no undo "tree", nor any complicated graphical user interface to go with. ... You've got your undos, your redos, and that's it. The underlying data structure is strictly linear, but all edit states are preserved and reachable ...

This is exactly how Emacs works!

Emacs has worked like this since its beginning in 1980s. It was even documented in the first manual (1981):

This might seem to pile one disaster on another, but it doesn't, because vou can always Undo the Undo if it didn’t help. (page 137 of manual)

I think there needs to be some sort of computing and software history lessons. It can offer great value in the current world of software development. It will save you from the trouble of rediscovering techniques that are already in use in classic battle-tested software.

(And really? You need to invent a cheesy acronym for this? If that's what it takes to sell the obvious these days, how about SLUR - Simple Linear Undo Redo?)

41.

Is it worth learning Common Lisp for writing tools if I already know Emacs Lisp?(old.reddit.com ↗)

1 points · by ctrlmeta · 4y ago · discuss

42.

EmacSpeak is a complete audio desktop environment for Emacs(emacswiki.org ↗)

2 points · by ctrlmeta · 4y ago · discuss

comment 4y ago · link · parent

Cite some of those counter examples. Not being snarky. It would be nice to see what those counterexamples are. Good to see a topic from opposite perspectives.

comment 4y ago · link · parent

Can't you download backups regularly, rsync them to your local system that you physically own? If the single-entity business disappears you can just get a new VPS from another business and restore the services from backups, can't you?

comment 4y ago · link · parent

There is a lesson here for commenters to Show HN too. It is not uncommon to see someone sharing their post with the HN community here, then someone posts a dismissive comment and that quickly gets upvoted to the top. This is a reminder to be kind while giving feedback. Words have great power. With great power comes great responsibility.

46.

The past, present, and future of Dark Mode (2019)(uxdesign.cc ↗)

1 points · by ctrlmeta · 4y ago · discuss

comment 4y ago · link · parent

Why?

48.

An Empirical Investigation into Programming Language Syntax (2013)(dl.acm.org ↗)

1 points · by ctrlmeta · 4y ago · discuss

comment 4y ago · link · parent

> Are there new things being developed based on windows 3.1?

No

> Are there new things being developed based on lisp?

Yes.

> The analogy is not very good.

I guess I am missing your point. Care to elaborate your point?

comment 4y ago · link · parent

You can't just leave us hanging there! Tell us more. What type of problems do you solve with it? Was it hard to get others on board with the idea of CL? Are you happy with your decision of choosing CL for FAANG work? Any advantages/disadvantages you observed during your work?

comment 4y ago · link · parent

Interesting. Can you share the text editor? Can I try it out somewhere? Is the editor itself written in Lisp?

comment 4y ago · link · parent

They certainly are! I use both everyday. Emacs and Org-mode are so ingrained into my brain and fingers that I just totally forgot that I am using a Lisp system everyday while posting my previous comment.

comment 4y ago · link · parent

> These kind of comments _always_ pop up and are either terribly missing the point or written in bad faith.

As someone who loves coding in Lisp myself I assure you my comment is not written in bad faith. And I am not sure what point I am missing. I read the entire TFA from top to bottom and I liked it!

I genuinely want to see a list of projects (preferably open source) written in Lisp. That would help me to support my other arguments when I talk about Lisp with others who do not use Lisp. Thanks to the HN crowd, we have already received a good list of links and examples in the comments of this thread.

I am not sure why I need to be attacked personally for a genuine question.

comment 4y ago · link · parent

> "Used today in production" does not mean that it's not dead.

I guess you need to define "dead".

I have to agree with others here that Lisp is not dead for the simple reason that Emacs is not dead. Emacs has a thriving community of developers who code and use Lisp almost everyday to solve problems.

Org-mode alone has a large number of users from all walks of life, from writers to event organizers and Lisp code is written for Org-mode everyday.

There are high-profile well known companies that use Clojure for processing high volume of transactions. They are in all probability writing Clojure code everyday that is going to production everyday.

What exactly is your definition of "dead"?

P.S. You have also completely misrepresented my earlier comment in your comment here - https://news.ycombinator.com/item?id=33464215 so I am not entirely sure if you are arguing here in good faith or if you have an axe to grind.

comment 4y ago · link · parent

> Because it's possible to have a lot better representations of computer code for humans than AST.

Which are those? I assure you I am a human and I find s-expressions to be clean, elegant, easy to read and easy to understand. I have learnt C, Java, C#, PHP, Perl, Ruby, Python, Go, Javascript, C++, Rust over the years and I have not found a syntax that feels better to me, the human.

When I am writing tools for myself I reach out for Lisp because it is the most convenient one to write code in. I don't have to worry about all the syntactic ambiguities and complexities of these other languages. With Lisp, I can focus on solving my problem without being weighed down by complex syntaxes of other languages.

You are saying there are better syntaxes out there? Where can I find this elusive language which has better representations of computer code for humans?

comment 4y ago · link · parent

> I couldn't see many massive wins over my go-to Python.

A massive win over Python I get is performance! The performance of SBCL or another good implementation beats Python hands down. And I don't have to lose anything to gain that performance. The syntax is much cleaner and more enjoyable than Python. Quicklisp provides a wide variety of packages that I can use to build software. So it has the advantages of Python and superior performance.

comment 4y ago · link · parent

> OP didn't really make a point. He just said that he would like posts about lisp being used in production

+1. I am the OP that asked the question. I wasn't making a point. I was asking a question. The company list provided in the response to that was helpful.

comment 4y ago · link · parent

I don't have the same experience. I find s-expressions more pleasant to read. On the other hand, I find the syntax of C, Python, etc. to be jarring! The syntax of Rust and C++ feels like nails on chalkboard to me. What I find even more uncomfortable about C++ and Rust (and Python to some extent) is that they keep innovating on syntax and the syntax becomes more and more complex as years go by.

Compared to that mess, Lisp's s-expression is a breath of fresh air. The brain ignores the parentheses soon (just as the brain ignores the braces in C-like languages) and relies on the indentation to understand the structure of the code.

Having said that I do find the prefix notation slightly unintuitive for complex math formulas. Simple stuff like (< x y) is clear to me. No confusion there. But something like the formula for finding quadratic roots feels a bit unwieldy in s-expression syntax. I am sure that is because of years of conditioning of infix notation. Because pre-fix (or post-fix) are purer and unambiguous representations of the mathematical operations we perform. Yet conditioning has made pre-fix or post-fix hard to read for complex math formulas.

123456