News for hackers. Stuff that matters.

tonyg

Re:Smolts: A pedagogical IDE for a teaching language on Saturday September 12, 2026 @11:55AM (#49673650)
Wellll not two years, no, a couple-few weeks of initial work and then, embarrassingly, it sat idle for two years. As to why: at least in part because one of the best ways to learn is to do.
Re:Smolts: A pedagogical IDE for a teaching language on Saturday September 12, 2026 @11:53AM (#49673624)
This looks great!
Re:Smolts: A pedagogical IDE for a teaching language on Saturday September 12, 2026 @11:52AM (#49673612)
Thanks so much!
Re:Chicken Scheme 6.0 on Tuesday August 11, 2026 @07:21AM (#49256443)
In many benchmarks, Racket is significantly faster than many other Scheme implementations, including Chicken: https://ecraven.github.io/r7rs-benchmarks/ This is because it is now based on Chez.

It is certainly not compact, though.

Re:Show HN: Wyzer Programming Language on Friday August 07, 2026 @03:05PM (#49214935)
New? It stretches back industrially to the WS-* stuff in the early 00s (this is where the term originated), and on the academic side has roots in process calculi from the 90s and session types from the late 00s and early 10s.
Re:TSON – A JSON superset with immutable, hash-pinned schemas on Wednesday August 05, 2026 @10:49AM (#49183787)
Absolute slop. Interesting that the end result, the place where Claude ended up, is similar to a (human-authored, windmill-tilting) project of mine, https://preserves.dev/ . Though with a much prettier website and far, far, far more words.
Re:Regular expressions that work "everywhere" on Sunday June 28, 2026 @04:12AM (#48705391)
That's one of the reasons RFC 9485, "I-Regexp: An Interoperable Regular Expression Format", is important.

https://datatracker.ietf.org/doc/html/rfc9485

Re: on Thursday February 19, 2026 @03:27AM (#47071323)
*Mitchell Wand
Re:Stop Designing Languages. Write Libraries Instead (2016) on Wednesday January 07, 2026 @08:04AM (#46525948)
I will not. I refuse
Re:Cap'n Web: a new RPC system for browsers and web servers on Monday September 22, 2025 @02:20PM (#45337414)
Is .map specialcased or do user functions accepting callbacks work the same way? Because you could do the Scott-Mogensen thing of #ifTrue:ifFalse: if so, dualizing the control-flow decision making, offering a menu of choices/continuations.
(1998). Java existed, but neither Scala nor Java-with-generics did.

From the conclusion:

"We have presented a programming protocol, Extensible Visitor, that can be used to construct systems with extensible recursive data domains and toolkits. It is a novel combination of the functional and object-oriented programming styles that draws on the strengths of each. The object-oriented style is essential to achieve extensibility along the data dimension, yet tools are organized in a functional fashion, enabling extensibility in the functional dimension. Systems based on the Extensible Visitor can be extended without modification to existing code or recompilation (which is an increasingly important concern)."

I don't think that's right - IIRC it used to be possible to write out a file, if loaded from a file:// URL, directly from JavaScript. Then that ability got nobbled because security (justifiable) without properly thinking through a good alternative (not justifiable). I mourn the loss of the ability, TiddlyWiki was in a class of its own and there should have been many more systems inspired by its design. Alas.

ETA: Wikipedia has reminded me the feature was called UniversalXPConnect, and it was a Firefox thing and wasn't cross-browser. It still sucks that it was removed without sensible replacement.

Re:Please Commit More Blatant Academic Fraud on Friday February 21, 2025 @03:57AM (#43125513)
> Undermining the credibility of computer science research is the best possible outcome for the field, since the institution in its current form does not deserve the credibility that it has.

Horseshit. This might be true for AI research (and even there that's an awfully broad brush you're using, mate), but it's certainly not true for other areas of computer science.

> Static analysis can tell what forms are invoking an fexpr and which are function calls. It's not got different from knowing which are macros. That problem can be solved.

I don't think this is the case. Consider Kernel's

  ($lambda (f) (f (+ 3 4)))
Is `f` a fexpr or a closure? We cannot know until runtime.
Re:Preserves: An Expressive Data Language on Friday January 31, 2025 @04:02PM (#42891949)
There are no string keys in the Person example above. You could add some, though, or use numbers instead with the same host-language API:

  Person = <person @name String @address Address>
as above, or

  Person = <person {
    @name "name": String
    @address "address": Address
  }>
or

  Person = {
    @name 1: String
    @address 2: Address
  }
etc. all produce the same host-language record, e.g. in TypeScript

  export type Person = {
    name: String,
    address: Address,
  };
Re:Preserves: An Expressive Data Language on Thursday January 30, 2025 @07:59AM (#42877314)
Thank you! I wonder if something a bit contrived such as small-caps could help. I'll experiment.
Re:Preserves: An Expressive Data Language on Thursday January 30, 2025 @03:40AM (#42876067)
Date and datetime are left to convention: https://preserves.dev/conventions.html#dates-and-times

Decimals I'm on the fence about. Some discussion here: https://gitlab.com/preserves/preserves/-/issues/10

Re:Preserves: An Expressive Data Language on Thursday January 30, 2025 @03:39AM (#42876058)
Yeah I struggle with "Preserve" vs "Preserves" sometimes. Was there something in particular that struck you as unfortunate, though?
Re:Preserves: An Expressive Data Language on Thursday January 30, 2025 @03:38AM (#42876057)
XML would make a fine choice. It lacks atomic data types other than text, and compound data types other than sequences, unless you count element attributes, which are in a kind of awkward position because of the historical development of the language. Preserves has a richer suite of primitive data types and decomposes XML's elements into separate notions of map, sequence, and tagged value.
Re:Preserves: An Expressive Data Language on Thursday January 30, 2025 @03:07AM (#42875911)
Thanks. Yes there are: see sections 15, 16 and 17 of https://synit.org/book/, where Preserves, Preserves Schemas, and the Syndicated Actor Model make a reactive replacement system layer for linux (essentially an alternative to systemd)
Re:Preserves: An Expressive Data Language on Thursday January 30, 2025 @03:05AM (#42875898)
The version number is the schema language version, not the version of the collection of types described in the file.

The schema language is extensible/evolvable in that pattern matching ignores extra entries in a sequence and extra key/value pairs in a dictionary. So you could have a "version 1" of a schema with

  Person = <person @name String> .
and a "version 2" with

  Person = @v2 <person @name String @address Address>
         / @v1 <person @name String> .
Then, Person.v2 from "version 2" would be parseable by Person from "version 1", and Person from "version 1" would parse using "version 2" as a Person.v1.

The schema language is in production but the design is still a work in progress and I expect more changes before a 1.0 release of the schema language.

(The schema language is completely separate from the preserves data model, by the way -- one could imagine other schema languages being used instead/as well)

Re:Preserves: An Expressive Data Language on Wednesday January 29, 2025 @10:39AM (#42866228)
Yeah EDN is quite similar. Preserves has no nil, allows any value as a tag, gets into the weeds more on when strings are equal or not, doesn't distinguish lists and vectors, and doesn't require each kind of tagged element to define an equivalence. And it has annotations (vs EDN's comments) and embedded values.
Re:Preserves: An Expressive Data Language on Wednesday January 29, 2025 @10:21AM (#42865958)
https://gitlab.com/preserves/preserves/-/blob/main/preserves... -- crude but effective! (I use it all the time)

Older »