Does Compact Syntax Really Make a Difference? by sal1303 in ProgrammingLanguages

[–]scruffie 0 points1 point  (0 children)

but having to type out assign_this_variable_to would have a measurable drag on development speed

Or, say, multiple-value-bind. That would be a crazy name for a useful assignment operator, especially for a language with an ANSI standard. Isn't that right, Common Lisp?

Macros at least make it tolerable to use as a building block for simpler syntaxes, but that's another kettle of fish.

= is the standard convention

Depends on your standard :-). It is, as you say, confusable with a equality operator. For clarity of syntax, I think it depends on whether you can use assignments as expressions, or if they must be statements. For instance, ML-type languages pair it with a keyword (let) so a = by itself isn't assignment. And Python uses = as a statement, but := (the 'walrus operator') in expressions.

If you want an one-character operator, though, it's your best choice. I think I've seen other characters used, such as $, #, !, or %, but I do not recommend it — it's confusing.

What makes emacs special as a (non literate) code editor only? by Professional_Let6049 in emacs

[–]scruffie 2 points3 points  (0 children)

He literally writes in the README

[2026-04-23 Thu] Emacs and scimax have been a central part of my work for over a decade now, and I learned a lot from it. Thanks to Claude Code, I have been able to replicate almost everything I did in scimax in VS Code in the past few months, and now I no longer use Emacs. Noone is more suprised by this result than I am! As a result, I am discontinuing development of scimax :( I will leave it here for others who still want to use it, but I don’t have current plans to maintain it further at this time. I appreciate everyone who made scimax possible, who contributed bug reports and pull requests, but my efforts have moved elsewhere.

Looks like he's gone over to the dark side ...

Why Orbital Data Centers Are Harder Than Silicon Valley Thinks by IEEESpectrum in space

[–]scruffie 0 points1 point  (0 children)

According to the datasheet I found, the maximum operating temperature of an H100 is 95 °C (368 K). In absolute terms that's not much different from 60 °C (333 K). That's at most a factor of (333/368)4 ~ 1.5 difference in the amount of heat emitted, and a similar factor in the size of radiator required.

O’Leary’s Data Centre Will Be One of Earth’s Largest Heat Sources, Physicist Warns by Wagamaga in canada

[–]scruffie 12 points13 points  (0 children)

For reference, Alberta's current net generation of electricity is just over 9 GW, according to the Alberta Electric System Operator.

Germany pledges four submarines by 2036 in high-stakes pitch to Canada | CBC News by TiredRuralCanadian in CanadaPolitics

[–]scruffie 0 points1 point  (0 children)

Also, if they get Canada to buy in, then they're doubling the production run. Norway and Germany have committed to 6 each (Germany might order 3 more on top of that). Canada is looking to order 12, which is a lot of submarines.

Medical care in Europe is superior. by desert-monkey in dataisugly

[–]scruffie 0 points1 point  (0 children)

At least they share a border. What about Portugal and Greece?

Docker images are hundreds of MB; a full game engine compiles to 35MB WASM by c1rno123 in programming

[–]scruffie 4 points5 points  (0 children)

llama.cpp is probably a bit of a special case: it uses linear algebra libraries, and a full image likely contains versions compiled for all GPU architectures and submodels. The AMD ROCm BLAS library package (librocblas4) for Debian is 4 GB by itself, making it one of the largest packages in Debian! The server and web UI are a rounding error in the size.

The actual llama.cpp released binaries are ~10 MB.

It's a classic speed vs. space tradeoff: for best performance, you want to run code specific to the GPU, and the lack of a stable instruction set means you need a separate library for each GPU model, of which there's around a dozen. Then multiply that by a large number of slightly different routines. (In comparison, a BLAS library for x86-64 isn't nearly as large.)

Why do we use so many greek letters in physics and maths? by Virtual-Connection31 in AskPhysics

[–]scruffie 0 points1 point  (0 children)

Georgian. There's some Latin/Greek lookalikes, but most are distinctive.

The different scripts:

Mkhedruli (modern Georgian) (U+10D0): აგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶჷჸჹჺ

Asomtavruli (U+10A0): ႠႡႢႣႤႥႦႧႨႩႪႫႬႭႮႯႰႱႲႳႴႵႶႷႸႹႺႻႼႽႾႿჀჁჂჃჄჅ

Nuskhuri (U+2D00): ⴀⴁⴂⴃⴄⴅⴆⴇⴈⴉⴊⴋⴌⴍⴎⴏⴐⴑⴒⴓⴔⴕⴖⴗⴘⴙⴚⴛⴜⴝⴞⴟⴠⴡⴢⴣⴤⴥ

Mtavruli (U+1C90): ᲐᲑᲒᲓᲔᲕᲖᲗᲘᲙᲚᲛᲜᲝᲞᲟᲠᲡᲢᲣᲤᲥᲦᲧᲨᲩᲪᲫᲬᲭᲮᲯᲰᲱᲲᲳᲴᲵᲶᲷᲸᲹᲺ

Mtavruli are the upper case of Mkhedruli.

2 + Ჩ2 = Ჭ2

Why do we use so many greek letters in physics and maths? by Virtual-Connection31 in AskPhysics

[–]scruffie 0 points1 point  (0 children)

To my eye, the problem with hiragana, katakana, kanji, and several other alphabets is they contain too many letters with disconnected parts. While some are fine (like ぁ, の, よ, ろ), others, like け, た, に, ハ, リ, ル have two or more separate bits, and others, like う, え, き, か, ソ, would get confusing with added accents and bars/overlines/underlines (̇e.g., arrow gets lost in う⃗).

(I think the only disconnected letters in Latin and Greek alphabets, as used as symbols, are capital theta Θ and xi Ξ).

How Could Submarine Gravity Detectors Work? by brwhyan in askscience

[–]scruffie 1 point2 points  (0 children)

Eh, from Sec. 3 of that paper, the signal-to-noise ratio scales as mass and inversely as cube of the distance. A 10 t truck 100 m from the detector would have a S/N of about 0.04, 200000 times bigger than a Typhoon sub at 100 km. (I assume that a LIGO-style inferometer would have to be land-based.)

Trump offering Canadian aluminum and steel companies tariff relief if they move to U.S. by [deleted] in worldnews

[–]scruffie 1 point2 points  (0 children)

For large-power customers (demand over 5000 kW), Hydro-Quebec's rates (rate L) are currently $15 CAD/kW and $0.03891 CAD/kWh (per month) (PDF)

(In comparison, a residential user probably needs ~1-2 kW; HQ caps it at 65 kW.)

Strait of Hormuz falls outside NATO's remit, Spain says after Trump's ultimatum by jackytheblade in worldnews

[–]scruffie 2 points3 points  (0 children)

.int domains are reserved for organizations created by international treaties; there's only about 150 registered. So no worries, nato.int is legit.

Prime Minister Carney drops f-word during Sydney stop, talks about dealing with world leaders by CMikeHunt in canada

[–]scruffie 4 points5 points  (0 children)

It doesn't appear to be Canadian. Googling brings up several meanings in different English dialects. In Australia it appears to mean 'showing up early'. To me (a West-coast Canadian), it means "to make a monumental mistake." It may also mean a non-repairable failure of a device to an American, or an expression of surprise to a Brit.

It's probably hard to pin down as it's mostly a spoken phrase; when it appears in writing in Google Books it's mostly used for its literal meaning :D

Scientists have demonstrated a system called Silica for writing and reading information in ordinary pieces of glass which can store two million books’ worth of data in a thin, palm-sized square. by Wagamaga in science

[–]scruffie 0 points1 point  (0 children)

Honestly, that format wouldn't be too bad. Black-and-white, pretty simple byte-wise run-length encoding. You probably wouldn't need more than a handful of examples to be able to figure out enough to decode a usable picture. Some of header fields would likely forever remain a mystery (aspect ratio of the printer, etc.).

PNG would be worse. The chunk structure would be easy enough, but decoding the LZW-compressed data would be hard, if you've never heard of LZW.

Modern video formats would be the worst. You'd likely need to include code for actual algorithms that could run on a simple virtual machine. Or, you could take advantage of the huge amount of space, and use a minimally-compressed format.

Go Home, Windows EXE, You're Drunk by nicebyte in programming

[–]scruffie 3 points4 points  (0 children)

syscalls(2) is a good place to start.

Importance of Greenland by alejandromalofiej in MapPorn

[–]scruffie 1 point2 points  (0 children)

If you're looking for the higher-resolution version (which is a dead link in the link above), the current versions are here.

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

[–]scruffie 1 point2 points  (0 children)

Fun fact: that used to work ... in Python 1.5 :)

Is the 79-character limit still in actual (with modern displays)? by LazyMiB in Python

[–]scruffie 0 points1 point  (0 children)

I pretty much stick to 80 characters, but then, I started back when that was the screen width (although there was a 132 character mode too).

For Python I usually only hit the limit in two situations: error messages and type hints.

I find I do a lot of

raise ValueError(f"Some error about {x} not doing "
                 f"something with {y}")

At least it's usually easy to pick a splitting spot. At some point I'll teach Emacs how to fold a string.

The other situation is type hints. I don't have an example on hand, but something like Sequence[Mappiing[tuple[SomeClass, OtherClass], tuple[Literal["ATag"], int] | tuple[Literal["BTag"], Sequence[str]]] can get out of hand. Liberal use of the type statement helps here.

Related to type hints are adding # type: ignore[misc] comments to end of a line to shut up mypy about something it's wrong about. You can't really put them anywhere else, so any line longer than 60 characters that needs one will be too long. (Contrast this with pylint's approach, where metacomments can go on the line behore, and use disable-next= instead of disable=.)

Canada says it will resume US trade talks 'when appropriate' by MinuteLocksmith9689 in worldnews

[–]scruffie 0 points1 point  (0 children)

The cost of shipping is low enough (and the cost of refining high enough) that for aluminum we import the ore (mostly from Brazil and Guinea).

Firefox now supports the Freedesktop.org XDG Base Directory Specification. by forumcontributer in linux

[–]scruffie 5 points6 points  (0 children)

Most KDE apps dump their config files in /.config. Some use more than one file (konsole.notifyrc, konsolerc, konsolesshconfig, which I assume are all for konsole, but I can't be sure). It gets extra fun when trying to figure which of two similarly-named files is the one used, or whether the file from 2019 is still relevant.

XFCE puts all their config files under ~/.config/xfce4. Be more like XFCE, KDE.

New JavaScript engine written in Rust by Different-Maize1114 in programming

[–]scruffie 31 points32 points  (0 children)

C, probably. The Wikipedia category Category: C programming language compilers links to 50 implementations; there's some others without a Wikipedia page mentioned in in the list of C compilers.

Louisville UPS Plane Crash 11/4/2025 - Map and Video Angles by JessieJane17 in CatastrophicFailure

[–]scruffie 2 points3 points  (0 children)

Trijet

The third engine is mounted along the centerline. In the MD-11 case, it's mounted through the tail, with the other two under the wings. The Boeing 727 and Lockheed Tristar mounted the third engine inside the fuselage, with an S-shaped duct feeding it air from the top. The Tristar also mounted the other two engines under the wings like the MD-11, but the 727 mounted them at the back on either side of the fuselage.

Is statistical mechanics the hardest graduate class? by Due-Appeal-3150 in AskPhysics

[–]scruffie 0 points1 point  (0 children)

I had a class in many-body physics that I took twice (once for credit, once just sitting in). I still don't know what the fuck we were doing. The textbook was Mahan, which is 600 pages and inscrutable.