Although now that I think of it, most native functions my interpreter calls have a single return value. Only problem would be the instruction functions I have right now that push on the stack.

Wondering whether there are portable ways (i.e without resorting to assembly) to have an interpreter actually use the stack for its stack.

Best I could come up with is using alloca() … but then native functions called would have to declare their max stack needs.

RP @brentsimmons: I learned how to do Apple events coding from Ultimate Mac Programming by @davemark! After all these years, the book is still available on Amazon. :) micro.inessential.com/2019/04/

Was ist eigentlich so das empfohlene UIKonf-Hotel? Wo steigt Ihr denn so ab? (gerne auch per DM)

Lovely, now Swift is giving me an error message before the first line of one of my source files, which is:

:0: error: ‘required’ initializer ‘init(arrayLiteral:)’ must be provided by subclass of ‘NSSet’

I’m not subclassing NSSet.

Any of you know sample code for making an NSTextView do custom drawing/measuring for an app-defined text style? I.e. I have a range of text “popup names: a, b, c” that I’ve styled with “ULIPopupStyle” and I could tell it “this is 200pt wide and draw a popup menu control there”.

Watching this bit from @jamesdempsey's talk on WebObjects (youtu.be/RDHo7Z6Xc4I?t=1290) and suddenly wondering what WebObjects used to render its web page?

This was before Safari and WebKit, after all ... and can't have been OmniWeb because it was from Apple.

Was this HTMLRendering.framework as used in Help Viewer? I always thought that was originally from Carbon/OS9 ?

Wasn’t aware there was an online version of the visual programming environment for the Scratch programming language available: scratch.mit.edu/projects/edito

BTW — not sure if I‘ve made these two recommendations yet:

If you like point and click adventures, play Trüberbrook.

If you like Marvel movies or 80ies scifi, watch Captain Marvel.

‘nuff said.

RT @vladsavov@twitter.com

For a long time I've wondered what I find so alluring and strangely human about Japanese urban scenes, and then someone tweeted it: Japan doesn't have on-street parking. twitter.com/japanfolder/status

🐦🔗: twitter.com/vladsavov/status/1

good morning. props to Java developers for having such a good sense of humour about their, quite frankly, horrifying language

Just came to the sudden realization that the “look and feel”of old HyperCard is basically “System 6, but double-buffered”.

And now arriving: Sardukar
We gonna see just how hard you are
When I will send you all torn apart
Piece by piece back to the emperor

I’m the duke Paul Atreides
My Fremen’n me can sashay with ease
And now you Harkonnens should bend your knees
Cos else my Kris knife will bring you peace.

Is there a way to get JSONEncoder in Swift to format the output JSON more like normal JSON? It puts spaces to the left of “:” characters, and shows empty arrays with an empty line between the square brackets.

Or is there a drop-in replacement that gives more formatting control?

And yes, I’m aware that range-loops and for(in) and whatever else should obviate the need for loop counters in Swift in most cases, but walking certain data structures still requires it, and there the “shouldn’t this be a ‘let’?” warning helps.

Swift’s insistence on reminding me to change a var into a let has reminded me so often that I forgot to update a loop counter, it’s not even funny anymore.

Show more
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!

We adhere to an adapted version of the TootCat Code of Conduct and follow the Toot Café list of blocked instances. Ash is the admin and is supported by Fuzzface, Brian!, and Daniel Glus as moderators.

Hosting costs are largely covered by our generous supporters on Patreon – thanks for all the help!