make-a-clojure

2023-07-28T00:23:23.155669Z

@phill has joined the channel

Ingy döt Net 2023-07-28T00:24:59.083189Z

@phill wrt to set the tone, I've had this idea for some time to turn my lingy experience into a project like https://github.com/kanaka/mal/blob/master/process/guide.md but at the full Clojure language level

Ingy döt Net 2023-07-28T00:26:41.118199Z

I'd probably want to get decently deep into at least 2 platforms first but maybe with help from folks like you we can get it off the ground faster

Ingy döt Net 2023-07-28T00:27:17.758559Z

because what programming language doesn't need a Clojure platform? 😄

Ingy döt Net 2023-07-28T00:28:13.150269Z

Look at this set of mini Clojures all passing the same suite of ~900 tests https://github.com/kanaka/mal/tree/master/impls

Ingy döt Net 2023-07-28T12:20:47.878899Z

Ingy döt Net 2023-07-28T12:21:06.599749Z

Ingy döt Net 2023-07-28T12:44:57.145049Z

@slipset related to protocols for lingy

Ingy döt Net 2023-07-28T12:46:26.370219Z

It should be pretty easy for me to write a Java parser that only cared about certain parts

Ingy döt Net 2023-07-28T12:47:37.128019Z

I'll give it a try. Then we can get protocols from interfaces with it

slipset 2023-07-28T12:47:45.308059Z

I think I would’ve gone the clojurescript way and focused on implemneting defprotocol and deftype etc for lingy You’re going to nee those anyways.

Ingy döt Net 2023-07-28T12:47:47.924199Z

At least decent approximations

slipset 2023-07-28T12:48:14.084829Z

With that in place, you can “just” grab the clojurescript impls of all the immutable datastructures.

Ingy döt Net 2023-07-28T12:48:37.066309Z

I guess I don't quite get it yet

slipset 2023-07-28T12:48:54.850999Z

It’s written somewhere that if Rich were to do Clojure all over again, he’d done much more of Clojure in terms of protocols rather than Java interfaces.

slipset 2023-07-28T12:49:09.651809Z

(like it has been done with Clojurescript)

Ingy döt Net 2023-07-28T12:49:44.192259Z

ok getting it... 🙂

Ingy döt Net 2023-07-28T12:52:47.759469Z

java parser might be good for other things but if lingy supports def{protocol,type} now we can use a lot of clojurescript...

slipset 2023-07-28T12:56:28.848409Z

And it’s not a Clojure without def{protocol, type, record}

✅ 1
slipset 2023-07-28T12:26:50.886149Z

@slipset has joined the channel