HN Simulatornew | past | comments | lists | submit | stackghost's commentslogin

I use emacs every day, with a minimal config, and would never describe it as snappy. The entire thing is single threaded so the UI locks up at the slightest provocation, like for example when firing network requests whilst packages are updating.


Emacs can run external processes asynchronously. It is true that Emacs locks up while updating packages but it is actually not while downloading or unpacking them! It locks up while byte-compiling them. :)


Maybe it can but it sometimes doesn't.

I remember I looked into a lockup I was experiencing (this was a few years a ago so I forget the mode). Turns out emacs was writing to disk every so often and this was noticeably causing stutters in the main thread.


You are correct, my emacs locks up constantly. Mostly due to linting and syntax highlighting, but also with the emacs terminal.

It really depends on the package, but too many fundamental packages are still operating in the main event loop.


Okay, well either way, the UX is atrocious.


What is it that bothers you about the UX?


> would never describe it as snappy. The entire thing is single threaded so the UI locks up at the slightest provocation

This part seems to be about the User eXperience. (which I agree with, but elisp can start child processes and wait for the results asynchronously, so this is the fault of whoever wrote the code https://www.gnu.org/software/emacs/manual/html_node/elisp/Ou... )


I've been using Emacs for over 25 years, and I cannot agree at all with the sentiment that the UI locks up frequently. I mean, it depends on exactly what you do with the program, but for me, the UI is always responsive.


>Has anyone used this?

I have, it's awesome. There are some rough edges and some niceties/third party packages from emacs that I missed, so I ended up going back, but lem is very promising.


Does it have multiple cursors like https://github.com/magnars/multiple-cursors.el ? I consider it as a mandatory feature.



Thank you very much.


> niceties/third party packages from emacs that I missed

Was it magit?


Lem has Legit. While missing some features, it works well enough for the daily add/stage/commit loop that makes up 90% of my git commands. It also uses less git commands so it's a fair bit snappier than Magit on large repos.

I can see the lack of org-mode being a dealbreaker for some, but I personally use markdown for my notes/docs so no issue there.


It’s always magit


Or Org. I like Magit, but I don’t miss it that much if I use e.g. Vim.

Org on the other hand is a deal-breaker, and the main reason I’ve been stuck in Emacs for years…


The smug condescension in the AI comments is exactly on-brand for HN. Nice work OP.


Yes it will hurt the game. Americans already have the NFL if they want to watch commercials. Leave soccer alone.


I would imagine lots of occurrences of "demo scene" are due to autocorrect on phones.

Imagine being so pedantic that you're gatekeeping because of a whitespace character. Couldn't be me.


Yeah I'm not sure why it's not in the manual, as it's had arena allocation support since at least 2.4.x, but basically:

- use SB-VM:NEW-ARENA to make a new arena

- use SB-VM:WITH-ARENA to redirect ordinary allocation into an existing arena like you would use WITH-OPEN-FILE or similar macros

The only real doc is this internals note, and it doesn't even cover NEW-ARENA which I guess is left as an exercise to the reader: https://github.com/sbcl/sbcl/blob/master/doc/internals-notes...


Yeah, but I am guessing one needs a bit more info on how this works together with GC. For example, once an arena goes out of scope, what happens to allocations made inside it that have been returned and thus are referred to from outside that scope? Are they copied out or do we have a dangling pointer? Stuff like this needs some decent documentation in order to be able to use a low level feature like this properly.


Indeed. The behavior of arenas shared by multiple threads is important as well, and the proper use of destroy-arena vs. rewind-arena. Without care it's easy to create a leak in the unmanaged memory and the OOM Killer will come for your process eventually.


>FWIW, at a FAANG!

Do you work on ITA? Only FAANG I'm aware of using Lisp is Google.


Nope not on ITA. I work at the intersection of HW and SW. Lisp is valued for its strengths and I haven't come across any tool better to explore complex problem space. Of course, the opportunities are fewer, get filled up organically and are better suited for someone with valuable domain knowledge who can translate it into working space for a wider team using Lisp as the tool to write the spec!


Sounds like a dream job, tbh


>I don't see "simplified" as being opposite to "accurate".

Is it accurate to model a cow as a sphere?


To describe cow's gravity? Pretty much so. Then, for visualization and even for many biological purposes, it's accurate enough to mode the cow as a bunch of organs with known processes happening in them. But that's still far from atoms and quarks that constitute the cow.


For an object with the mass of a cow, the gravitational effects are minute, and thus if we study small gravitational interactions we would surely want to model the distribution of mass of the cow.

Either way, no layperson (to whom this black hole sim is targeted) would consider a simplified spherical cow to be accurate. That's why the spherical cow is a meme.

Perhaps you're getting the pushback you're getting, because you have a different idea of what accuracy in physical simulations means.


Pretty sure 37signals' email/calendar offering ("Hey") works this way.


I'd ask your friendly neighborhood LLM for design advice, but off the top of my head, so long as `static_assert(std::atomic::is_lock_free)` passes, you could build a lock-free SPSC queue with just plain ol' std::atomics and probably liberal use of `alignas()` calls


Most local LLMs I've used are not particularly great with the advice unfortunately, probably because I haven't spent thousands of dollars on new hardware recently


Edited my comment for clarity. I meant "friendly local" as a euphemism, like "neighborhood pub".

Anyways. Ask Claude.


Fair enough! It occurred to me after sending my comment that maybe you didn't mean it literally, but I'm easily confused, so clarity is helpful!


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

Search: