Author Archives: pappp

Cowgol Development Environment Comes to Z80 and CP/M

Source: Hack a Day

Article note: The thing I like about cowgol and a bunch of the related projects is they're headed toward self-hosting environments. Simple self-hosting computers are - intellectually speaking - important for learning to reason about systems, and almost an extinct species except for actually historical systems.

Cowgol on Z80 running CP/M ties together everything needed to provide a Cowgol development environment (including C and assembler) on a Z80 running the CP/M operating system, making it easier to get up and running with a language aimed to be small, bootstrapped, and modern.

Cowgol is an experimental modern language for (very) small systems.

The Zilog Z80 was an 8-bit microprocessor common in embedded systems of the 1970s and 1980s, and CP/M was a contemporary mass-market operating system. As for Cowgol? It’s an Ada-inspired compiler toolchain and programming language aimed at very small systems, such as the Z80.

What’s different about Cowgol is that it is intended to be self-hosted on these small systems; Cowgol is written in itself, and is able to compile itself. Once one has compiled the compiler for a particular target architecture (for example, the Z80) one could then use that compiler on the target system to compile and run programs for itself.

Thankfully, there’s no need to start from scratch. The Cowgol on Z80 running CP/M repository (see the first link of this post) contains the pre-compiled binaries and guidance on using them.

Cowgol is still under development, but it works. It is a modern language well-suited to (very) small systems, and thanks to this project, getting it up and running on a Z80 running CP/M is about as easy as such things can get.

Thanks to [feinfinger] for the tip!

Posted in News | Leave a comment

BSD on Windows: things I wish I knew existed

Source: OSNews

Article note: That is a supremely weird artifact. It was a set of libraries that ran on Windows 3.1 (or later 95) and used winmem32.dll to touch real memory, which provided (most of) the interfaces to run 386 a.out BSD binaries and a unix userland. From right in the 386BSD/BSDi Lawsuit 4.3BSD era, sort of before Linux and after Coherent or Xenix as low-cost x86 unix options.

It’s 1995 and I’ve been nearly two years in the professional workspace. OS/2 is the dominant workstation product, Netware servers rule the world, and the year of the Linux desktop is going to happen any moment now. If you weren’t running OS/2, you were probably running Windows 3.1, only very few people were using that Linux thing. What would have been the prefect OS at the time would have been NT with a competent POSIX subsystem, but since we were denied that, enter Hiroshi Oota with BSD on Windows.

↫ neozeed at Virtually Fun

This is absolutely wild.

Posted in News | Leave a comment

Unveiling secrets of the ESP32: creating an open-source MAC layer

Source: Hacker News

Article note: They're getting close to understanding the stack well enough to run the ESP32 radios blob-less with all open source code. Not quite there, but it's really exciting progress, the blob has always been a little concerning on an otherwise nice and open platform.
Comments
Posted in News | Leave a comment

Study: Why a spritz of water before grinding coffee yields less waste, tastier espresso

Source: Ars Technica

Article note: Oh dang, I've tried it but thought RDT was diminishing-returns hipster voodoo. Apparently the science proves out, and the lesser static even measurably helps extraction.
Researchers demonstrate how adding a splash of water reduces static electricity when grinding coffee. Credit: University of Oregon

Scientific inspiration can strike at any time. For Christopher Hendon, a computational materials chemist at the University of Oregon, inspiration struck at a local coffee bar where his lab holds regular coffee hours for the Eugene campus community—a fitting venue since Hendon's research specialties include investigating the scientific principles behind really good coffee. The regulars included two volcanologists, Josef Dufek and Joshua Méndez Harper, who noted striking similarities between the science of coffee and plumes of volcanic ash, magma, and water. Thus, an unusual collaboration was born.

“It’s sort of like the start of a joke—a volcanologist and a coffee expert walk into a bar and then come out with a paper,” said Méndez Harper, a volcanologist at Portland State University. “But I think there are a lot more opportunities for this sort of collaboration, and there’s a lot more to know about how coffee breaks, how it flows as particles, and how it interacts with water. These investigations may help resolve parallel issues in geophysics—whether it’s landslides, volcanic eruptions, or how water percolates through soil.”

The result is a new paper published in the journal Matter demonstrating how adding a single squirt of water to coffee beans before grinding can significantly reduce the static electric charge on the resulting grounds. This, in turn, reduces clumping during brewing, yielding less waste and the strong, consistent flow needed to produce a tasty cup of espresso. Good baristas already employ the water trick; it's known as the Ross droplet technique, per Hendon. But this is the first time scientists have rigorously tested that well-known hack and measured the actual charge on different types of coffee.

Read 12 remaining paragraphs | Comments

Posted in News | Leave a comment

Beeper Mini for Android sends and receives iMessages, no Mac server required

Source: Ars Technica

