Better HN
topnewbestaskshowjobs
Log inSign up

superdisk

1,626 karma · joined Jun 7, 2018 (8y ago) · 350 submissions

https://nickfa.ro
Submissions

comment 1y ago · link · parent

For what it's worth they do call it out in the manual as a common thing to do: https://git-scm.com/book/ms/v2/Git-on-the-Server-The-Protoco...

Granted I've never tried it so take it with a grain of salt.

comment 1y ago · link · parent

If you do it over NFS or whatever then you can collaborate as well.

comment 1y ago · link · parent

I use Swift at my job, and all I can say is anecdotally we've had a ton of problems with memory safety.

- Swift has a feature where you can unwrap a nullable which is basically just unusable, as it completely crashes the entire program if it fails, with no way for you to gracefully handle it or present a message to the user. And it's a massive footgun, since it has such convenient syntax that makes it seem like it should be used. But no, you have to avoid to like the plague.

- There are some Apple APIs where they just disregard their own types, and pass nil to your callback where the type says it's non nullable. This means if you access the var at all, crash.

- Concurrent access of dictionary, crash. And very hard to track down why as well since it can be very intermittent; in our case we were using an asynchronous dispatch queue instead of a sync one, so a single keyword. Oops!

- Stack overflow, crash.

- This isn't really Swift's fault, but in general every single macOS API is riddled with bugs and undocumented behavior. As a matter of fact, I would venture to say that almost every macOS API is virtually undocumented, either since there is literally no documentation or the existing documentation is just names of functions and occasionally an extremely out of date sample app.

So IMO it's about as memory safe as C. We're floating around the idea of just porting everything to Rust and moving on, haven't researched or committed to it yet though.

comment 1y ago · link · parent

Swift is a ridiculously far cry from a memory safe language.

95.

The War Against Indiscipline(en.wikipedia.org ↗)

5 points · by superdisk · 1y ago · discuss

comment 1y ago · link · parent

This was the standard of South Africa as well not too long ago. I was just musing that it's funny how quick you get acclimated to complete dysfunction.

comment 1y ago · link · parent

Kind of funny that this warrants a news article. I've been living in South Africa for the last couple years and this is basically just normal. The municipality just doesn't pay the water bill, so we don't have water half the time. What everyone does is install a giant tank and pump at their house so they can shower when the water is out. How quickly you get used to it...

comment 1y ago · link · parent

You can tell it's fake by the LinkedIn-y prose, which is always short sentences followed by a "mic drop moment."

comment 1y ago · link · parent

Tangential but I was surprised to see that tree(1), at least the popular implementation, is made in Terre Haute (which is where I'm from). Maybe I should invite the author for lunch or something :)

comment 1y ago · link · parent

Cool, I wish this article was available when I made my custom cartridge design :)

For my game Cubeat[0], I put an OPL3-L chip on the cartridge connected to the GB's otherwise unused audio-in pin, which allows for FM music in the game. For the MBC logic I just used a bunch of 7400 discrete logic chips. I'm hoping to finish this thing and get it published at some point since I think it's going to be a really cool little parlor trick for the GB.

[0] https://nickfa.ro/wiki/Cubeat

comment 1y ago · link · parent

Nice, last time I used this it was actually written in Crystal. I used it at the time to render VGM files, very handy and fast. Author is nice and responsive as well, I reported an odd issue with a VGM I had and she responded quickly.

comment 1y ago · link · parent

Cool stuff for sure, I've been brainstorming making a language that has some of the same characteristics as Jank. I'm jelly that you took the opportunity to work full time on this for a year, wish I could do the same!

comment 1y ago · link · parent

Whole site is a goldmine of interesting stuff. Thanks for the link!

comment 1y ago · link · parent

Pretty wild, I've been collecting a few ideas myself about a "dream language" + runtime that I eventually want to make for myself, and it shares a lot of characteristics with this. Looks really cool.

comment 1y ago · link · parent

It always blew my mind that "dependency injection" is this big brouhaha and warrants making frameworks, when dynamic vars in Lisp basically accomplish the same task without any fanfare or glory.

comment 1y ago · link · parent

I think Go will do it, but I indeed enjoy Free Pascal for this as well. It's also nearly trivial to set up cross compilation using FPCUpDeluxe, so I've shipped applications to clients on Windows when I do all development and compiling on GNU/Linux.

comment 1y ago · link · parent

From experience I've found that Prolog excels at anything to do with parsing. The one thing I miss in every other language is DCGs especially, and any time I need to write a personal script that reads and writes some file format, I always use Prolog because then I can just write the code once and get both modalities for free :)

When I finally get around to making my own perfect language I'll have to figure out how to crowbar backtracking and DCGs in somehow.

comment 1y ago · link · parent

Hey, my little webassembly demo was linked, cool. Nice article!

comment 1y ago · link · parent

Hacking isn't just about computer programming, you could call it a philosophy.

comment 1y ago · link · parent

Yep, that's it. The host is (for the most part) fine, but there's either some problem with httpd or the PHP worker pool where it just dies after some number of requests.

comment 1y ago · link · parent

I just restarted the webserver. It's running on OpenBSD HTTPd + MediaWiki + SQLite, and keeping it up has been a perpetual thorn in my side. Oh well. I need to figure out some alternative setup probably.

112.

OCRing Music from YouTube with Common Lisp(nickfa.ro ↗)

63 points · by superdisk · 1y ago · 18 comments

comment 1y ago · link · parent

Algol 68 actually isn't too bad of a language to work with, and there's a modern interpreter easily available. Unfortunately it lacks all support for reading and manipulating binary data so I think a Minecraft server would be nearly impossible.

comment 1y ago · link · parent

Yeah, note that this article is from 2016. I distinctly remember during that time that these hot-swap deployments were all the rage in the Elixir community, and then fell out of fashion with time.

comment 2y ago · link · parent

I was in Bloomington for college and ordered from ClusterTruck multiple times. I did think the food was notably more fresh than other delivery services.

comment 2y ago · link · parent

Holy crud, I figured they would guard this for a long time and I was really salivating to make some stuff with it. The doors are wide open for all sorts of stuff now, Advanced Voice is the first feature since ChatGPT initially came out that really has my jaw on the floor.

comment 2y ago · link · parent

This thing is truly a technical marvel and a massive accomplishment by the developer. He works tirelessly and at one point closed out every one of the hundreds of issues filed on the repo before it's 0.6 release. The number of supported chips and interacting features is unparalleled by anything else.

comment 2y ago · link · parent

https://skeptics.stackexchange.com/questions/57326/does-ai-u...

comment 2y ago · link · parent

Great article. One question I had, not to diminish this hard work, is why not use a different implementation like ECL which is pretty portable already and can compile to static C code which can just be compiled traditionally for the target? I've been doing that for a Wasm + SDL2 game in Lisp and it's been (relatively) straightforward. I suppose performance might be a issue.
12345
12