|
Auteur | Sujet : blabla@fonctionnel : Taiche ne sert à rien |
---|
schnapsmann Zaford Beeblefect |
![]() Publicité | Posté le 02-08-2008 à 14:57:41 ![]() ![]() |
boblenain200 |
Ummon |
|
masklinn í dag viðrar vel til loftárása |
Message édité par masklinn le 23-12-2008 à 15:37:52 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
lorill | ce qu'il me manquait, c'était la premiere ligne de ton pattern, j'aurais cru qu'il aurait tout matché comme ca, mais en fait, c'est assez logique. Message cité 1 fois Message édité par lorill le 23-12-2008 à 15:46:42 |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
budlite Fresh | Bon c'est decide je vais apprendre un langage fonctionnel. J'hesite entre LISP et Haskell... LISP parce que pas mal de gens en parlent comme le langage divin --------------- Fresh |
BenO Profil: Chercheur |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
![]() Publicité | Posté le 04-09-2009 à 08:25:01 ![]() ![]() |
masklinn í dag viðrar vel til loftárása |
Problème de Haskell: très très très statiquement & fortement typé, si t'aimes pas les types, ça va être insupportable. Les tutos Haskell sont effectivement habituellement supérieurs, et la communauté est plus active & flexible (surtout ces temps ci), c'est un avantage notable. Il y a 25 miyons de tutos sur les monades, c'est pas un avantage. Message édité par masklinn le 04-09-2009 à 08:30:15 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
budlite Fresh | Je t'avoue que je ne connais meme pas les differences entre les implementations de LISP...
--------------- Fresh |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
BenO Profil: Chercheur |
--------------- Python Python Python |
budlite Fresh |
Message cité 1 fois Message édité par budlite le 04-09-2009 à 08:43:54 --------------- Fresh |
masklinn í dag viðrar vel til loftárása |
Quand à "culture", ça veut rien dire. Le seul truc que je peux te dire, c'est qu'apprendre un langage fonctionnel quand tu sais déjà "penser" en fonctionnel c'est naturellement plus simple que quand tu viens intégralement du monde impératif. Après est-ce qu'il est facile/trivial de passer d'un langage FP à un autre, pas nécessairement, ça dépend des langages considérés. Message cité 1 fois Message édité par masklinn le 04-09-2009 à 08:59:13 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
budlite Fresh |
--------------- Fresh |
Trap D |
C'est surtout, à mon avis, un problème de syntaxe, autant celle des Lisp est simple, autant celle de Haskell (me) parait compliquée, le mode de pensée est le même mais l'écriture ...
|
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
budlite Fresh | C'est vrai que les types c'est un peu chiant en fait --------------- Fresh |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
budlite Fresh | Par curiosite j'ai parcouru quelques artcles sur les monades --------------- Fresh |
Shinuza This is unexecpected | J'ai ça en Haskell
--------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
LeRiton | Scala pour commencer le fonctionnel (par curiosité, pas en environnement pro) en venant du monde Java, oui ou non ?
|
Shinuza This is unexecpected |
Euh... A taste of Haskell http://ontwik.com/haskell/simon-pe [...] f-haskell/ Message édité par Shinuza le 18-04-2011 à 10:33:49 --------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
Taiche (╯°□°)╯︵ ┻━┻ | Chu pas sûr que ça intéresse les langages fonctionnels, en revanche --------------- Everyone thinks of changing the world, but no one thinks of changing himself | It is the peculiar quality of a fool to perceive the faults of others and to forget his own | Early clumsiness is not a verdict, it’s an essential ingredient. |
Shinuza This is unexecpected | Merde qu'est ce que j'ai branlé --------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
Shinuza This is unexecpected | Fixed --------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
LeRiton |
|
LeRiton | En Scala, je cherche à déterminer le "meilleur" objet d'une liste. Soit par exemple :
le meilleur Arc est celui qui à le cost le plus faible. Je passe par un foldLeft sur la liste et un pattern matching, mais je me demande si c'est la bonne méthode (idiomatiquement et d'un point de vue fonctionnel, j'ai jamais fais de fonctionnel et je suis nouveau dans le langage).
Avis, critiques ? Message édité par LeRiton le 20-05-2011 à 13:50:07 |
masklinn í dag viðrar vel til loftárása | Pourquoi ne pas juste utiliser `TraversableOnce#min` --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
LeRiton | Parce que je ne connaissais pas |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
LeRiton | J'essaie de transformer du code impératif, je bloque sur un problème de définition d'une range (en remplacement d'une condition d'arrêt dans une boucle). Soit (Scala, mais je pense que ça n'a pas d'importance) :
Je le traduit par :
Pas de soucis, sauf de perf, j'ai un facteur 5 de différence, Edit : je me suis aussi dit que ça pouvait venir du fait que exists va chercher dans toute la liste là ou le parcours s'arrête si la condition match avec le while, sauf qu'en remplaçant par :
j'ai toujours mon facteur 5 sur le temps d'exécution par rapport à la version while. Message édité par LeRiton le 06-01-2012 à 08:05:31 |
LeRiton | C'est bien évidemment pas une préoccupation sur la performance, si je généralise, ma question est de savoir si je peux trouver un équivalent fonctionnel à la condition d'arrêt dans une boucle pour des cas particuliers, ou si pour ces cas, je dois me contenter d'un :
|
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
gizmo |
|
LeRiton |
Oui et non. TakeWhile simule bien la condition d'arrêt, mais le fait dans sa propre itération (pas celle où je passe mon prédicat), si bien que :
fonctionne, mais double la complexité. Message cité 1 fois Message édité par LeRiton le 06-01-2012 à 11:23:30 |
LeRiton |
|
masklinn í dag viðrar vel til loftárása |
Message édité par masklinn le 06-01-2012 à 11:37:05 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r |
LeRiton |
![]() Publicité | Posté le ![]() ![]() |
Sujets relatifs | |
---|---|
Rien ne s'affiche | Rien n'apparait sur IE.. |
[SQL Server 2005] Full-Text Index n'indexe rien | [XPATH] Chemin fonctionnel |
Est ce qu'un serveur CVS sert bien a cela? | [MySQL] a quoi sert l'interclassement ? |
Php ne renvoi rien au navigateur | ca veut rien dire (req VBA) |
Je ne comprend rien au PHP | [HTML - CSS] Problème avec la balise <a>href="#">blabla</a> |
Plus de sujets relatifs à : blabla@fonctionnel : Taiche ne sert à rien |