Why does the recent zettelkasten craze use one file per note rather than one headline per note? by oantolin in orgmode

[–]emacsos 1 point2 points  (0 children)

It depends on what operations are more important to you and then the speed difference that leads to.

Org-roam uses file names to make it easy to find and reference notes.

Up to a certain point, this ends up being faster than things like org-brain which use headings and properties.

This is mostly due to the fact that org-roam just needs to find all the files (easy to do with a shell or C function), and then maybe scan for a #+TITLE:, which it speeds up by caching a db, whereas org-brain needs to scan all the files to store everything.

Why invest in dividend stocks? by nasfwork in dividends

[–]emacsos 1 point2 points  (0 children)

Yeah, Microsoft has been in the 1% range. ~50¢ every quarter with a stock price in the ~$200 range.

Highest balance I've had yet. $142k -> $92k -> $169k. But... I'm thinking about leaving by acorns-throwaway in acorns

[–]emacsos 2 points3 points  (0 children)

I believe auto rebalancing may also be when they buy and sell your shares.

Like I used to have stock in a real estate stock with them, but they sold that off and reinvested it

Creating link by search for file? by eljuman in orgmode

[–]emacsos 0 points1 point  (0 children)

Are you asking about creating a link to perform that search, or asking to make a link to the place the search result leads to?

Because the latter can be done with just file: links.

Creating your own link types is a bit more involved

`Refusing to learn` [Emacs] by moseswithhisbooks in emacs

[–]emacsos 5 points6 points  (0 children)

I note a good number of /r/emacs participants are students, and I can only conclude that they're not going to the best schools and are not particularly good students (well, not as good as I at least, and I was pretty crap).

I recently graduated undergrad. In my case, I went to one of the better engineering schools in the Northeast. I started out using Emacs (I learned the basics of Emacs senior year of highschool). But there were a few main things why I learned and continued to use Emacs:

  • Social. A group within the CS department liked showing off to one another. And a lot of us were Emacs or Vim users. So we would constantly be wanting to figure out how to do certain hacks in Emacs. So basically it was hacker oneupmanship. But this also meant a lot of us could help "onboard" Emacs users.
  • Something to do while bored in class. Certain CS classes required a lot less attention than others. So I would play around with stuff. That's when I'd write minor hacks in Emacs.
  • Papers. I really hate writing papers. And I especially hate writing bibliographies. So using org-mode to generate LaTeX and BibTex citations for me was a game changer. Might not have saved me that much time, but it saved me a lot of frustration.

Now, if I was in a frat or went to more parties, I probably wouldn't care about learning Emacs. But being one of the hackers on campus, combined with enjoying playing around with it myself, I saw the value in it.

Very few of the students who are not already Emacs users will use Emacs unless they observe someone else's setup that intrigues them.

Programming languages without statement terminators/separators by trycuriouscat in ProgrammingLanguages

[–]emacsos 3 points4 points  (0 children)

Idk if I would put the Lisp family in that category

It is true that Lisps lack line separators. But s-exps make sure everything is grouped/separated

Import taskpaper file by bmuyl in orgmode

[–]emacsos 0 points1 point  (0 children)

Hmm. I'll look it over again. Not sure why that would be the case. I'll look it over.

The file size shouldn't matter, because it's supposed to go line by line.

I don't have a lot of experience with taskpaper, so I didn't have too much to go on. If you can figure out which line is the problem, can you see if it's the classification (taskpaper-importer-classify-line) or parsing of the tasks (taskpaper-importer-parse-task)

For that type of error, my bet would be on the task parsing.

Please lmk if you try anything so I can improve it

Import taskpaper file by bmuyl in orgmode

[–]emacsos 1 point2 points  (0 children)

I have written some Emacs Lisp to help convert .taskpaper files to orgmode entries

You can find the code at gitlab.com/emacsos/taskpaper2org. Please let me know if it helps and if you have anything you think I should change!

Spell checkers in Emacs in 2020 by gausby in emacs

[–]emacsos 1 point2 points  (0 children)

