dedbox
2018-3-1 16:18:44

Very cool. With closures and tail recursion, this could be a JavaScript killer for me.


greg
2018-3-1 16:23:53

Well, and with GC, and any macro-expander at all much less a Racket quality one, and with…. :smile:


greg
2018-3-1 16:24:31

It’s really fun to read the code and see it work at all in a couple thousand lines.


githree
2018-3-1 16:26:15

With Racket-On-Chez wouldn’t it make it almost straight-forward to have also Racket->WebAssembly?


greg
2018-3-1 16:28:57

Yes, personally I would wait for that to use in production.


greg
2018-3-1 16:29:35

Or if I needed something today, I’d try https://github.com/vishesh/racketscript ?


greg
2018-3-1 16:31:24

Or actually if I needed something today, I’d probably just try write reasonable modern Javascript.


githree
2018-3-1 16:33:22

probably true, still the vision of full Racket in the browser is quite amazing (subject to performance ;)


dedbox
2018-3-1 16:36:17

All good options. My opinion of JS is so low because it’s been the only option in the browser for so long.


dedbox
2018-3-1 16:37:57

Not sure it’s worth the trouble anymore


greg
2018-3-1 16:39:48

I did some work using ClojureScript about a year ago and enjoyed it. The dev experience was nicer than full Clojure JVM, for me. But when I first tried ClojureScript maybe 2 or 3 years ago, it was very much duct tape and magic spells. So I think, even Racket->JS, early days maybe we should have low expectations until the tooling is matured.


githree
2018-3-1 16:41:37

The reason I would welcome Racket on the WebAssembly is mostly due to its DSL capabilities, just thinking how long it took to develop new DSLs like jquery or JSX, it makes me feel where could we be already with languages/tools like Racket


greg
2018-3-1 16:43:08

For sure, yes! I’m just saying there are many months (years?) of tedious work by many people to get to where you and I could save time like that? Hopefully I’m wrong.


githree
2018-3-1 16:45:14

it makes one appreciate the hard work by Matthew and the rest of the team on current transition


dedbox
2018-3-1 16:45:50

yearh, wish I got my head in the game earlier so I could follow the progress more directly


dedbox
2018-3-1 16:47:11

I’m probably jaded from years of pre-Racket webdev. Java got way cooler once language implementers started taking full advantage of the JVM.


githree
2018-3-1 16:49:55

to the list of current alternatives I would add: https://github.com/soegaard/urlang


notjack
2018-3-1 17:34:31

@lexi.lambda your syntax/parse bug report is the evilest thing I can imagine


lexi.lambda
2018-3-1 19:49:12

@notjack imo it makes it clear that sort of identifier munging is a bad idea, and it ought to be done at the reader level (but that isn’t practical currently)


lexi.lambda
2018-3-1 19:49:52

though, on second thought, I should temper that… I think that sort of identifier munging is not “the right thing”, but maybe it isn’t a bad idea with the current tools available


leif
2018-3-1 19:52:12

@mflatt The following file works on the old expander, but not the new one: https://gist.github.com/LeifAndersen/bf555a85203ec41761bce5b4d5046855


leif
2018-3-1 19:52:13

leif
2018-3-1 19:53:30

Or even this program: #lang racket/base (define first "Hello") (require racket/list)


leif
2018-3-1 19:53:35

Which seems like a bug to me.


mflatt
2018-3-1 20:01:41

@leif Yes, that’s a bug. I’ll look into it now.


leif
2018-3-1 20:12:55

Thanks.


zenspider
2018-3-1 21:44:16

how in the hell? google/schism is a self-hosted compiler, yet:

> As mentioned, the goal has been to prioritize features needed for self hosting. Here are some of the current restrictions: > > No lambda, no closures.


zenspider
2018-3-1 21:47:40

oh. (define (fn ...) ...) form works (but maybe doesn’t close over?)


jherman
2018-3-2 03:14:00

@zenspider it’s not a scheme it’s just a lisp 1


jherman
2018-3-2 03:14:19

@zenspider yea I know I was fooled too until I saw the features