News for hackers. Stuff that matters.

schemescape

Honestly, I can’t support Y Combinator (by contributing to this site) after the CEO does something like this without repercussions—song lyrics or not.

This is schemescape signing off.

Re:A Tour of Lisps on Monday January 29, 2024 @09:42PM (#39185784)
Thanks for the correction! I had only used Lua, and thought Fennel had no runtime, so I assumed this was not possible.
Re:A Tour of Lisps on Monday January 29, 2024 @09:11PM (#39185587)
Short answer: I don’t know. That sounds like a good idea, but how would that access local variables in the caller (to inspect state)?

I remember the Lua C API exposes a lot of information, but I didn’t think it was accessible from scripts. Of course, it was a long time ago and I could have easily missed something at the time. Happy to be corrected!

Edit: you might also run into difficulties trying to redefine non-global functions to add the call to “repl”.

Re:A Tour of Lisps on Monday January 29, 2024 @08:08PM (#39185100)
Last I checked, Lua was “bring your own debugger”. Assuming that hasn’t changed, a REPL is nice, but you can’t pause and inspect anything by default.
Re:A Tour of Lisps on Monday January 29, 2024 @08:04PM (#39185057)
Good list! I, too, have many complaints about Common Lisp.

But for a language whose standard hasn’t been updated in roughly 30 years, it holds up impressively well!

Re:Oasis – a small, statically-linked Linux system on Friday January 26, 2024 @05:57PM (#39149962)
Thanks! Most of those seem like a fair trade-off for portability… for an app.

I’m not sure it’s a great idea for an OS as in the OP, but I do like that they claim accurate incremental rebuilds, to ensure everything get updated. Certainly an interesting experiment!

Edit: just to clarify, I meant "app" as in "something that isn't part of the OS/distribution".

Re:Oasis – a small, statically-linked Linux system on Friday January 26, 2024 @02:37PM (#39147083)
What are the quirks of static linking you need to work around (in general, not for glibc)?
Re:Oasis – a small, statically-linked Linux system on Friday January 26, 2024 @11:25AM (#39144428)
Does anyone know how big the base installation is? I couldn't find an answer anywhere, and the link to the QEMU image appears to be broken, currently.

I'm curious how it compares to, say, Alpine with a similar set of packages.

Maybe not all pages are reachable from the root.
Re:Common Lisp's Block / Return-From and Unwind-Protect on Monday January 22, 2024 @04:13PM (#39095550)
If you end up starting a blog, please share it on HN so I can find it :)
Re:Ask HN: Any way to write a simple desktop app anymore? on Sunday January 21, 2024 @11:41AM (#39080027)
Do you have any programming language or UI toolkit preference? That will likely scope your options.

If it's just for you, you could use something simple like Tk (e.g. Python + Tkinter).

Re:Teslas crash more than gas-powered cars. Here's why on Thursday January 18, 2024 @08:23PM (#39050482)
It sounds like how the pedals react and one-pedal driving are the reasons they suspect? I was expecting touchscreen-only controls to be mentioned, but for all I know new ICE vehicles are like that too.
Re:A 2024 Plea for Lean Software (with running code) on Thursday January 18, 2024 @08:05PM (#39050343)
What are some current examples of lean software, esp. related to developing and deploying software?

i3? SourceHut? QuickJS? Edit: BusyBox!

I know it’s an open-ended question, but I’m curious to see thoughts from others.

For context, possibly in reaction to porting an app via Electron, I’ve been trying to repent by finding a minimal development environment for hobby projects. I’m not sure it qualifies as “lean”, but Emacs and SBCL strike a nice balance for me right now.

> apt update fetches packages from Chinese server

So is it not official Debian? If so, that’s concerning!

Re:We Executed a Critical Supply Chain Attack on PyTorch on Sunday January 14, 2024 @10:49PM (#38997259)
Thanks, that makes more sense than automatically granting privileges. It definitely seems easy to mix up those two terms, however!
Re:Penrose – Penrose on Sunday January 14, 2024 @10:42PM (#38997228)
Looks like that depends on the “canvas” package, which appears to use Cairo/Pango for text, similar to Graphviz.

This is great! I wanted something I could compile (the native code) to WebAssembly for use in a Deno-based SSG, and this looks promising.

Re:Penrose – Penrose on Sunday January 14, 2024 @08:32PM (#38996374)
Does this require a browser (or browser engine) for rendering (like Mermaid.js)? Or can it render (esp. to SVG) without a browser (like Graphviz)?

Penrose appears to be written in TypeScript, so my assumption is that it needs a browser.

Re:We Executed a Critical Supply Chain Attack on PyTorch on Sunday January 14, 2024 @07:24PM (#38995946)
> I really don't like this aspect of GitHub that people who have submitted a typo fix gain additional privileges on the repo by default.

What privileges do they gain? Anything other than the one you mentioned?

This was definitely not obvious to me, so thanks for bringing it up!

How paranoid should I be about routers from companies like Cudy that I’m not familiar with? My intuition is “very paranoid, even if I replace the firmware with OpenWRT”.

Am I being too paranoid?

Re:Show HN: A Game for Developers. Can you beat it? on Friday January 12, 2024 @10:26AM (#38969130)
Is it just Safari or are the “turn left” and “turn right” icons nearly identical?
Re:Spot Bitcoin ETF receives official approval from the SEC on Wednesday January 10, 2024 @04:41PM (#38943625)
In the hypothetical case that a Bitcoin ETF gets hacked and its wallet(s) emptied, what happens? Is it any different from, say, a gold ETF having its physical gold stolen?
Re:Turing Complete is a game about computer science on Wednesday January 10, 2024 @03:33PM (#38942692)
Is anyone able to contrast NAND Game and MHRD? They sound very similar.
Re:Turing Complete is a game about computer science on Wednesday January 10, 2024 @02:20PM (#38942033)
> If you don't actually enjoy the the electronics part so much and just enjoy the psuedo-assembly aspect, then I'd recommend TIS100 or Shenzhen I/O.

(Shameless self-promotion, but I think it's relevant here...)

And if you've already beaten TIS-100, but would like an even more tedious assembly language experience, I put a (free) single-instruction (subleq) game on Steam: SIC-1

https://store.steampowered.com/app/2124440/SIC1/

Re:Missing the Point of WebAssembly on Tuesday January 09, 2024 @04:30PM (#38932377)
I saw you mention this in a previous post, but I can’t find an example. Do you have one handy? What are the limitations?

Edit: is this it? https://www.spritely.institute/news/building-interactive-web...

Edit again: apparently I had seen this before, since I upvoted its HN submission. Oops! https://news.ycombinator.com/item?id=38477602

Re:Python 3.13 Gets a JIT on Tuesday January 09, 2024 @11:02AM (#38927620)
Does the benchmark suite track memory usage and disk space?

I’m sure “industrial” uses of Python will happily trade those for speed, but sometimes I prefer the small size/low resource usage of an interpreter, so I’m curious about the impact there.

Re:Simple Lasts Longer on Tuesday January 09, 2024 @10:27AM (#38927206)
Local Storage falls apart on iPad/iPhone, unfortunately. The data is deleted if you don’t visit the site often enough. I lost my Wordle stats over a vacation this way.

Even worse, if you have an HTML game hosted on itch.io (which uses a cross-domain iframe, for security), Safari just silently discards all Local Storage when you close the tab, with no option to disable this behavior on a specific site.

I know Local Storage is supposed to be just a cache, but I really wish we had opt-in durable storage…

Is there a document describing the architecture and security model?

Edit: There's an image that mentions WebSockets. Is it using the same one-time token approach to security as NeutralinoJS[1]?

[1] https://neutralino.js.org/docs/contributing/security/

Re:LuaX: A Lua Dialect with JSX on Sunday December 31, 2023 @05:04PM (#38827909)
Is that because you want presentation to be separated? Or some other reason?
Re:LuaX: A Lua Dialect with JSX on Sunday December 31, 2023 @05:03PM (#38827894)
> The problem is that no preprocessor-style template language actually allows you to manipulate the HTML as data.

Lisp works great for this sort of thing.

Re:Lapce: Fast and Powerful Code Editor Written in Rust on Thursday December 28, 2023 @04:41PM (#38799047)
Right, I just meant it wouldn’t hang the UI (as the parent comment seemed to imply).

Older »