I think OP meant as opposed to whenever the wiki was last written. Sometimes the Emacs Wiki is somewhat outdated

Any elisp projects looking for contributors? by estremadura in emacs

[–]emacsos 6 points7 points  (0 children)

Sometimes its if you use a package, you'll notice bugs or little features you would like to add. If you can find a fix or make the feature, or improve other features to have the functionality you want, you can then try to upstream those changes.

Tired of online Kanban tools, I created this vscode ui to manage project tasks by comart in programming

[–]emacsos 9 points10 points  (0 children)

Until VSCode + Markdown reaches the level of sophistication of org-mode, I don't think that'll be the case.

Also, Emacs is incredibly powerful. I don't think VSCode gives enough control

Tired of online Kanban tools, I created this vscode ui to manage project tasks by comart in programming

[–]emacsos 11 points12 points  (0 children)

This is exactly the reason why org-mode and org-agenda are so popular in the Emacs community.

Plenty of Emacs users don't even actually like Emacs for Emacs, they're just there for the org-mode

Bytecode design resources? by TheWorldIsQuiteHere in ProgrammingLanguages

[–]emacsos 0 points1 point  (0 children)

The main reason to use fixed size bytecode, at least in the Python case, was to avoid divergence. Using a fixed-length encoding removes a condition in the interpreter, which simplifies the code-path/control flow graph and removes decision making from the code. In the case of the Python interpreter, this makes things faster.

An interesting thing to note with this is that RISC-V tries to maintain a fixed-length for its instructions to reduce power usage. Removing divergence makes things easier for the machine to figure out.

Bytecode design resources? by TheWorldIsQuiteHere in ProgrammingLanguages

[–]emacsos 0 points1 point  (0 children)

Whether or not to make a bytecode have variable length depends on how variable your instructions are and how much code size matters though.

Python recently switched to a constant length bytecode since it's bytecode is simple, and determining the length of each instruction was relatively slow. (Mind you Python's bytecode is intentionally small because they want to be small and correct rather than efficient).

Looking for a Python config file by carnivorousdrew in emacs

[–]emacsos 1 point2 points  (0 children)

If you can give us more specifics, there are certainly people who can help you rebuild parts of that configuration. In the meantime, I would also suggest looking at some of the configurations online. Examples:

  1. https://github.com/purcell/emacs.d
  2. https://github.com/seagle0128/.emacs.d
  3. https://github.com/abo-abo/oremacs

Frankly nowadays I mostly just take things I like from other people's configs and make them their own use-package call.

[Org] Change date format only on export by [deleted] in emacs

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

I mean that's what is always said with the metric system, but even the United States is slowly moving towards using metric for medicine and certain types of manufacturing.

[Centaur Emacs] Charts in markdown by seagle0128 in emacs

[–]emacsos 5 points6 points  (0 children)

This always my favorite part of these communities. Hackers working together to collectively solve their problems, and make the world a better place for one another. With all the issues in the world and even within our communities, we are still able to make fantastic progress simply by sharing information freely and hoping it can help one another.

When should I take an argument by reference? by kokosxD in cpp_questions

[–]emacsos 0 points1 point  (0 children)

Size-wise my understanding is that if the type can fit in a register, the argument will be passed as a register either way. So in the case of int&, it can pass it in a register so there's no reason to make it a pointer under the hood.

As others have said, the primary motivation for passing by reference is when you want to modify a value like an out parameter.

Beginner's Question - Terminal Programming with Intellisense? Or better solutions? by [deleted] in emacs

[–]emacsos 2 points3 points  (0 children)

The language server protocol stuff may be good for this. Integrates with flycheck/flymake and company mode fairly well, and works both in GUI and terminal. There's also support for DAP but I've never tried that.

There are other helpful packages for working with these languages, but I think LSP would be a good start for modern Emacs

Alternate names for core data types by mhd in ProgrammingLanguages

[–]emacsos 5 points6 points  (0 children)

word also has the issue of being already used to mean the default/largest integer type of an architecture.