Fork me on GitHub
#off-topic
<
2019-06-25
>
jaihindhreddy10:06:52

Which libraries in the Clojure ecosystem do I use in order to build an personalised email marketing thing? I'll need templating, ability to send and receive emails for starters.

Andrew10:06:54

Have you seen Clojure Toolbox? https://www.clojure-toolbox.com/ It's pretty handy for answering that sort of question.

👍 1
🙂 1
sveri10:06:28

I am currently looking into my options writing a similar language like clojure which translates to java and runs on the jvm. It seems like antlr is often suggested, which I used already and know how it works, I just wonder if it is limiting in some way (performance, REPL)? In general I think about what would be the fastes way to generate bytecode (parse, transpile, compile), maybe write a parser by hand? Any input welcome.

vlaaad11:06:06

I wonder why there aren't other types of browsers, not web browsers, but... different ones. An idea that recently came to my mind is having a browser that uses library coordinates as a sort of url to open, so you paste something like {criterium {:mvn/version "RELEASE"}} into address bar and it resolves deps, downloads them, assembles classpath and boots a repl or something

vlaaad11:06:00

maybe even requires and calls index.core/-main

vlaaad11:06:50

oh, I just realized why: it's a security nightmare

vlaaad11:06:42

rebl does nothing I described

hmaurer11:06:31

@vlaaad what would be the difference between this and the clj/`boot` CLI?

hmaurer11:06:15

e.g. you can do boot -d criterium repl

hmaurer11:06:20

I’m sure there is a clj equivalent

vlaaad11:06:22

mostly the difference between curl and firefox — ux

vlaaad11:06:42

yeah yeah, clj -Sdeps '{...}'

hmaurer11:06:02

well, the difference between curl and firefox is that the web has a rendering aspect; curl doesn’t render HTML; it’s pretty much unusable to browse the web.

hmaurer11:06:15

But in the case of a REPL :thinking_face:

hmaurer11:06:26

ah! thanks, I didn’t know for -Sdeps

vlaaad11:06:32

yeah, I'm not sure there is a need for such a tool, since it's so easy to try stuff from the command line, but it's can be so much more powerful (and insecure) than the web browser

hmaurer11:06:52

@vlaaad so you were thinking to also have isolation, to prevent the library you’re pulling from messing with your system?

vlaaad11:06:17

Well, I didn't but now that I have thought about it, looks like it will be the hardest part of such "browser"...

hmaurer11:06:27

why would you expect the security to be any different than for a repl started from the CLI?

hmaurer11:06:33

as in, would you want different security guarantees?

vlaaad12:06:17

I envisioned it as a more of a general purpose browser, so you can just open a link and don't be afraid that you are hacked

hmaurer12:06:06

@vlaaad so kinda like docker run --rm -it clojure clj -Sdeps '{…}', ignoring the fact that Docker doesn’t provide 100% isolation

hmaurer12:06:03

actually I wonder: is it possible to start the JVM with total guarantees than whatever code you run can’t touch the file-system/network/etc?

vlaaad12:06:06

I think it might be okay to reach network

john16:06:32

rich text editor on QT on WASM in the browser

john16:06:15

Little buggy right now, but has potential

john17:06:33

Yeah, that one's on rust, right? Pretty slick

john17:06:18

Oh, that's the code for it right here, yeah? 🙂

👍 1
souenzzo18:06:35

this one in rust is awesome Did you press the ESC??? Open the editor and press ESC to see the awesomeness

john19:06:54

wow that's wild

Eccentric J01:06:17

Is the quality of that due to Rust, or the person wielding it?

Eccentric J01:06:04

Could Clojure produce a similar quality app with a reasonable amount of code/effort?

john01:06:03

Part of it is that wasm is pretty performant, I think. But probably the qualities of rust and the author are probably involved too.

john01:06:59

There's a new clojure on rust thing that might allow for some clojury type code on rust

👍 1
gklijs06:06:35

You mean https://github.com/chimez/clojure-rust cause that is very limited for now. Also rust has great libraries/frameworks specific for wasm already. Not sure how you could use those with part Clojure. Maybe if you could have some base in wasm, and connect to it with a repl.

john13:06:11

Oh wow I didn't know about that one. I was thinking of this one https://github.com/timothypratley/rustly

Eccentric J18:06:51

Wow that is solid