So for a long time I found LISP elegant but I found the syntax infuriating. Then I made my own LISP variant with semi-significant whitespace and helper syntax— each line (up to whitespace or comma) is wrapped in an implicit (), a : wraps a () to the end of the line, a {} wraps its interior in (lambda), a [] wraps its contents in (list ), "x.y" becomes "get x y". Suddenly, I found it usable!
I wonder if I could just make an editor that applies these rules implicitly, and then I could use GUIX.
EDIT: Wait, I think this sample code might be a bit out of date… this is from before the language had a "while" builtin, so it defines a "while" operation in terms of "if".
It just this second occurred to me to draw a connection between "Generative AI" and "Liquid Glass" as two technologies which have the effect of making everything appear to be covered in a thin layer of slime
The problem with ditching services like Discord or Google Docs or Dropbox isn't me, I'm happy to do it. It's everyones I need to work with. They aren't going to join my self-hosted service just to exchange work files or chat, etc. I've tried.
Two photos of a group of men. The first photo is labeled "We are replacing our support discord" and the men are excited and happy. The second photo is labeled "With Zulip." The men are stonefaced and unimpressed.
The worst/most Ruby-like thing about Rocket is when you return a value from a Route function, you just kinda return… whatever datatype you want, and Rocket figures it out.
Unless it doesn't, and you have no idea what to return.
For a string, you return a String.
What do I return for bytes? It's not a string, it's a &[u8; 1335895] and it's not valid UTF-8. Do I return a rocket::response::ByteStream? That seems to be the correct answer but doesn't work
error[E0277]: the trait bound `&[u8; 1335895]: Stream` is not satisfied
--> server/src/pages.rs:33:1
|
33 | pub async fn get_wasm_2() -> Result<(ContentType, ByteStream![&'static [u8]]), Status> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Stream` is not implemented for `&[u8; 1335895]`
|
In the docs, ByteStream has a generic argument. However the generic argument's meaning is not documented (it's just "S"). The documentation appears to suggest, rather than filling in this S, using a macro. The macro is not doing what I expect. https://api.rocket.rs/v0.5/rocket/response/stream/struct.ByteStream
I can't tell if Rocket has a specific place to go ask for support requests, unless it's the general Rust programming discord, or here.
Update: .to_slice() was the magic solution. I need to remember to put this in my "things to try at random when Rust isn't working" along with typing <'_>.
It's not that I dislike systemd— actually I like systemd, in that it's better than the things it replaced— but what's freaky as hell to me is we have a situation where due to LKML being either underresourced or uninterested in anything outside the very narrow scope of their interests, IBM can simply decide things are going to become a permanent part of Linux, and potentially you will not be able to take them out later because the distros tightly integrated them with everything.
Anyway this is my periodic reminder to you that if you used to be into NIN but fell off after "with teeth"/"year zero":
You really, really want to locate the "Not the Actual Events" / "Add Violence" / "Bad Witch" 2016-2018 EP trio, and just listen to all three in one go as if it's a 3-disc album (I have them set up as one playlist called "Not Violent Witch").
This run of music was incredible, career high, and it's deeply haunted by Reznor's personal friendships with Davids Lynch and Bowie
There's a track in the EP trio that exists solely because Reznor was trying to make a song David Lynch would like. Lynch asked if Reznor would appear in one of the musical segments in Twin Peaks The Return and Reznor was like sure how about we play this new song I'm working on? And Lynch was not ehh this isn't really the vibe… and so Reznor was like okay I have to make a song that is the vibe
"She's Gone Away" is literally designed to be a song that, if Nine Inch Nails existed in the universe of "Twin Peaks" but in the "Twin Peaks" universe Nine Inch Nails had never found mainstream popularity so in 2015 NIN was just touring with no budget playing small bars, "She's Gone Away" is the song Reznor would perform to the drinking crowd at the "Bang Bang Bar" outside the sleepy, haunted town of Twin Peaks, Washington with his wife playing the tambourine behind him. That's why it exists
Okay so it's been explained to me that actually several large chunks of the NiN library are not available digitally at all currently due to Reznor's frequent label changes and some sort of presumably temporary snafu in inter-publisher negotiations, and shamefully Tidal does not currently even have "Not the Actual Events". Copyright does not succeed at the thing our society designed copyright to do
Holy cow it's like a graph of gradually escalating Gender
Cover of the album "voices carry" by "'til tuesday". It shows two basic looking guys, a punk girl, and a fourth person who by 2020s standards is incredibly queer girl coded
Anyway the reason I roll my eyes at most of the discussion about "AI", "AGI", "the singularity", "intelligence self-improvement feedback loop" is that like, it happened, it's already happened, it's been happening, it's us. We're it.
Kurzweil talked about lusting for a machine that can make him smarter. I have that, it's a piece of paper. I can write math on a piece of paper and solve problems I can't solve in my head. I can upload all the information in the world directly into my brain (books).
People complain about Rust because there are various historically significant platforms it doesn't support but if I wanted to compile a Rust program for a platform it's not possible to compile Rust to I would just, like, do it. Like I'd just compile it to that platform. Cursed Skills Issue
I'm trying to see if I can remember what this was like. It was very, very many years ago. But if I remember right, I had cd, because that's not a command it's a shell builtin, but I no longer had ls, but I could type "echo *" and that technically would give me a file listing.
Did I ever tell you about that one time I needed to reinstall LinuxPPC, and I was going to wipe the drive anyway, so before I rebooted into the installer I tried running rm -rf * as root, just to see what would happen?
As I remember, it got as far as like /dev, and then it somehow deleted something that instantly made the system incapable of deleting files, and halted. After that I was able to cd around the system but VERY little worked
As someone who was a true devotee of FutureWave SmartSketch (which became FutureSplash Animator, which became Adobe Shockwave Flash, which became Adobe Flash, which became Adobe Animator) my sorrow is incalculable. Every day I long for software I had in the 90s which I can't find anything as good as today.
Is there anyone reading this who knows the Yew library for Rust and wants to scoop the Yew discord on the answer to this conceptual-level question?
So, I have a plan for a Yew app that acts like a chat room. I have used Yew for static server rendering, and I have used React/Preact for live rendering, but this is my first time using Yew for live rendering. I am trying to get a mental model before I start writing code of how to represent the chat, which will be a scrolling list of divs which usually appends at the end but sometimes has individual divs get blanked (if for example a user gets moderated). Reading the Yew docs, it looks like there are two options: I could have a list of keyed divs, and when i change it call use_force_update; or, i could use the immutable vector class in the Rust im crate, and pass the immutable vector root down as a prop. Which do you think would be "better"/more idiomatic?
Also: If I am doing this thing I described, of continuously adding divs to a list… the shadow dom will be diffing the whole list each time, which means it will be like O(n) on the number of messages, right? But it's a scrolling window, so only some divs are visible on screen at a time. Is there a more efficient way to do this I'm not seeing?