Article note: ...Some high schooler reverse engineered the iMessage protocol suite and these folks are making an interoperable product out of it. It should be legally protected (reverse engineering for compatibility), but no doubt Apple is going to fuck with them. Honestly, there are protocols worse than iMessage, it'd be nice if it was an open standard, getting back to widely-used chat platforms that are interoperable instead of vendor lock-in jails is really the social value.
Beeper messages looking iMessage-like blue on an Android phone

Enlarge / A Pixel 3, messaging a savvy iPhone owner, one with the kinds of concerns Beeper hopes to resolve for its customers. (credit: Kevin Purdy)

In the past week, I have sent an iMessage to one friend from a command-line Python app and to another from a Pixel 3 Android phone.

Sending an iMessage without an Apple device isn't entirely new, but this way of doing it is. I didn't hand over my Apple credentials or log in with my Apple ID on a Mac server on some far-away rack. I put my primary SIM card in the Pixel, I installed Beeper Mini, and it sent a text message to register my number with Apple. I never gave Beeper Mini my Apple ID.

From then on, my iPhone-toting friends who sent messages to my Pixel 3 saw them as other-iPhone blue, not noticeably distracting green. We could all access the typing, delivered/read receipts, emoji reactions, and most other iPhone-to-iPhone message features. Even if I had no active Apple devices, it seems, I could have chosen to meet Apple users where they were and gain end-to-end encryption by doing so.

Read 16 remaining paragraphs | Comments

Posted in News | Leave a comment

The pandemic’s toll on schooling emerges in terrible exam results

Source: Hacker News

Article note: The wild part is still not the drop in the median performance, it's the increase in the standard deviation. The extremely self motivated kids, and the kids whose parents had the means to educate them at home when things were dysfunctional are as-good-if-not-better than normal times. The kids who just rode out the dysfunction are _fucked_. It was a massive inequality multiplier.
Comments
Posted in News | Leave a comment

Plasma Wayland Today

I was having Vulkan/Wine interaction issues when I had a minute to play a game the other night and flipped my big laptop (which has Intel/AMD Polaris12 dual graphics, both running the Mesa stack since AMD dropped Polaris support in amdvlk in the 2023.Q4 release) into a Plasma Wayland session (v5.27) to see if it helped. It did – making it the very first thing I’ve encountered that worked in Wayland and not X – so I’m rolling with the Plasma Wayland session for a couple days to see how things are. I have a little machine I’ve been playing with Hyprland on to check out the Wayland situation, and it’s been closing from “Linux 20 years ago” to “Linux 5 years ago” in terms of brokenness, so it seems plausible that one of the big two would be tolerable now.

I’m totally onboard that xf86->xorg is an unmaintainable mess for both legacy-codebase and design from a different era reasons, and it would be nice to start with something built on assumptions that match modern reality, but uh… over a decade in, Wayland is just getting to be less of a “almost a tech demo” and more of an “almost there.” If the devs can shut up about some bikeshedding that obstructs common use cases now over concerns about theoretical security issues or compatibility with yet-unimagined future interface models and implement widely-accepted solutions to the last few basic-fucking-features, it might actually matter before it too starts to exhibit wrong ancient assumptions and gets replaced, but it looks like they’ve missed the bus on a couple of those necessary standardizations.

Things I use regularly that are currently broken in KDE’s Plasma Wayland session in Nov. 2023:

  • The mere fact that I have to specify it’s a KDE Plasma session for all these details because every compositor is having to reinvent a bunch of wheels in differently-broken ways – input plumbing, session management, etc. They could have at least spun some reference libraries and treated anyone who didn’t use them when building desktop-like interfaces as a second class citizen to paper over the necessary parts to build a desktop they didn’t want in the core protocol (and for some of them someone else did it; see PipeWire). Wayland’s entire development process is built around former X devs being exceptionally gunshy about maintenance and attempting to avoid having any meaningful implementation under their auspices, and it’s causing a lot of goofy decisions. wlroots was too little too late.
  • KeepassXC can’t do its autotype into last active window thing.
    • Relevant Bug
    • Because Wayland completely abdicated on input plumbing and programmatic window selection. It even sort-of works between xwayland windows because X is a feature-complete desktop protocol and Wayland isn’t.
    • I use this ALL THE TIME and it drives me CRAZY. Browser extensions are not a comparable solution, I auto-type credentials into all kinds of windows.
    • They finally accepted ext-foreign-toplevel-list so the plumbing for window selection is theoretically there… but I don’t think any compositors implement it yet.
    • The pipe-input-to-a-specifc-window shit is still being bikeshedded over mostly-irrelevant security concerns. Maybe maybe the ever-contended global hotkeys stuff in xdg-destop-portal will make it possible, but since every compositor has sprung a bespoke portal variant, even that may not comprise a global solution, and it’s not entirely clear it’ll work for piping arbitrary strings anyway.
  • Everything restores to a random virtual desktop, if it restores at all.
    • KDE Bug for sessionrestore and also xwayland session restore
    • I think only the xwayland windows are restoring because, refrain, X11+extensions is actually a complete desktop protocol and Wayland still isn’t.
    • There’s no generic solution, and gnome spun their own internal bullshit which seems to be further sandbagging a general solution.
    • KDE is thus also spinning their own internal bullshit, so everything will be broken forever.
    • This is like basic 90s shit being fundamentally bobbled.
  • Firefox PiP windows
  • The “Move to Screen” context menu item in the task switcher seems to have vanished? I can still do “Move” and scoot a program to the desired monitor and it seems to snap correctly, but sometimes fullscreen windows relocated that way jump back to the first display. Apparently it has never been available from the task manager, only the title bar right-click menu and my memory is faulty.
  • I don’t know if it’s Wayland related, but baloo has started acting up again. I’m regularly seeing baloo_file_extractor eating a whole core when it hits things like openembedded trees. It’s possible I just disabled it in my saved X session and it’s being started again because the session management carryover between X and Wayland Plasma sessions is half-working.

