Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "wren"
-
I discovered a language I didn't know AND i like.
It's not under active development anymore, but I decide it has a nice syntax. It's made by the writer of craftinginterpreters. There are still people writing some extensions for it.
I decided to implement socket support in it.
That went very well and the result is just BEAUTIFUL. But now, i have a collection of socket functions that require a file descriptor (sock) for every function like write, read and close. We're not living in the 90's. I want to do sock.send(), sock.write() and sock.close(). So socket as an object.
I wrote a wrapper and it is freaking TWO times slower! Hows that even possible.
I've made wrapping to object optional now. Bit disappointing.
The language shows off with benchmarks on their page. Their fibers can even be faster than Elixr. Yeah, if you only use the fiber and nothing else from language. I benchmarked string concat for example against python: 1000 times slower or so.
The source code of wren is so freaking beautiful. Before Lua was my favorite language regarding source. The extensibility is so great that I prefer to work on this one instead of my own language. They kinda made exactly what I wanted. I can't beat that.
For if you're interested: https://wren.io/
The slot way of communicating between host language (C) and child language (wren) seems odd at beginning but i became fan of it.
Thanks for listening to my ted talk.
What's your opinion about wren (syntax)?24 -
@jonathands was so nice to share coupons from WarpCLI and I gave it a try.
The system did literally exactly what I wanted. I just wanted to convert my `r` from c to Python.
That was quite the project, but it was all done within a hour. I still have to test a bit better though,
but if I look at the README.md it seems that it really found every functionallity it has. Readline support and stuff,
--stdin flag, a flag not to highlight, support for multiple LLM's etc.
While this was just for fun, see here details about how much the tool achieved in around a hour and how the colab went:
https://retoor.molodetz.nl/retoor/...
And it's cool that you can convert a whole project with your free coupon.
See https://retoor.molodetz.nl/retoor/... for the functionallity of this app.
WarpCLI vibe tool formatted another vibe tool, much older than him. But r was always ment to be small / a real tool.
WarpCLI comes with very sophisticated well listening model.
I actually have more that I want to convert. I wonder how good it is in wren :P
But a tool like this, that's probably how my future will look like as a programmer.
I mean, we just converted a few weeks work in a hour or so.
* AI hate incomming *
Oh, regarding privacy, they have network log, you can see precisely what is communicated to the server. It did read my bash history where i was a bit mad about but it does not seem that he sent it. Also he did not collect my env-file it seems. Still, will update everything tonight.3 -
I'm asking for your help, once again, because I couldn't find any similar problem online.
I've written this neat thingy here, in Go
https://github.com/thosebeans/wento
And i try to integrate the wren-interpreter with it (is written in C).
All compiles and works, but I can't print to Stdout from the C-Code.
Any of you know what could cause this?1 -
Hello anyone with an idea how I can unsubscribe my email from many services at once? It seems Google doesn't have that feature that lets you see all your email subscriptions. I'm receiving a lot of junk and spam mails from some subscriptions I no longer want.
Unroll.me would have been great but it's not available in my country.15