Отдал бы и ползарплаты! Войти !bnw Сегодня Клубы
Привет, TbI — HRWKA! 1235.0 пользователей не могут ошибаться!
?6906
прекрасное6424
говно5884
говнорашка5512
хуита4695
anime3055
linux2643
music2612
bnw2588
рашка2559
log2336
ололо2113
pic1809
дунч1734
сталирасты1488
украина1437
быдло1434
bnw_ppl1364
дыбр1237
гімно1158

У меня такое ощущение что в ubuntu проект собранный при помощи cabal new-install собрался без поддержки -threaded. Что нажать чтобы исправить? А то у меня сервант ставит опердень раком.
#48LI3C (6) / @ndtimofeev / 1247 дней назад
‰ time cabal build Package has never been configured. Configuring with default flags. If this fails, please run configure manually. Resolving dependencies... Configuring muesli-0... Building muesli-0... Preprocessing executable 'Muesli' for muesli-0... [1 of 2] Compiling Muesli ( Muesli.hs, dist/build/Muesli/Muesli-tmp/Muesli.o ) [2 of 2] Compiling Main ( Main.hs, dist/build/Muesli/Muesli-tmp/Main.o ) Linking dist/build/Muesli/Muesli ... cabal build 567.09s user 79.04s system 116% cpu 9:16.86 total ‰ du -sh dist/build/Muesli/Muesli 10M dist/build/Muesli/Muesli ‰ strip dist/build/Muesli/Muesli ‰ du -sh dist/build/Muesli/Muesli 6.2M dist/build/Muesli/Muesli Три гига рамы выжрал алсо.
#YNTFUD (0+1) / @l29ah / 2866 дней назад
У меня одного ghc-7.10.3 компилит многократно медленнее чем ghc-7.10.2? // потерял тред на жуйке про это явление
#FGF2J4 (0) / @l29ah / 2914 дней назад
Кому занести соточку чтобы в ghci появился vi mode?
#IVIMB7 (4) / @l29ah / 2979 дней назад

the Strict language extension*

Add a new language extension -XStrict which turns all bindings strict
as if the programmer had written a ! before it. This also upgrades
ordinary Haskell to allow recursive and polymorphic strict bindings.

https://github.com/ghc/ghc/commit/46a03fbec6a02761db079d1746532565f34c340f

Все теперь можно думать о том, чтобы учить хаскель. // Ну или Ocaml

Кстати, спалите haskell vs ocaml в вопросах:
* C-FFI
* многопоточности
* ease of deployment
* поддержки ARM
* легкости получения soft realtime

Олсо, кто-нить объекты в Ocaml юзает или это шутка?
Наткнулся на такой комент на HN:
/However, with a few minor tweaks (e.g. an option type), I would rather have the C# type inference than the OCaml one. The reason is that, if I want to do something very clever, I will not find myself limited to code that I can actually prove to the OCaml compiler as correct: I have, time and time again, resorted to reflection and code generation to work around such situations. In other words C#'s Obj.magic is a lot more powerful (and safe, and expressive) than OCaml's.

A fairly good example is Eliom's way of expressing the parameters of a service. In C# you would write in a PageController class

public Details Update(PageId id, UserId user, [PostBody] Details body) 

and have your web framework automatically bind this to POST /page/update/{id}?user={user} with the appropriate serialization for PageId and UserId. And writing such a framework is easy: a couple hundred lines of code, with run-time type safety.

In OCaml you have to understand the entire Eliom_parameter framework: https://ocsigen.org/eliom/4.2/api/server/Eliom_parameter Just think of the mental firepower needed to create that framework in the first place!/

#QQMYMN (47+2) / @ninesigns / 3054 дня назад
#error No implementation for getProcessCPUTime() available. Мне нужно наколдовать какую-то волшебную чародейскую магию чтобы ghc собрался с musl?
#0B7Y4Q (6+1) / @l29ah / 3085 дней назад
ghc
libraries/integer-gmp2/cbits/wrappers.c:41:3: error: WORD_SIZE_IN_BITS != GMP_LIMB_BITS not supported T_T
#AYYKH4 (0) / @l29ah / 3204 дня назад
ghc
Посоны, в генте как-то можно поставить несколько ghc? С ходу не гуглится
#YCJ0GC (6) / @grouzen / 3326 дней назад

Вот скажите, в хаскеле же есть средства против DRY?
Я практически не знаю хаскель, учил только Standart ML слегка. Решил почитать исходники GHC. Как это понимать https://github.com/ghc/ghc/blob/master/compiler/codeGen/CgUtils.hs#L27 https://github.com/ghc/ghc/blob/master/compiler/codeGen/StgCmmArgRep.hs#L120 ? Это что, нельзя сделать короче? Или это сгенерированные исходники?

#8TPSY1 (7) / @j123123 / 4006 дней назад

Prelude> :l /tmp/a.hs
[1 of 1] Compiling Main ( /tmp/a.hs, interpreted )
Ok, modules loaded: Main.
*Main> :trace c
"Stopped at <exception thrown>
_exception :: e = _
[<exception thrown>] *Main> :back
Logged breakpoint at /tmp/a.hs:1:5-11
_result :: [a]
[-1: /tmp/a.hs:1:5-11] *Main> :l
Ok, modules loaded: none.
Prelude> :hist
Not stopped at a breakpoint

#IOZI08 (1) / @l29ah / 4043 дня назад
ipv6 ready BnW для ведрофона BnW на Реформале Викивач Котятки

Цоперайт © 2010-2016 @stiletto.