Search Haskell Channel Logs

Saturday, February 18, 2017

#haskell channel featuring AndreasK, ph88^, athan, c_wraith,

athan 2017-02-18 00:30:53
Is a TChan similar to a list of items, where writing appends an element?
athan 2017-02-18 00:31:28
but without list or indexing operations
athan 2017-02-18 00:31:33
length**
athan 2017-02-18 00:31:45
(and in a concurrent setting, of course)
athan 2017-02-18 00:32:54
The reason I ask, is because I'm trying to model function application over a forked thread
ph88^ 2017-02-18 00:32:56
oh nice :) https://news.ycombinator.com/item?id=13674324
athan 2017-02-18 00:33:12
basically my idea is that `a -> b` could be modeled as `(TChan a, Async b)`
athan 2017-02-18 00:33:42
where the async thread also has access to the TChan reference in its scope, so it can peek at the "applications" so to speak
ph88^ 2017-02-18 00:34:05
anyone know which option that guy is talking about ?
c_wraith 2017-02-18 00:35:21
ph88^: something about split-objs
ph88^ 2017-02-18 00:36:21
aha it's here ! https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/phases.html
c_wraith 2017-02-18 00:38:23
athan: I'm not completely seeing what you mean, as an Async can only return once, where TChan is an unbounded queue
ph88^ 2017-02-18 00:38:29
for compiling with llvm i just have to download llvm with my package manager ?
c_wraith 2017-02-18 00:39:20
ph88^: you need the right version of llvm for your version of ghc. I know that has caused issues in the past.
ph88^ 2017-02-18 00:39:38
how do i know which version ?
ph88^ 2017-02-18 00:40:21
why is that even required ? did the llvm IR change that much between versions ?
ph88^ 2017-02-18 00:42:36
in the docs it says Currently LLVM 2.8 and later are supported.
ph88^ 2017-02-18 00:42:48
and also: Linux: Use your package management tool.
AndreasK 2017-02-18 00:43:13
LLVM IR has breaking changes with each point version iirc
ph88^ 2017-02-18 00:44:44
:(