|
Malcolm XML posted:NoImplicitPrelude now mandatory there is classy-prelude which imo was a precursor to this whole debacle (it uses lots of typeclasses get it??) e: i actually quite like the idea of classy-prelude, but it was always quite experimental (at least when i was programming lots of haskell) so i never actually used it. like i said, the old-fashioned nature of standard prelude does regularly annoy me gonadic io fucked around with this message at 21:30 on Oct 16, 2015 |
# ? Oct 16, 2015 21:22 |
|
|
# ? Jun 9, 2024 05:53 |
|
is there any reason to learn Scala anymore? the best i found was akka i did get into Groovy, without knowing a thing about it before except the name. we were looking for utility methods already in place for use with mysql+JDBC, and groovy's abstraction on it was more than we could hope to search for.
|
# ? Oct 16, 2015 21:42 |
|
pepito sanchez posted:is there any reason to learn Scala anymore? the best i found was akka scala is bad op. use nodejs.
|
# ? Oct 16, 2015 21:46 |
|
Typical Yosposter posted:obama is bad op. vote hitler.
|
# ? Oct 16, 2015 21:47 |
Is idris cool? I've been having the itch to learn a semi-useless language recently, and right now I'm thinking one of idris (for loving around with functional stuff), some lisp dialect (for the same reasons), ruby (for loving around with metasploit), or elm (for loving around with web stuff).
|
|
# ? Oct 16, 2015 21:49 |
|
pepito sanchez posted:is there any reason to learn Scala anymore? only if you're on the jvm
|
# ? Oct 16, 2015 21:50 |
|
was there ever a reason to
|
# ? Oct 16, 2015 21:51 |
|
gonadic io posted:only if you're on the jvm i am. but i see no reason to use it if i can use pure java 8. clojure looks a bit cleaner and without the problems i've seen people complain about here in Scala. other libraries provide any specific utility. wondering here where a yosposter finds a good use of Scala.
|
# ? Oct 16, 2015 22:01 |
|
pepito sanchez posted:i am. but i see no reason to use it if i can use pure java 8. clojure looks a bit cleaner and without the problems i've seen people complain about here in Scala. other libraries provide any specific utility. wondering here where a yosposter finds a good use of Scala. clojure is a lisp. if you like streams then they're a million times better in scala. if you don't like them, just keep on trucking in java7. as much as i do have lots of complaints about scala, i'm very glad that we're using it over any other jvm lang.
|
# ? Oct 16, 2015 22:06 |
|
pepito sanchez posted:i am. but i see no reason to use it if i can use pure java 8. clojure looks a bit cleaner and without the problems i've seen people complain about here in Scala. other libraries provide any specific utility. wondering here where a yosposter finds a good use of Scala. there are a few things scala does that java doesn't, like shell scripting and the repl, but its community values complexity too much for me to feel very comfortable with it. clojure is simpler, but it's also less ambitious. i'm alright with that, for some problems it may be a dealbreaker.
|
# ? Oct 16, 2015 22:08 |
|
VikingofRock posted:Is idris cool? I've been having the itch to learn a semi-useless language recently, and right now I'm thinking one of idris (for loving around with functional stuff), some lisp dialect (for the same reasons), ruby (for loving around with metasploit), or elm (for loving around with web stuff). dear god don't learn ruby i've spent a day on elixir and it's pretty cool. the match operator is really weird i dunno what the gently caress is up with that thing. it...can do equality/sort of assert, assign a variable and reassign a variable. i guess it's that way because it lets you destructure data while simultaneously using it to do a pattern match, which is nice and all but it's really confusing in other contexts. now i'm working on the agent/client/server stuff in their tutorial and it was incredibly confusing. i've got the hang of it now i think but it seems like a lot of boiler plate to deal with mutable state. seems like haskell had a better idea because you can just do <~> or whatever instead of writing 500 lines of message passing code. the shell is good but it's annoying that if you call a function with the wrong arity, rather than suggesting the correct arity, it just tells you the function doesn't exist.
|
# ? Oct 16, 2015 22:24 |
|
VikingofRock posted:Is idris cool? I've been having the itch to learn a semi-useless language recently, and right now I'm thinking one of idris (for loving around with functional stuff), some lisp dialect (for the same reasons), ruby (for loving around with metasploit), or elm (for loving around with web stuff). watch https://www.youtube.com/watch?v=vkIlW797JN8 for an introdduction to idris by the creator. sure it's an entire talk but it's way less commitment then actually learning a language. in the version of that talk he gave in Nottingham he demoed space invaders. don't know if he does it in this london version.
|
# ? Oct 16, 2015 22:33 |
|
what do you guys use all these goofy languages for? like Scala, Haskell, Clojure. I use a lot of languages in my work, C, Objective C, C++, Groovy, Java, I work on web servers and mobile clients. what are those languages you always talk about for? are they especially suited for something? are they used in some super-popular framework, or a killer application for some niche? is it some "big data" thing, because that's a field I know nothing of
|
# ? Oct 16, 2015 22:51 |
|
tef posted:every single feature rubyists tout as being magical, the quirks that make it pleasant to write a dsl for your boilerplate, and the shorthand that lets your example fit neatly on a slide, well, they have a downside. it took me a while to get what was happening here. this should have been "elsif true" but a one character typo made it "elif true", which is just a call to the function "elif" with one parameter compare with sister plang python, where the corresponding typo would trigger three separate syntax errors
|
# ? Oct 16, 2015 22:57 |
|
hackbunny posted:what do you guys use all these goofy languages for? like Scala, Haskell, Clojure. I use a lot of languages in my work, C, Objective C, C++, Groovy, Java, I work on web servers and mobile clients. what are those languages you always talk about for? are they especially suited for something? are they used in some super-popular framework, or a killer application for some niche? is it some "big data" thing, because that's a field I know nothing of Clojure is popular for stream processing which is a "big data" thing
|
# ? Oct 16, 2015 22:58 |
hackbunny posted:what do you guys use all these goofy languages for? like Scala, Haskell, Clojure. I use a lot of languages in my work, C, Objective C, C++, Groovy, Java, I work on web servers and mobile clients. what are those languages you always talk about for? are they especially suited for something? are they used in some super-popular framework, or a killer application for some niche? is it some "big data" thing, because that's a field I know nothing of Personally most of my "goofy languages" are just for fun and because I think they are interesting. They do occasionally have some use though. For example, writing parsing code in Haskell is very nice, so some of my log file parsing / manipulation code is written in Haskell.
|
|
# ? Oct 16, 2015 23:01 |
|
hackbunny posted:what do you guys use all these goofy languages for? like Scala, Haskell, Clojure. I use a lot of languages in my work, C, Objective C, C++, Groovy, Java, I work on web servers and mobile clients. what are those languages you always talk about for? are they especially suited for something? are they used in some super-popular framework, or a killer application for some niche? is it some "big data" thing, because that's a field I know nothing of no they're all general purpose langs. any time you're using groovy or java you could be using scala (or probably clojure too). they're all general purpose jvm langs. i use scala when working on web servers but i'm sure you can program android in it. haskell has it's own runtime (but libraries for web servers), but I don't think mobile is that good a fit for it since it's so tied to android (or ios).
|
# ? Oct 16, 2015 23:03 |
|
VikingofRock posted:Is idris cool? I've been having the itch to learn a semi-useless language recently, and right now I'm thinking one of idris (for loving around with functional stuff), some lisp dialect (for the same reasons), ruby (for loving around with metasploit), or elm (for loving around with web stuff). Lisp is pretty cool. Racket's probably the easiest to get started with/least warty.
|
# ? Oct 16, 2015 23:03 |
|
i don't know how large it is, but clojure seems to have carved out a niche in web dev too.
|
# ? Oct 16, 2015 23:04 |
|
i just want to be an early adopter of a cool/influential programming lanng
|
# ? Oct 16, 2015 23:05 |
MALE SHOEGAZE posted:i just want to be an early adopter of a cool/influential programming lanng You've gotta pick one there--programmers hate everything that is popular so if something ever because widely-used enough to be considered influential it will immediately cease to be considered cool and instead people will just whine about it forever.
|
|
# ? Oct 16, 2015 23:08 |
|
Racket might be getting dependent types too soon, so that's pretty neat.
|
# ? Oct 16, 2015 23:09 |
|
I can spin up little prototypes in F# way faster than any other language I know
|
# ? Oct 16, 2015 23:53 |
|
suffix posted:it took me a while to get what was happening here. this should have been "elsif true" but a one character typo made it "elif true", which is just a call to the function "elif" with one parameter in Perl, Perl code:
|
# ? Oct 17, 2015 00:18 |
|
gonadic io posted:i use scala when working on web servers but i'm sure you can program android in it. wasn't programming android in scala the reason why facebook had to monkeypatch the dalvik vm at runtime qntm posted:in Perl, except that's just a historical artifact, and that code will produce two warnings if you turn warnings on, and will not even compile if you use strict like literally every single perl guide has been insisting for longer than some posters have been alive ruby, meanwhile Soricidus fucked around with this message at 00:51 on Oct 17, 2015 |
# ? Oct 17, 2015 00:48 |
|
why would you ever use scala when you could just use java ?
|
# ? Oct 17, 2015 00:50 |
|
hackbunny posted:what do you guys use all these goofy languages for? like Scala, Haskell, Clojure. I use a lot of languages in my work, C, Objective C, C++, Groovy, Java, I work on web servers and mobile clients. what are those languages you always talk about for? are they especially suited for something? are they used in some super-popular framework, or a killer application for some niche? is it some "big data" thing, because that's a field I know nothing of it was kind of my question, though not so well worded. i found a use in groovy in one specific case where it just made working with java jdbc mysql drivers easier. i'm wondering about Scala and Clojure for big data analysis, but java 8 seems to have as much capability and i don't see the benefit of a lisp or in the case of scala something that does what java does but for some reason looks like python. it's why i ask what it's still really very good for in an honest way. as for haskell i read a bit about it recently, and the answers for it are always so obscure. i don't see real world application in it at the moment, yet everyone says it'll make you think as a better programmer by practicing it. it's something i can see happening considering its capabilities. but then again - in the same way - i can see myself being a better programmer focusing more of my time just learning more about C, something still widely used and applicable. i don't yet see how the restrictions of a programming language i don't know could make me better at something i already somewhat know. it's not like re-learning a keyboard's layout and programming your brain to get used to dvorak instead of qwerty the homekey way. OO langs have design patterns that transcend the specific language you're working in, functional programming has "don't-gently caress-up"s, and the fact that most of them dynamically typed make them extremely unappealing.
|
# ? Oct 17, 2015 01:43 |
|
Shaggar posted:why would you ever use scala when you could just use java ? because scala is the current hipste
|
# ? Oct 17, 2015 02:08 |
|
pepito sanchez posted:i don't see the benefit of a lisp then you won't get clojure. i don't mean that as snark, "lisp on a platform people actually use" is the entire reason it exists. if you want to know why you should care, this is probably the best concrete explanation i've seen.
|
# ? Oct 17, 2015 02:18 |
|
gonadic io posted:con: shut up, first impressions are important, the language shouldn't put barriers in the way of newcomers this is the entire point of haskell tho?
|
# ? Oct 17, 2015 02:22 |
|
pepito sanchez posted:i found a use in groovy in one specific case where it just made working with java jdbc mysql drivers easier. i'm wondering about Scala and Clojure for big data analysis, but java 8 seems to have as much capability and i don't see the benefit of a lisp or in the case of scala something that does what java does but for some reason looks like python a lot of the historical "lisp good, c bad" came from features like garbage collection, and higher order functions. things that have kinda commonplace for almost 20 years (java, javascript, python, ruby, c#, etc) most of the modern lisp weenie stuff comes from macros, or the feeling that you really know better, and those 30 lines of code you saved with a macro are totes worth it. clojure's strengths aren't so much that, but the way in which it handles mutability, and concurrency. the lisp syntax and macros i guess are vestigial parts from habit
|
# ? Oct 17, 2015 02:31 |
|
scala is for people who want to write java but with functions or people who want to write a taxonomy of types in a much more obsequious way than java permits or people who want to be writing haskell but it actually has to be deployed or people who think the permgen is a real cool place to allocate from
|
# ? Oct 17, 2015 02:32 |
|
tef posted:most of the modern lisp weenie stuff comes from macros ive fought with enough c macroes to know that however good lisp might be, it's not worth it
|
# ? Oct 17, 2015 02:35 |
|
and i remember greybeards back in the 90s getting all misty-eyed at remembering 'macro assembly language' and not really seeing the big deal
|
# ? Oct 17, 2015 02:35 |
|
so what I'm hearing is that scala's perfect for a big data analytics machine learning containerized platform?
|
# ? Oct 17, 2015 02:37 |
|
fritz posted:ive fought with enough c macroes to know that however good lisp might be, it's not worth it C doesn't have macros, it has a really poor text substitution DSL
|
# ? Oct 17, 2015 02:43 |
|
pepito sanchez posted:as for haskell i read a bit about it recently, and the answers for it are always so obscure. i don't see real world application in it at the moment, yet everyone says it'll make you think as a better programmer by practicing it. it's something i can see happening considering its capabilities. but then again - in the same way - i can see myself being a better programmer focusing more of my time just learning more about C, something still widely used and applicable. i don't yet see how the restrictions of a programming language i don't know could make me better at something i already somewhat know. it's not like re-learning a keyboard's layout and programming your brain to get used to dvorak instead of qwerty the homekey way. OO langs have design patterns that transcend the specific language you're working in, functional programming has "don't-gently caress-up"s, and the fact that most of them dynamically typed make them extremely unappealing. well the point isn't learning what the restrictions of haskell are, it's about learning to approach & think about problems in a fundamentally different way. it's less like learning dvorak and more like taking a few steps to the side and seeing something from a different angle. also which functional programming languages are you thinking about that are dynamically typed? like, clojure and maybe erlang (idk enough about erlang, is it dynamically typed?). most of them are statically typed. haskell, ocaml, f#, elm, the whole ml family really, scala, etc are all statically typed languages
|
# ? Oct 17, 2015 02:54 |
|
pepito sanchez posted:as for haskell i read a bit about it recently, and the answers for it are always so obscure. i don't see real world application in it at the moment, yet everyone says it'll make you think as a better programmer by practicing it. it's something i can see happening considering its capabilities. The main differences between Haskell and "mainstream" languages are pretty mundane but important: 1. Static types (and not dynamic types) 2. Very lightweight easy type definitions (for algebraic types and struct types, and not some garbage like C++ or Java classes) This tilts the solution space so that the contour map of difficulty in solving a problem is shaped differently, and the easiest way to solve the problem is now a more "correct" way in terms of software engineering standards. That makes you more aware of how languages like C# or Java or C++ fight against this, and how you can fight back or mitigate the downsides. Other stuff it gives is less important: 3. Pattern matching and a culture of spergaciously handling all cases is good for the mind too. 4. Play with monads and monad transformers, and you'll get some instinct that maps back to real languages in the form of "just pass the goddamn parameter" instead of trying to be cute and putting database connections in private fields of miscellaneous objects because it's "convenient." 5. You get more awareness of the benefits of being very explicit about a function's inputs and outputs and side effects. (See the part about not being cute with database connections.) 6. Being lazy lets you write really elegant code and it's nice to turn off the part of the brain that thinks about literal performance. Most of the important benefits are given by using other statically typed functional programming languages like OCaml or ML or F# or some shiz like that. There's a lot of Haskell churchboys that'll wax poetic about the benefits of Haskell and give some example that any statically typed language can support. The darkweb mirror of lambdatheultimate has a wiki featuring footage of some of these people getting tortured to death.
|
# ? Oct 17, 2015 03:14 |
|
hackbunny posted:what do you guys use all these goofy languages for? like Scala, Haskell, Clojure. I use a lot of languages in my work, C, Objective C, C++, Groovy, Java, I work on web servers and mobile clients. what are those languages you always talk about for? are they especially suited for something? are they used in some super-popular framework, or a killer application for some niche? is it some "big data" thing, because that's a field I know nothing of ymmv: i work in simulations i guess my answer is holy poo poo is it a pain in the rear end to keep things immutable in java and friends it's like doing objects in C; you can, but goddamn that is a bunch of gross boilerplate and if go down that road, you really want persistent data structures, and you aren't getting those without a GC so good luck with c-langs as to why immutable, http://www.infoq.com/presentations/Are-We-There-Yet-Rich-Hickey is the best thing i've seen so far. working in simulations makes you very aware that implicitly coupling state with time is a losing game for anything that is really parallel
|
# ? Oct 17, 2015 03:29 |
|
|
# ? Jun 9, 2024 05:53 |
|
fart simpson posted:also which functional programming languages are you thinking about that are dynamically typed? f# is a good thing that i like, but any REPL isn't statically typed. and it requires you make your own type providers in any cases where it's not something inherent to the language or existing type providers. something i had to learn how to do. which isn't a complaint but a required learning experience. much like javascript and typescript, if you do want to use typescript beyond basic understanding. again: i know zero about Scala but it seems that static typing isn't something inherent to the language. i might be wrong there. python is something i want to learn more, specially for big data analysis. clojure and scala are both simply curiosities since i work with java a lot, and while java 8 is awesome and good, things that i could consider tools to make java that much easier are always welcome. anything that's optionally purely or purely functional is something that attracts me for its utility. i've yet to understand the full advantage of pure immutability in a language, like haskell offers. it's been something that sounds to me like "don't gently caress with my code, and don't let me gently caress my own code up accidentally" yet that bad sense for a definition of immutability sounds to me like it might have its own possible pitfalls, because only parts of anyone's code should ever be unfuckerupable by a system.
|
# ? Oct 17, 2015 03:29 |