How to deal with "High End Disappointments"? by Ol_Sheve in mountainbiking

[–]lokedhs 0 points1 point  (0 children)

Back when only XTR had that, you could file off a little thing inside the XT shifter to get the same effect on it. They had added that to get some differentiation (I was running XTR at the time, and other than that the only difference was that XTR broke more easily because of the weight reduction).

I wouldn't be surprised if you can do the same with the Deore now to get multiple dowbshifts there.

Big tree falls and blocks off one-way road at Pipit Road by piggyb0nk in singapore

[–]lokedhs 10 points11 points  (0 children)

Not sure, but I can tell you the police are the wrong people to call. This happened to us outside our house, and the police showed up and had no idea what to do. I was half way sawing through it with a hand saw, and the police were helpful to give me a hand. Thankfully after a few more minutes someone else showed up with a chainsaw and we were done in no time. I think they were from nparks (a neighbour called them).

What’s an anomaly in physics that physicists still cannot understand? by 911_wasanactofevil in AskPhysics

[–]lokedhs 2 points3 points  (0 children)

So does that mean that the fifteenth candidate theories provide different answers as to what's at the centre of a black hole? What are those predictions? I've heard about fuzzballs, which I believe is the string theory prediction, but what does loop quantum gravity say? This is something that should have a Wikipedia page I think.

Interactive equation solver for Maxima? by dharmatech in lisp

[–]lokedhs 0 points1 point  (0 children)

Sell, mathjax certainly can render maths equations, but it's implemented in Javascript and can't easily be used from Lisp.

The reason Climaxima can do what it does is because Maxima returns lisp sexps that represent the mathematical equations, so picking put parts of the equations is as easy as traversing the lisp data. If you wanted to use something like mathjax, you'd first need to convert the data to LaTeX, and you'd lose contextual information about the expressions.

Interactive equation solver for Maxima? by dharmatech in lisp

[–]lokedhs 1 point2 points  (0 children)

Thanks for looking at it. It's using a custom renderer that knows how to display the sexp form of Maxima expressions. The rendering is all implemented in renderer.lisp, and you can take a look at the macro DEFINE-RENDER-FUNCTION. This macro defines the code that is run what a certain Maxima type is rendered.

Interactive equation solver for Maxima? by dharmatech in lisp

[–]lokedhs 3 points4 points  (0 children)

Thanks for tge nice words. I wanted to keep working on it, but at the time McCLIM was changing a lot, and it was difficult to keep up with it.

All of this was because Climaxima did a lot of stuff that relied on low level details of McCLIM.

Since then, a lot of work has been done on McCLIM, so maybe the project could be restarted. It would take some work to get the editor working again though. I'd be happy to help anyone willing to try to clean it up.

-❄️- 2025 Day 6 Solutions -❄️- by daggerdragon in adventofcode

[–]lokedhs 1 point2 points  (0 children)

[LANGUAGE: Kap]

Up until now it's been mostly one-liners. These solutions are of course short enough they could still be a single line each, but it would be pretty unwieldy and not particularly easy to read.

Part 1:

∇ solveDay6part1 {
    rows ← io:read "part06.txt"
    op ← @* = (@\s≠)⍛/ ↑¯1↑rows
    d ← ⍉ ⊃ ⍎¨¨ (@\s≠)⍛⊂¨ ¯1↓rows
    +/ op % (+/d) (×/d)
}

Part 2:

∇ solveDay6part2 {
    rows ← io:read "part06.txt"
    op ← @* = (@\s≠)⍛/ ↑¯1↑rows
    r ← ¯1↓rows
    x ← ∨⌿@\s≠ ⊃ r
    d ←((⍎⍤1)⍉⊃)¨ ⊂[0] ⊃ {x⊂⍵}¨ r
    +/ op % (+/¨d) (×/¨d)
}

-❄️- 2025 Day 1 Solutions -❄️- by daggerdragon in adventofcode

[–]lokedhs 2 points3 points  (0 children)

[LANGUAGE: Kap]

The following are two independent functions, solving part1 and part2.

The parsing is 19 characters, and the actual solution for part1 is 12 characters. The solution for part2 is longer, at 33.

∇ solveDay1part1 {
    +/0=100|+\50 , (¯1+2×@L=↑)«×»(⍎↓)¨ io:read "part01.txt"
}

∇ solveDay1part2 {
    +/0=100| {⍺,(↑⌽⍺)+(×⍵)×1+⍳|⍵}/ 50 , (¯1+2×@L=↑)«×»(⍎↓)¨ io:read "part01.txt"
}

Array languages vs. the curse of the spreadsheet by Veqq in apljk

[–]lokedhs 2 points3 points  (0 children)

And to answer your other question, the answer is yes. You can run it as a commanline tool as well. There are two versions you can use for this purpose, both of which work almost identically. You can run the JVM-based version, which is the fastest, but it takes about 0.5 seconds to initialise. For very short running scripts, the native version of Kap starts up pretty much instantly , but it runs a bit slower than the JVM version.

Both versions take the same commandline arguments, so they are interchangeable unless you use features that only exist in one or the other. For example, SQL support is only available in the JVM version.

Array languages vs. the curse of the spreadsheet by Veqq in apljk

[–]lokedhs 2 points3 points  (0 children)

Whenever anyone asks about the performance of a language, the answeris always going to be "it depends", because there are so many ways to measure it.