The whole situation is silly. It’s a gigantic shell-game of trying to outsource the solutions to problems everyone already knew needed to be solved consistently because the ICCM and EWMH stuff for X represented decades of effort to do so, by the people best situated to actually solve the problems at the time when they could be solved in a general way.

I sometimes get the feeling reading the bug trackers that many of the Wayland people are building a display layer suitable for infotainment systems, kiosks, signage, and that sort of thing, and desktop functionality is an unfortunate extra thing some people are trying to force on them – which, financially, may be the case.

Posted in Computers, General | Leave a comment

Ousted propaganda scholar accuses Harvard of bowing to Meta

Source: Hacker News

Article note: Imagine that, Zuck made a $500M donation to Harvard and they derailed and sidelined research projects and researchers looking into misinformation on Facebook. ...Frankly, that's probably an above average spend to shape research outcomes, university administrators seem pretty easy to bribe.
Comments
Posted in News | Leave a comment

The Science Fiction Infodump: Feature Not a Bug #SciFiSunday

Source: adafruit industries blog

Article note: KSR's Mars trilogy is the best example of the difference between being engaging because of detailed realistic world-building vs. of being engaging because it's a generic character drama character drama in a scifi setting. There is a lot more of the latter than the former available. It has extensive scientific exposition (much of which was proven _after_ the books came out) and political polemics and... they're good reading.

Sometimes when you’re reading a big scifi tome, you come to a passage that seems more about getting across the science or scientific advances that are essential to the book. Some folks call it an infodump, and consider it bad writing. Good writing, we are told, involves characters doing stuff. What others call infodumps, legendary science fiction writer Kim Stanley Robinson doesn’t just calls writing. Here’s what Robinson has to say, from more the Outspoken Authors book The Lucky Strike:

No, not a compliment. I reject the word “infodump” categorically — that’s a smartass word out of the cyberpunks’ workshop culture, them thinking that they knew how fiction works, as if it were a tinker toy they could disassemble and label superciliously, as if they knew what they were doing. Not true in any way. I reject “expository lump” also, which is another way of saying it. All these are attacks on the idea that fiction can have any kind of writing included in it. It’s an attempt to say “fiction can only be stage business” which is a stupid position I abhor and find all too common in responses on amazon.com and the like. All these people who think they know what fiction is, where do they come from? I’ve been writing it for thirty years and I don’t know what it is, but what I do know is that the novel in particular is a very big and flexible form, and I say, or sing: Don’t fence me in!

I say, what’s interesting is whatever you can make interesting. And the world is interesting beyond our silly stage business. So “exposition” creeps in. What is it anyway? It’s just another kind of narrative. One thing I believe: it’s all narrative. Once you get out of the phone book anyway, it’s all narrative.

And here’s an exploration of the phenomenon from LitHub in the context of the work of science fiction writer Greg Egan:

It was August, and I was in the middle of a cross-country road trip. After driving all day, I would settle into my sleeping bag at night with a headlamp to read Greg Egan’s Diaspora, a road novel of sorts about the search for interstellar life. Diaspora was my first foray into the subgenre of hard science fiction. It had renewed my awareness that, as earthlings, our lives are subject to physical and chemical laws over which we exert no control—a feeling literature rarely provokes in me. Realism, after all, subordinates the physical in favor of the psychological, creating an illusory, human-centric world. Watching the earth change slowly from behind a bug-splattered windshield, I began to wonder: what does realism risk when it reduces the planet we inhabit to background noise?

See more!

Posted in News | Leave a comment

Playstation removing previously purchased Discovery content

Source: Hacker News

Article note: The entertainment media industry keeps making the case for piracy. "If paying isn't owning, piracy isn't stealing."
Comments
Posted in News | Leave a comment