|
Notorious b.s.d. posted:we'll see i got to quote:Jelly is a tool for turning XML into executable code.
|
# ? Oct 3, 2013 16:01 |
|
|
# ? May 26, 2024 23:34 |
|
Shaggar posted:if you're talking simple scripts they wouldn't be different enough to matter and if you're talking about doing real interop (like defining java classes in the script) then obviously knowing java is probably pretty critical to that Shaggar posted:like idk what scenario would exist where i'd want someone who knows javascript but not java writing a thing in my java environment. you could configure stuff with a js program instead of a complex config file. or have an interactive repl for config/scripting lots of things could be done, just they'll be different from how we do them now
|
# ? Oct 3, 2013 16:01 |
|
Posting Principle posted:oh my god what its cf but worse it's so, so, so much worse. jelly is basically a framework for making your own CF-like language. it presents the opportunity combine the worst kind of masturbatory DSL bullshit with XML hell
|
# ? Oct 3, 2013 16:02 |
|
who the hell uses "jelly"? how could anyone see that and think yeah i'll have a bit of that
|
# ? Oct 3, 2013 16:03 |
|
Notorious b.s.d. posted:the crappiness of clojure java interop has been addressed like three times in the past ten pages i'm gonna leave this one alone I'm legit interested and there's only 2 mentions of clojure in the past 20 pages before I brought it up and yeah it's sad that I actually went an dlooked
|
# ? Oct 3, 2013 17:42 |
|
it's not that hard to combine java's xml parsing and reflection to create "executable xml". ofc the next step is to make your config files use this format, because what is a config file but instructions in a very specialized programming language. might as well just use java! afaik this is how tomcat and jetty's config formats were born and apparently this jelly poo poo as well
|
# ? Oct 3, 2013 18:30 |
|
jsr 223 doesn't mandate javascript just that conforming implementations ship some kind of scripting language. so you can't actually rely on anything about jsr 223 without either dropping portability or bundling your own interpreter
|
# ? Oct 3, 2013 18:32 |
|
MononcQc posted:I can't ever imagine having fun programming through XML people seem to really want to do it, though
|
# ? Oct 3, 2013 19:34 |
who ever reads or edits config files anyway
|
|
# ? Oct 3, 2013 20:10 |
|
In some open space startup office in the bay area - I'm so annoyed by the boss always wanting to tweak lovely useless things! That's interrupting me! How can I ever be a 10x engineer if I keep getting interrupted? - Agreed! As a fellow 10x Engineer, I say let's make the program use a configuration file so that people can change the software's behavior without changing code! - Alright let's get started. both employees furiously share the same keyboard and type at light speed for 30 minutes. the feathers on their fedoras are moving through the wind created by their nimble fingers' movements - Hrm, this here value is configurable the way I want, but what if I want to do this instead? the developer points at screen, leaving a greasy cheeto-orange fingermark - Oh right. The config file needs to be more flexible then - Yeah, let's make it a DSL that way managers can get it too - That's brilliant! that way we can just show them how to edit the file and we don't have to work anymore -- we can just browse mensright on reddit and be the coolest dudes around both employees spend 17 additional hours programming, drinking Monster energy drinks and actively avoiding showers and other hygienic measures - There, done! We should never have to touch that software again. The DSL is so flexible it's probably Turing complete. - It's a beauty. No time for documentation, let's deploy it right away the manager never touches the configuration file because it's too complex and he doesn't give a poo poo about it. He just keeps asking devs to do all the changes for him in it for whatever change is needed ever after. Developers gradually end up moving most of the system to their invented lovely in-house ad-hoc programming language they wrote to not have to program. MononcQc fucked around with this message at 20:19 on Oct 3, 2013 |
# ? Oct 3, 2013 20:16 |
|
fogbugz makes a lot of sense now
|
# ? Oct 3, 2013 22:02 |
|
Nomnom Cookie posted:afaik this is how tomcat and jetty's config formats were born and apparently this jelly poo poo as well tomcat not really jelly yes jetty yes
|
# ? Oct 3, 2013 22:09 |
|
Nomnom Cookie posted:jsr 223 doesn't mandate javascript just that conforming implementations ship some kind of scripting language. so you can't actually rely on anything about jsr 223 without either dropping portability or bundling your own interpreter jsr 223 doesn't require you to bundle anything, but oracle is choosing to bundle javascript, and their javascript engine is open source. every j2se implementation will probably include it because it would be stupid not to technically a ton of poo poo everyone relies on isn't part of the java standard. this is why there is a distinction between openjdk and icedtea. openjdk is just barely enough to pass a tck. icedtea adds a bunch of other poo poo that you expect to find in j2se that isn't actually mandated by the tck
|
# ? Oct 3, 2013 22:13 |
|
Internaut! posted:I'm legit interested and there's only 2 mentions of clojure in the past 20 pages before I brought it up and yeah it's sad that I actually went an dlooked it's pretty simple. clojure provides nasty hairy tools to call to/from java: proxy, reify, doto, and worst of all, motherfuckin type hinting to make sure you don't spend all day waiting on reflection scala provides nothing. you don't need anything. scala classes are java classes, with type data java understands. scala methods are java methods. calling java from scala or scala from java is totally seamless
|
# ? Oct 3, 2013 22:14 |
|
it's hard or maybe impossible for java to consume an idiomatic scala api because of things like lambda params. so it's not seamless imo still much simpler than clojure
|
# ? Oct 4, 2013 01:47 |
|
i use jython 2.7 for all my jvm scripting needs. its pretty good if you want to combine the robustness and raw performance of python, the terse expressiveness of java apis, and the proven reliability of beta software do we have this driving mission-critical production code? i'll leave that to your imagination!
|
# ? Oct 4, 2013 02:12 |
|
clojure just calls java codecode:
|
# ? Oct 4, 2013 02:18 |
|
trex eaterofcadrs posted:clojure just calls java code yes if I treat clojure as a dumb jsr 223 scripting language everything works within that limited problem space but many people want more interop than that. e.g. Writing libraries in a language no one outside your team can use is very limiting unless you have the seamless interop
|
# ? Oct 4, 2013 02:24 |
|
or if you treat clojure as the lingua franca of your project and only use java for the ecosystem/libs or if you need to for whatever reason
|
# ? Oct 4, 2013 02:28 |
|
playing with the thrust CUDA library right nowcode:
coffeetable fucked around with this message at 03:03 on Oct 4, 2013 |
# ? Oct 4, 2013 03:01 |
|
coffeetable posted:playing with the thrust CUDA library right now CUDA is p boss
|
# ? Oct 4, 2013 14:25 |
|
trex eaterofcadrs posted:or if you treat clojure as the lingua franca of your project and only use java for the ecosystem/libs or if you need to for whatever reason right, i think it is obvious that if your project uses clojure as the lingua franca and default choice, you will have a much better clojure experience this is however an impossible barrier to entry for millions of java developers. seamless interop ensures that scala doesn't have this problem, so scala is getting commercial traction in a way that clojure is not.
|
# ? Oct 4, 2013 16:16 |
|
coffeetable posted:playing with the thrust CUDA library right now this almost excuses the use of c++ holy crap i never thought gpu programming would be that easy
|
# ? Oct 4, 2013 16:16 |
|
Nomnom Cookie posted:it's hard or maybe impossible for java to consume an idiomatic scala api because of things like lambda params. so it's not seamless imo so i actually just investigated the lambda param thing, and it is actually feasible (albeit really ugly) to instantiate scala.Function1 in java and pass a function to your scala code stack overflow had a workable solution: Java code:
in java 8 it could be enhanced by having a Function1 constructor that takes a java-ized lambda as an argument, or even replacing the scala Function* suite of classes with java-lambdas
|
# ? Oct 4, 2013 16:22 |
|
$ isn't legal in an identifier though?
|
# ? Oct 4, 2013 17:29 |
|
Nomnom Cookie posted:$ isn't legal in an identifier though? it isn't? it compiles and produces a class file with the right stuff in it per 'javap'
|
# ? Oct 4, 2013 17:37 |
|
here is a blog comment with a less-loving-terrible mode of doing this at heart scala lambdas and java lambdas are both anonymous inner classes inside of the compiled bytecode, so there's no reason they can't have pretty reasonable interoperability: Daniel Spiewak posted:Yeah, Scala function values in Java are nightmarish.
|
# ? Oct 4, 2013 17:39 |
|
why doesn't this work in pythonPython code:
|
# ? Oct 4, 2013 18:00 |
|
heres the solution to scala problems: stop using scala
|
# ? Oct 4, 2013 18:05 |
|
Shinku ABOOKEN posted:why doesn't this work in python what do you think that should do
|
# ? Oct 4, 2013 18:08 |
|
FamDav posted:what do you think that should do i think there is no reason assignment is not considered an expression is there? e: specifically it should return the left hand side of the assignment
|
# ? Oct 4, 2013 18:11 |
|
Shinku ABOOKEN posted:i think there is no reason assignment is not considered an expression assignment is an expression, which is why the while loop can use it as a test condition
|
# ? Oct 4, 2013 18:15 |
|
what should the while loop evaluate to?
|
# ? Oct 4, 2013 18:15 |
|
RINGDINGDINGIDNGINDGINDG RINGIDNGINDINDGINDGINDGDG WAPAPAPAPAPAPAAPOW WAPAPAPAPAPAPAPAOW
|
# ? Oct 4, 2013 18:16 |
|
FamDav posted:assignment is an expression, which is why the while loop can use it as a test condition actually it can't thats the problem Python code:
|
# ? Oct 4, 2013 18:21 |
|
FamDav posted:RINGDINGDINGIDNGINDGINDG RINGIDNGINDINDGINDGINDGDG
|
# ? Oct 4, 2013 18:27 |
|
i found the reason and it's some weak poo poo "oh no some dumbass might not be able to tell assignemnt from equality let's have the users repeat themselves in a more bug prone way that sure is better yessirreee"
|
# ? Oct 4, 2013 18:28 |
|
Shinku ABOOKEN posted:i found the reason and it's some weak poo poo oh sorry i misunderstood you because i was thinkin mandatory parens around the boolean. my b also python makes decisions on some groundball poo poo. gently caress you guido
|
# ? Oct 4, 2013 18:32 |
|
you know how you fix that error? while (0 = x) // oh no i cants assign to this young constant what do i do?????
|
# ? Oct 4, 2013 18:33 |
|
|
# ? May 26, 2024 23:34 |
|
assignment != equality is really hard guys if you're in cs101
|
# ? Oct 4, 2013 18:38 |