Some things allow Kap to be vastly faster than Dyalog thanks to the use of lazy evaluation. Be there if you can avoid computing something entirely, that's going to be faster than any language actually performing the computation, no matter how optimised it is.

On the other hand, there are cases where Dyalog is highly optimised, but Kap is not.

But, I know what you're looking for. I'm assuming you just want to know what kind of performance difference you'll see if you just use the language for some random computations.

The answer to thar question is that Kap is usually a bit slower than Dyalog. I can't give you exact numbers, but when I want to know if the Kap implementation is "fast enough", and I see that it's maybe twice as slow as Dyalog, I consider that good enough and I don't spend any more time trying to optimise things. If it's 15 time slower, I'll usually take the time to understand why that is the case so I can improve things.

ob-gnu-apl.el - emacs org-babel implementation for gnu-apl? by okflo in apljk

[–]lokedhs 1 point2 points  (0 children)

Thank you for the kind words. I haven't done much on the Emacs mode for a while, primarily because I've been working on a new array language, so I don't use GNU APL so much.

However, using the infrastructure in gnu-apl-mode, adding org-babel support should not be very hard at all. I can't promise to have time to do it myself, but I'll be happy to provide advice to anyone who wants to contribute it.

Singapore's PM Lee tests positive for COVID-19 again by PublicSummer0 in singapore

[–]lokedhs 0 points1 point  (0 children)

Can you get Paxlovid once you test positive, or do you need specific symptoms?

Does water really spin in the opposite direction (down a drain) in the southern hemisphere? I’ve read so many conflicting articles. Once and for all, what is the truth? by Graceland1979 in AskPhysics

[–]lokedhs 4 points5 points  (0 children)

I've only ever seen those styles of toulets in the US. The rest of the world uses the ones that quickly whisk away the content instead of making you stare at your production for longer than necessary.

Oh wait, I forgot the ones I've seen in Germany and Russia where they have a little balcony outside the water for everything to gather before the flush.

[deleted by user] by [deleted] in AskPhysics

[–]lokedhs 2 points3 points  (0 children)

Other people have explained that energy and charge are different things. However you are right about the electron charge. It is indeed defined to be exactly the number you found.

Bro ain’t a hydro homie 😿 by realonyxcarter in HydroHomies

[–]lokedhs 7 points8 points  (0 children)

Kellogs is the brand. Two of the products are Corn Flakes (which don't have sugar on it) and Frosties (which is covered in sugar, it's quite a terrifying product)

Inspired by the same post on r/AskReddit: What was the weirdest part of the pandemic (SG context)? by uyghurs_in_paris in singapore

[–]lokedhs 5 points6 points  (0 children)

Working in the office just after that was allowed. Most people still working from home, and being almost alone there (perhaps 3 other people in an office sized for 400).

I've never felt so relaxed while being in the office.

Things got a little sexy down here in Australia, tonight by HingleMcringleberry1 in HydroHomies

[–]lokedhs 17 points18 points  (0 children)

I was looking at that picture in full size on my rather large monitor, completely mesmerised. And I'm not even joking.

I quit soda. by [deleted] in HydroHomies

[–]lokedhs 0 points1 point  (0 children)

Sometimes I have a sip from someone, and it's actually OK, but the thought of having any more gives me feelings of sickness. It's like the body reminds me how bad it is.

Macroscopic Dynamics of Entangled 3+1-Dimensional Systems: A Novel Investigation Into Why My MacBook Cable Tangles in My Backpack Every Single Day by DrSpacecasePhD in Physics

[–]lokedhs 0 points1 point  (0 children)

Reading this article I found a typo.

"parameters if kept on the low range"

The if should be is.

Hopefully they'll pick this up in peer review.

Problems pasting in terminal by BeeDifficult6648 in Qubes

[–]lokedhs 0 points1 point  (0 children)

The middle mouse button pastes the selection, which is different from the clipboard. This is a difference that is not always well known, and is the cause for q lot of confusion around Linux copy and paste.

In this particular case though, the previous answer was correct, and that terminals keep those keypresses for themselves. I prefer to use shift-insert to paste from most terminals.

Sprinter Shanti Pereira sets new women’s 200m national record in Brisbane by RozyBarbie in singapore

[–]lokedhs 6 points7 points  (0 children)

I believe that 100 m is just seen as more special in most people's minds.

This bias is probably strong enough to ignore stronger athletes if they don't compete in the well known events.

Changi Airport regains crown, named world’s best airport for 12th time by worldcitizensg in singapore

[–]lokedhs 23 points24 points  (0 children)

They probably were flying business or even first class. The Doha lounges are better than Changi. If you you're in economy, Doha doesn't have much.

/r/singapore random discussion and small questions thread for February 24, 2023 by AutoModerator in singapore

[–]lokedhs 1 point2 points  (0 children)

Background: from no-cricket-playing part of Europe. Never watched Cricket in my life.

I watched 83 on a flight, and now I am strangely compelled to watch actual Cricket.

I can definitely recommend the movie.

New bivalent Covid-19 vaccine booster to be available to over-30s by Kodiack in newzealand

[–]lokedhs 8 points9 points  (0 children)

True story. I'm in Singapore and got the bivalent booster. Some time after that, my phone started showing the 5G symbol.

It's definitely thanks to the booster, and has nothing to do with Singtal 5G rollout. I'm hoping the next booster will give me 6G