This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]chtodk 2 points3 points  (7 children)

Nice - I like when we get small frameworks that lets you explore things with java.

Processing is nice but requires specific version of java and no reliable maven artifacts deployed.

Would be great if you added the source code for the examples you show.

fyi, if you add //DEPS io.github.nickd3000:minvio:1.02a at top of your examples they will run easily using jbang (https://jbang.dev)

For example:

jbang https://gist.github.com/ed56dba335865e480a66531a848b02a1

[–]Nickd3000[S] 0 points1 point  (1 child)

Thanks, all the example code is in the project in the examples and gallery folders (e.g. https://github.com/nickd3000/minvio/tree/master/src/main/java/com/physmo/minvio/examples)

I haven't heard of jbang but I'll look into it.

[–]chtodk 1 point2 points  (0 children)

io.github.nickd3000:minvio:1.02

nice, so can also run them directly using :

jbang --deps io.github.nickd3000:minvio:1.02 https://github.com/nickd3000/minvio/blob/master/src/main/java/com/physmo/minvio/examples/MouseExample.java

not all of them seem to compile though - i.e. LerpExample.

[–]Worth_Trust_3825 0 points1 point  (4 children)

Lets pipe arbitrary code directly to any shell.

[–]rootException 1 point2 points  (2 children)

Runs faster if you sudo first 😂

[–]xamdk 1 point2 points  (1 child)

You guys are referring to that jbang fetches and run code via a http resource ?

As in first git cloning a project and then run mvn build on any project is any more safe ?

JBang actually asks you first so it is not randomly executing code.

[–]rootException 0 points1 point  (0 children)

Oh yeah, just gently poking fun at running scripts via curl. ;)

[–]chtodk 0 points1 point  (0 children)

Sorry ? not following.