Readit News logoReadit News
slaymaker1907 commented on Emacs as your video-trimming tool   xenodium.com/emacs-as-you... · Posted by u/xenodium
iLemming · 9 days ago
YES! Thank you! That's exactly it.

You know what really makes Emacs different than other editors and IDEs? Consider many ways one can transform selected text in VSCode. Let's say there are maybe 3-4 ways, with some extensions it can get to, I dunno a dozen?

Now consider that Emacs allows you virtually unlimited ways of doing the same thing. Because there are virtually unlimited ways to program that behavior.

In VSCode, you'd be clicking buttons and using shortcuts. Imagine if you had virtually unlimited number of buttons there? For different ways of running a command. That would be insane, right?

Well, here comes the argument if VSCode's (default) way maybe actually better? Some may argue about cognitive overhead - flexibility isn't free after all. Some programmers prefer tools to be tools rather than clay, yeah?

That's totally okay, I'm fine with all that. I'm just seriously baffled as to why Emacs is such an underrated and misunderstood tool. Why don't more programmers even attempt to try it? If you are a programmer, for sure, you should be, at least to a certain degree, curious about the ultimate programmable environment, no?

And don't bring the argument that non-emacs things are also "extendable". In virtually none of them can I open a buffer and add yet another way to transform selected text. Right there, without even saving that code in a file.

slaymaker1907 · 8 days ago
I'm not sure I agree that non-emacs things are not extensible, but I agree VSCode could be a lot better about extensibility. It's a shame that there isn't some convenient way to add JS hooks at startup like how you can with emacs and elisp.

For an example of a system that I think is probably just as extensible as emacs, look at TiddlyWiki. If you really want to, you can add in arbitrary JS and even the main tiddler edit form is itself a tiddler that can be customized as much as you want.

slaymaker1907 commented on Wikipedia loses challenge against Online Safety Act   bbc.com/news/articles/cjr... · Posted by u/phlummox
MattPalmer1086 · 17 days ago
The Online Safety Act is a hideous piece of legislation. I hope Wikipedia block the UK.

(I am a UK citizen).

slaymaker1907 · 17 days ago
Act like an authoritarian regime, get treated like other authoritarian regimes.
slaymaker1907 commented on How to Store Data on Paper?   monperrus.net/martin/stor... · Posted by u/mofosyne
slaymaker1907 · 3 months ago
I'd always wondered how much data you can store on paper using QR codes given that print media seems to be much better at surviving for long periods of time.
slaymaker1907 commented on Rhombus Language   rhombus-lang.org... · Posted by u/swatson741
fernmyth · 5 months ago
It’s not about an unfamiliar syntax. S-exprs are objectively hard to read. The same shape for function calls, macros, blocks, and data means I can’t distinguish them by sight to detect the code structure. I have to do conscious paren matching.

Structure recognition should be pushed as far down in the subconscious as possible. Rainbow parens help, but it’s not nearly enough to stop other expression fragments from jumping into attention. Likewise clojure’s different bracket types for data structures, likewise the editor highlighting the paren matching the one at the cursor. Better than nothing, but incomparably worse than just having visually distinct syntax in the first place.

C-style is fine. Python-style, ML-style, SQL-style, BASIC, shell: all fine for structure recognition. But lisp is just a soup. Or a fog.

Same problem with elasticsearch queries, too.

slaymaker1907 · 5 months ago
Have you looked at idiomatic Racket code? You can freely switch between () [] and {} which makes things a lot cleaner.
slaymaker1907 commented on The inevitability of the borrow checker   yorickpeterse.com/article... · Posted by u/rbanffy
dcrazy · 7 months ago
> Shouldn't allocation strategy be decided by the caller, not type definiton?

This is how C++ is designed. Unfortunately, it precludes types from taking dependencies on their own address, which is critical for e.g. atomics. As far as I know, there is no way to actually force a C++ class to be heap allocated. I’ve tried.

Newer languages like Swift give the type designer the ability to say “the address of this object in memory is important and must remain stable for the lifetime of this object.” This decays to heap allocation.

slaymaker1907 · 7 months ago
The only thing I can think of that really matters which can’t be solved by just wrapping the data in an inner heap allocation (like std::vector) is with the pointer to the vtable for virtual function calls.

