|
AlsoD posted:The backend to Detexify is written in Haskell using Happstack, there's a link to the sources at the bottom of the page. I'm the web development toolkit called loli I kinda want to try Haskell at some point, but I need to solve a real problem with it, and a web application seems like the best way to go there, since the only thing webapps need to be able to speak is sockets (and some sort of data storage facility in order to actually be useful). Compare that to app development on client platforms, you're not going to write a Qt app in Haskell (well, you might, but that doesn't particularly seem like a fun time) So I'm guessing there's no fancy-pants Haskell data stores out there, just libpq wrappers and whatnot?
|
# ? Oct 14, 2013 15:42 |
|
|
# ? May 26, 2024 13:32 |
|
the guy who made Haskell literally admitted its useless for anything other than a beta language for c# features. do not use Haskell unless you are beta testing new language features
|
# ? Oct 14, 2013 15:43 |
|
why wouldn't you just test with f# then?
|
# ? Oct 14, 2013 15:50 |
|
f# is basically Microsoft's internal Haskell that somehow escaped into the wild
|
# ? Oct 14, 2013 15:52 |
|
exactly
|
# ? Oct 14, 2013 15:53 |
|
Mr Dog posted:I'm the web development toolkit called loli There's bindings to a bunch of databases (and QT for that matter) but if you want fancy-pants Haskell data store, I've heard good things about acid-state. I'd really recommend going through Learn You A Haskell before trying to tackle anything big; I have spoken to a number of people who expect to be able to dive right in like they could with when switching to another j-lang and it rarely turns out well.
|
# ? Oct 14, 2013 15:55 |
|
once again, just use yesod
|
# ? Oct 14, 2013 15:56 |
|
Here's also an introduction to using OpenGL from Haskell: http://www.renci.org/wp-content/pub/tutorials/BeautifulCode.pdf idk how accessible it would be to an absolute pre-syntax beginner though, I still think you should go through lyah first. e: as to why learn haskell? most people ive spoken to who have done so said that it lead to them thinking about data a little differently and this translated through to their normal oo work. why immutable data is so good (remember if you really want to you can mutate your state*), why you'd want lambdas, to be more aware of your side effects, that kind of thing. if you want to poo poo out another porn site then go ahead idc but if you want to expand your programming vocab than a functional lang (be it haskell or erlang or whatever) will do that *: see this paper where the authors used mutable state to get good complexity in a core part of their library before hiding the mutable part and basing the rest of their (immutable) api on it: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.49.2591&rep=rep1&type=pdf gonadic io fucked around with this message at 16:21 on Oct 14, 2013 |
# ? Oct 14, 2013 16:09 |
|
Shaggar posted:the guy who made Haskell literally admitted its useless for anything other than a beta language for c# features. do not use Haskell unless you are beta testing new language features he's pretty cool, i met him last week for a work thing
|
# ? Oct 14, 2013 16:16 |
|
Shaggar posted:f# is basically Microsoft's internal Haskell that somehow escaped into the wild actually it's their internal ml that escaped into the wild, but close enough for govt work
|
# ? Oct 14, 2013 16:41 |
|
fwiw i'm sure that lens will be showing up in C# in about 5 years with bad syntax
|
# ? Oct 14, 2013 16:44 |
|
Otto Skorzeny posted:actually it's their internal ml that escaped into the wild, but close enough for govt work i thought it was ocaml.net basically
|
# ? Oct 14, 2013 16:46 |
|
I'm still sad not more languages adopted macros like Nemerle did, it's only ever ADTs and whatnot.
|
# ? Oct 14, 2013 17:01 |
|
php > $a = "2d9"; php > echo $a; 2d9 php > $a++; php > echo $a; 2e0 php > $a++; php > echo $a; 3 php >
|
# ? Oct 14, 2013 17:04 |
tef posted:php > $a = "2d9";
|
|
# ? Oct 14, 2013 17:08 |
|
tef posted:php > $a = "2d9"; ya. operator overloading is bad
|
# ? Oct 14, 2013 17:10 |
|
Vanadium posted:I'm still sad not more languages adopted macros like Nemerle did, it's only ever ADTs and whatnot. had never heard of it before now code:
|
# ? Oct 14, 2013 17:10 |
|
AlsoD posted:fwiw i'm sure that lens will be showing up in C# in about 5 years with bad syntax one thing that i don't think people give lens enough credit for is that you can write your own lenses to view a data structure as something else, so you can write lenses that set bits/bytes of an integer like this: code:
|
# ? Oct 14, 2013 17:13 |
tef posted:php > $a = "2d9"; i actually thought the first increment was a cast to hex but 2d9+1 isn't 2e0 so idk loving php i tell you
|
|
# ? Oct 14, 2013 17:14 |
|
What, you don't want to write code that runs at compile time and implicitly defines a class hierarchy matching your database schema? Or define your language's basic loops as a macro wrapping lexical closures and recursion? Or write your own neat decorators/attributes/w/e? I'm not sure it's really a good idea to use complex macros anywhere outside, like, a framework working up its way to a DSL, but it's kinda impressive how lightweight their mechanism for loving with the language's syntax is.
|
# ? Oct 14, 2013 17:15 |
|
Also you didn't quote the xml literals.
Vanadium fucked around with this message at 17:21 on Oct 14, 2013 |
# ? Oct 14, 2013 17:17 |
|
well that certainly is a thing
|
# ? Oct 14, 2013 17:22 |
|
Vanadium posted:What, you don't want to write code that runs at compile time and implicitly defines a class hierarchy matching your database schema? Or define your language's basic loops as a macro wrapping lexical closures and recursion? Or write your own neat decorators/attributes/w/e? I think this kind of thing is pretty neat actually, I wish c++ would go there its operator overloading and expression templates and constexpr functions (which are becoming much less limited in c++14) and other such things pushed to their logical conclusion
|
# ? Oct 14, 2013 17:39 |
|
tef posted:i thought it was ocaml.net basically that's almost exactly what it is
|
# ? Oct 14, 2013 18:06 |
|
tef posted:php > $a = "2d9";
|
# ? Oct 14, 2013 18:32 |
|
Alligator posted:PHP Megathread: what the heck is happening here, i can't make sense of this
|
# ? Oct 14, 2013 19:24 |
|
but seriously, in what way does php figure that the increment of 2d9 is 2e0?
|
# ? Oct 14, 2013 19:31 |
|
Alligator posted:what the heck is happening here, i can't make sense of this hint: e is for exponential notation.
|
# ? Oct 14, 2013 19:32 |
|
PrBacterio posted:but seriously, in what way does php figure that the increment of 2d9 is 2e0? i guess you might not be familiar with the advanced concept of "carrying the one" if you didn't make it through elementary school
|
# ? Oct 14, 2013 19:33 |
|
PrBacterio posted:but seriously, in what way does php figure that the increment of 2d9 is 2e0? well, you try to increment the last character, which is 9. 9+1=10, so you carry the 1 up. d + 1 is e, since it's 1 letter ahead. code:
also if you do $x = "zzz"; $x++; you get "aaaa". i guess this is to make autogenerating alphanumeric identifiers easier???
|
# ? Oct 14, 2013 19:36 |
|
Vanadium posted:I'm not sure it's really a good idea to use complex macros anywhere outside, like, a framework working up its way to a DSL, but it's kinda impressive how lightweight their mechanism for loving with the language's syntax is. http://www.paulgraham.com/onlisp.html
|
# ? Oct 14, 2013 19:43 |
|
Tiny Bug Child posted:hint: e is for exponential notation. 2^0 should be 1 no?
|
# ? Oct 14, 2013 19:47 |
|
wins32767 posted:2^0 should be 1 no? http://en.wikipedia.org/wiki/Exponential_notation#E_notation
|
# ? Oct 14, 2013 19:48 |
|
wins32767 posted:2^0 should be 1 no? alright maybe this is all nothing but a huge troll but I though php's behaviour in that example was stupid before, but now there's people coming out of the woodwork saying that they seriously don't know how computer scientific/exponential floating point notation works, in a thread about programming
|
# ? Oct 14, 2013 19:54 |
|
most people don't ever use it while programming.
|
# ? Oct 14, 2013 19:55 |
|
$("#submit").hidden(); is most of the coding anyone needs.
|
# ? Oct 14, 2013 19:56 |
|
Tiny Bug Child posted:i guess you might not be familiar with the advanced concept of "carrying the one" if you didn't make it through elementary school rofl php is the worst
|
# ? Oct 14, 2013 19:57 |
|
2d9 + 1 isn't 2e0 either.
|
# ? Oct 14, 2013 20:01 |
|
trex eaterofcadrs posted:2d9 + 1 isn't 2e0 either. yes it is. increment 9 and you get 10. carry the 1 and you have to increment d. increment d and you get e.
|
# ? Oct 14, 2013 20:12 |
|
|
# ? May 26, 2024 13:32 |
|
increment 9 and you get A. 2d9 + 1 = 2da. (actually '2d9' + 1 == 'Argument "2d9" isn't numeric in addition (+) at foo.pl line bar' but w/e)
|
# ? Oct 14, 2013 20:16 |