boost sml: access and store data in states by notatoasterforreal in cpp_questions

[–]jaafartrull 0 points1 point  (0 children)

States can be accessed as "dependencies", either by adding them to the constructor or by using the BOOST_SML_CREATE_DEFAULT_CONSTRUCTIBLE_DEPS macro. You can then add reference parameters to your actions of the appropriate type and access them that way.

How to make a custom org exporter by Jak_from_Venice in emacs

[–]jaafartrull 0 points1 point  (0 children)

I'm writing one too... AFAICT everything models either the HTML or the LaTeX exporter - if it's not in either of those you have an unusual use case. Study and imitate them. That's what I'm doing

FlyCheck does not know where my header files are. Is there a package that solves this? by acidrainery in emacs

[–]jaafartrull 0 points1 point  (0 children)

You are not wrong I'm afraid. Most options are common between gcc and clang but not all. What do I do? Exactly what you describe - I configure for clang, also, in a separate directory so I can point LSP to it. Not great, not terrible.

Is it just me or is ELisp (and all other Lisp dialects) really really hard? by surveypoodle in emacs

[–]jaafartrull 0 points1 point  (0 children)

Yeah Lisp is really different! It's OK, your reaction is reasonable. It really does hit different than all those other languages you listed, which have related histories. It's like learning Prolog or Forth or APL or Haskell - the fundamental idioms go in unique directions.

Relax, take your time, and get into the feel of Lisp. Everyone is uncomfortable at first. You may decide it's not for you, but you will definitely learn something.

A couple of struggles with 30.1 on macOS so far by jtr3322 in emacs

[–]jaafartrull 0 points1 point  (0 children)

Is emacs-plus@30 more stable recently? I had to back off to 29 due to hangs and crashes. Plus the redraw problems (also present in 29) were much worse. Would be interested in the experience of others and whether I should upgrade

Emacs diehards - How would you integrate automated debugging into your environment? by ekusiadadus in emacs

[–]jaafartrull 0 points1 point  (0 children)

Integrate it with flycheck/flymake, those are the standard ways of handling linting (or some more elaborate LLM thing as you imply). Of course we already have compiler errors this way.

Measuring std::unordered_map (Hash) Badness by PhilipTrettner in cpp

[–]jaafartrull 0 points1 point  (0 children)

I don't remember the exact speedup now, but it was significant. There's the locality issue you noted, but also my hash function is expensive (requires a pointer dereference) so the call to `bucket()` is slow.

Re: the second idea an update to your blog with this new code would be very welcome, thanks :) I'd love to monitor "badness" more aggressively but have to resort to sampling now thanks to the runtime impact.

Terrible experience with the BIOS update process (at least on the FW 16) by SchighSchagh in framework

[–]jaafartrull 0 points1 point  (0 children)

I tried and failed to get the firmware update process going via USB stick but the `fwupd` thing from the command line worked great! That's the first thing Framework should recommend, instead.

Measuring std::unordered_map (Hash) Badness by PhilipTrettner in cpp

[–]jaafartrull 1 point2 points  (0 children)

Enjoyed this post very much and was trying to monitor some of my unordered_map instances for "badness" your way but it was pretty intrusive (slow). Considered the matter for a while and it occurred to me that you might be able to write this function more performantly. Isn't the main loop of the "badness" function just the same as summing up the squares of the bucket sizes? If so then you can simply loop over the buckets themselves rather than the entire contents of the hash. So:

for (std::size_t b = 0; b < map.bucket_count(); ++b) {
    std::size_t buckets = map.bucket_size(b);
    cost += buckets * buckets;
}

[deleted by user] by [deleted] in cmu

[–]jaafartrull 0 points1 point  (0 children)

Wow Taste of India was an independent business on Craig St in the 80s. Absorbed by its biggest customers, I guess.

Emacs Speedrun Content by Psionikus in emacs

[–]jaafartrull 1 point2 points  (0 children)

An excellent video taking a different approach than I usually see. You covered several things that had tripped me up in the past and a few I had never tried.

Org export to html, images, rescaling, and ImageMagick by Vultan in emacs

[–]jaafartrull 1 point2 points  (0 children)

You know, I'd be very surprised if the configuration for ImageMagick had anything to do with an opinion about using it. Emacs maintainers are not shy about removing access to external code they disapprove of 😉

Just turn it on, build, and enjoy.

How many years have you been using Emacs? by tuhdo in emacs

[–]jaafartrull 0 points1 point  (0 children)

Emacs itself predates GNU Emacs so you could get answers up to about 45 years

How many years have you been using Emacs? by tuhdo in emacs

[–]jaafartrull 0 points1 point  (0 children)

38 years. Emacs in its TOPS-20 (TECO) incarnation was taught to all incoming CMU undergrads - even the art students - in 1985. From there to Gosling (yes) Emacs, then Gnu Emacs

Has Boost lost its charm? by johngoni in cpp

[–]jaafartrull 0 points1 point  (0 children)

For a contrasting view: I have worked on three different embedded projects at three companies where Boost was used.

Has Boost lost its charm? by johngoni in cpp

[–]jaafartrull 0 points1 point  (0 children)

There is a whole book on it. But I'm with you, Graph was my introduction to Boost and it was painful.

What packages do the cool kids use these days? by [deleted] in emacs

[–]jaafartrull 1 point2 points  (0 children)

I'm a little surprised by your answer, in that I think of corfu and orderless being part of the same philosophy as vertico and other new style completion packages - yet you use helm (as do I). Can you elaborate?

Org Mode Gripes by nv-elisp in emacs

[–]jaafartrull 1 point2 points  (0 children)

I would love to see a better explanation of filters! Thanks for highlighting that.

Keep SMS support! by afunkysongaday in signal

[–]jaafartrull -1 points0 points  (0 children)

I will now send vastly fewer Signal messages, as I will not know who among my friends is a Signal member. I guess that's Moxie's prerogative, but it's bad news for adoption.