If anything, I’ve found it’s more useful when I want to bypass such wrapping to force a class to use some particular memory (like from a bulk allocation). The STL is pretty good, but there are warts that which still force the default heap allocator like std::function.

slaymaker1907 commented on GLP-1 for Everything   science.org/content/blog-... · Posted by u/etiam
mentos · 10 months ago
Isn’t this just eating less food is good for everything?
slaymaker1907 · 10 months ago
Depends on who you are and if you have an eating disorder.
slaymaker1907 commented on The lost language extensions of MetaWare's High C compiler (2023)   duriansoftware.com/joe/th... · Posted by u/PaulDavisThe1st
WalterBright · a year ago
D (also in Das BetterC) has:

1. underscores in literals:

    int a = 1_234_567;
2. case ranges:

    case 5 .. case 6:
3. named arguments:

    void test(int a, int b);

    void foo() { test(b:3, a:4); }
4. nested functions:

    int foo(int i) {
      int plus(int a) { return a + i; }
      return plus(3);
    }
5. static nested functions:

    int foo(int i) {
      static int plus(int a) { return a + i; }
      return plus(3);
    }

    Error: `static` function `test.foo.plus` cannot access variable `i` in frame of function `test.foo`
6. a feature similar to generators https://dlang.org/spec/statement.html#foreach_over_struct_an...

slaymaker1907 · a year ago
I also think that the GC of D is really a nice feature. Sometimes you want manual memory management in low level code, but there is also a ton of stuff where it doesn't really matter and a GC just makes things easier. For example, if you're writing an in-memory cache service, you really don't want the cache entries themselves to be tracked by the GC since the GC is often unaware of the actual access patterns and just gets in the way, but most of the other components of that service are better served with a GC.
slaymaker1907 commented on Ribbit: A portable, compact and extensible R4RS Scheme implementation   github.com/udem-dlteam/ri... · Posted by u/surprisetalk
syvon · a year ago
Hi!

One of the original author of Ribbit here, glad to see it is still getting attention. Léonard and Marc took the project much further than I imagined.

As a fun fact, the project started as a riff of Justine Tunney's famous https://justine.lol/sectorlisp/.

For the interested, my new favorite project from Marc's team is https://github.com/udem-dlteam/pnut

slaymaker1907 · a year ago
Why R4RS? Was that just the standard at the time? I know R6RS is kind of huge and difficult, but R7RS seems pretty reasonably sized.
slaymaker1907 commented on Apple Watch sleep apnea detection gets FDA approval   techcrunch.com/2024/09/16... · Posted by u/brandonb
elric · a year ago
Heated humidification is a crux. You only "really" need it when you have a mouth leak ( or if it's awfully cold and dry in your bedroom, like an igloo?). It also vastly increases the amount of maintenance you have to do on your CPAP device. It makes your masks wear our quicker. It makes your hose more susceptible to growing mold etc.

The real trick is to fix your mouth leak. Getting on the right pressure helps with that. Fixing your sleeping position can help. Mouth tape can help. A cervical collar can help. Anything that will help you keep your mouth shut at night.

slaymaker1907 · a year ago
I don't use the heated hose, but the humidity is invaluable since my sinuses often end up clogged if I don't use it. However, I also live in a desert and regularly have ~20% humidity in my house.
slaymaker1907 commented on Apple Watch sleep apnea detection gets FDA approval   techcrunch.com/2024/09/16... · Posted by u/brandonb
wincy · a year ago
I have tried for months to use my APAP machine, and failed. My wife has no problems using her. I’m not really sure what the next step even is. It’s frustrating because I can tell when I get a bad nights sleep I can’t think as well, but it feels like there’s nothing I can do about it. I can breathe through the CPAP exclusively for hours but then as soon as I try to go to sleep I feel like I’m being smothered and my heart starts racing. Does anyone have any advice?
slaymaker1907 · a year ago
Have you tried playing around with the humidity? If I have it set too low, that definitely makes a big difference. There are also other treatments for sleep apnea that you could look into which might work better.

u/slaymaker1907

KarmaCake day2495November 22, 2016View Original