|
Shaggar posted:what does "folder1 gcd" mean? its also curried, equivalent to gcds l = foldr1 gcd l
|
# ? May 9, 2014 20:19 |
|
|
# ? Jun 5, 2024 08:56 |
|
that's really awful syntax. also are there any functional examples that aren't pointless exercises like gcd? also lol @ using gcds for the name of ur function thus making everyone assume it should return multiple values.
|
# ? May 9, 2014 20:21 |
|
Shaggar posted:also are there any functional examples that aren't pointless exercises like gcd? http://bartoszmilewski.com/2014/02/26/c17-i-see-a-monad-in-your-future/ haskell is literally beta-testing c# features so even if you wouldn't program in it i don't see how you can decry it as useless
|
# ? May 9, 2014 20:23 |
|
Bloody posted:heres a question: why should i ever give a single gently caress about functional programming and/or how is it relevant to things i give a single gently caress aobut because side effects are bad (i've been told)
|
# ? May 9, 2014 20:35 |
|
Shaggar posted:
http://xmonad.org/
|
# ? May 9, 2014 20:36 |
|
but what about objective c?
|
# ? May 9, 2014 20:38 |
|
this sounds completely irrelevant to anything i give a poo poo about, ty
|
# ? May 9, 2014 20:42 |
|
Bloody posted:this sounds completely irrelevant to anything i give a poo poo about, ty you're in the right thread then
|
# ? May 9, 2014 20:52 |
|
Bloody posted:heres a question: why should i ever give a single gently caress about functional programming and/or how is it relevant to things i give a single gently caress aobut
i find fp interesting but not interesting enough to overcome haskell syntax or haskell library availability good thing f# and scala and clojure exist
|
# ? May 9, 2014 21:01 |
|
dons made a blog post a while back about how par sparks in haskell improved performance by FORTY PERCENT when using 4 threads vs. 1. I'm kinda skeptical about the parallelism fairy dust that FP proponents claim exists inside of pure code
|
# ? May 9, 2014 21:22 |
|
Kevin Mitnick P.E. posted:dons made a blog post a while back about how par sparks in haskell improved performance by FORTY PERCENT when using 4 threads vs. 1. I'm kinda skeptical about the parallelism fairy dust that FP proponents claim exists inside of pure code it's not fairy dust, it's simple as poo poo if you have a series of pure functions operating on data, there's no dependency between threads. no locking or anything. just split the work into parcels and merge it again later.
|
# ? May 9, 2014 21:26 |
|
except its not that simple or par sparks wouldn't suck poo poo. also haskell just sucks poo poo in general from a perf standpoint, sucking poo poo 8 ways at once isn't really a win
|
# ? May 9, 2014 21:32 |
|
I don't think functional is intrinsically superior, but it's a model that meshes a bit better with how I think than OO does, which just never really meshed well with me.
|
# ? May 9, 2014 21:41 |
|
did they replace erlang with php for facebook chat or are people just lying to me?
|
# ? May 9, 2014 21:44 |
|
raruler posted:did they replace erlang with php for facebook chat or are people just lying to me? They wrote the first version in Erlang then went "wait we got tons of C++ people and like 2-3 Erlang devs" so they rewrote it in C++. Then they bought Whatsapp and now they have 30something Erlang guys.
|
# ? May 9, 2014 21:45 |
|
Kevin Mitnick P.E. posted:except its not that simple or par sparks wouldn't suck poo poo. parallelism doesnt suit every problem sparks worked, in that he did get a perf increase and he didnt get a race condition or something.. it just wasnt very useful because overhead was high
|
# ? May 9, 2014 21:51 |
|
half of the joke here btw is that f# scala haskell clojure whateverthefuck dont run on msp430s
|
# ? May 9, 2014 21:55 |
|
Bloody posted:half of the joke here btw is that f# scala haskell clojure whateverthefuck dont run on msp430s functional forth
|
# ? May 9, 2014 22:01 |
|
Notorious b.s.d. posted:functional forth there's a couple msp430 forth compilers that self-advertise as being not very good, unstable, and limited to one or two out of the literal hundreds of msp430s
|
# ? May 9, 2014 22:07 |
|
forth is so easy to implement i dont think anyone ever distributes a finished version you just write the forth compiler you need for your current project and then do it again for a new project/platform
|
# ? May 9, 2014 22:09 |
|
sounds bad
|
# ? May 9, 2014 22:10 |
|
Bloody posted:sounds bad Sung to the tune of "The Flintstones" Firmware Open Firmware It's the appropriate technology, Features FCode booting Hierarchical DevInfo tree. Hack Forth Using Emacs on the keys, Save in NVRAM if you please. With your Open Firmware You can fix the bugs in no time Bring the kernel up in no time We'll have an FCode time!
|
# ? May 9, 2014 23:04 |
|
Notorious b.s.d. posted:parallelism doesnt suit every problem so we can parallelize pure code but it won't do any good unless we structure the code for parallelism. now what you have is a little bit of sugar over an implicit thread pool. that's...not thrilling
|
# ? May 10, 2014 00:21 |
|
hey speaking of terrible programmers I cannot remember the name of the linux pistro by that almost tragically insane chrstian dude that registered on the forums to briefly defend his poor decisions to us bitter, easily amused nerds so... what was it called again? i need the information for a project, do not ask wh-I mean, the project is making fun of poor decisions like my posts, etc.
|
# ? May 10, 2014 00:37 |
|
FEMA summer camp posted:hey speaking of terrible programmers I cannot remember the name of the linux pistro by that almost tragically insane chrstian dude that registered on the forums to briefly defend his poor decisions to us bitter, easily amused nerds http://www.templeos.org/ and he's not 'almost tragically insane' he's just 'tragically insane'
|
# ? May 10, 2014 00:42 |
|
Bloody posted:sounds bad It's not necessarily that bad. I couldn't do it, but that thing's one way to do it directly in ASM, with lots of docs, and that's 2300 LOCs
|
# ? May 10, 2014 00:49 |
|
prefect posted:there's a difference? yes? methods are connected to objects, functions aren't
|
# ? May 10, 2014 00:53 |
|
i will not tolerate forth hate in this thread forth is god's language and any naysayers will burn in h(ask)ell
|
# ? May 10, 2014 01:00 |
|
MeramJert posted:yes? methods are connected to objects, functions aren't which is why functions are largely useless
|
# ? May 10, 2014 01:01 |
|
object-oriented programming: for when you want to pass an agglomeration of random state into every single function but don't want to admit it
|
# ? May 10, 2014 01:03 |
|
MeramJert posted:yes? methods are connected to objects, functions aren't functions exist as they are, beautiful flowers of independence void foo( ) { } is void foo( ) { } the calling convention is as simple as putting the return address into the LR and jumping to &foo methods get a bit nastier in that the compiler does more implicit hidden behavior, like an implicit 'this' as a first arg for non-static methods, i'm not a hyper CS wizard but for the most part that's the extent of the differences
|
# ? May 10, 2014 01:05 |
|
object1 (ˈɒbdʒɪkt) 1. to express or feel disapproval, dislike, or distaste; be averse. 2. informal a ridiculous or pitiable person, spectacle, etc
|
# ? May 10, 2014 01:10 |
|
AlsoD posted:you're in the right thread then until the next context switch
|
# ? May 10, 2014 01:25 |
|
raruler posted:Sung to the tune of "The Flintstones" lol
|
# ? May 10, 2014 01:28 |
raruler posted:Sung to the tune of "The Flintstones" lmao
|
|
# ? May 10, 2014 01:34 |
|
|
# ? May 10, 2014 01:35 |
|
Mido posted:functions exist as they are, beautiful flowers of independence unless you have static state in which your case beautiful galtian functions have another implicit argument of the process methods as a useful idea take two extra undeclared parameters (currying blah blah), the state of this and the type of this
|
# ? May 10, 2014 01:51 |
|
Mido posted:i will not tolerate forth hate in this thread god's language is room withstood combinations devised enamoured engaged ftp Incarnation comfortest delightsome temperance So reached disciple spirits goods placing harmonized Answer oppose inflicted encumbered lacking bathing precepts changes prize agreed bringing faintly delight Weight entangled imagining holden betrothed commended damnable 333
|
# ? May 10, 2014 04:26 |
|
raruler posted:Sung to the tune of "The Flintstones"
|
# ? May 10, 2014 05:19 |
|
|
# ? Jun 5, 2024 08:56 |
|
openfirmware owned
|
# ? May 10, 2014 05:45 |