<eeks_>
The full error: Error: This expression has type m list but an expression was expected of type m list The type constructor m would escape its scope
_berke_ has quit [Ping timeout: 265 seconds]
lokien_ has quit [Quit: Connection closed for inactivity]
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yegods has joined #ocaml
struk|desk is now known as struk|desk|away
ril has joined #ocaml
FreeBirdLjj has joined #ocaml
govg has joined #ocaml
<teknozulu_>
I'm trying to do stuff over a persistent ssh subprocess by calling bash over ssh and writing to stdin. However, with parsing stdout, there is a problem: bash isn't going to send an EOF when whichever command executed through it finishes
<teknozulu_>
One approach would be to make it append something to the end of the result to signify the end, but if something more elegant exists im all ears
foolishmonkey has quit [Quit: Leaving]
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sh0t has quit [Remote host closed the connection]
govg has quit [Ping timeout: 276 seconds]
govg has joined #ocaml
ncthom91 has joined #ocaml
palomer has quit [Quit: palomer]
struk|desk|away is now known as struk|desk
ril has joined #ocaml
nullremains has quit [Ping timeout: 264 seconds]
mort___ has quit [Quit: Leaving.]
struk|desk2 has joined #ocaml
struk|desk has quit [Ping timeout: 250 seconds]
xnil has joined #ocaml
<xnil>
What's the current state of the GC? Is concurrency built in yet, or are we still waiting on OCaml 4.03 first?
<xnil>
If concurrency is a large concern for me, would I be better served by heading over to another language, such as an SML?
xnil has left #ocaml ["Leaving"]
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raphaelss has quit [Ping timeout: 250 seconds]
ygrek has quit [Ping timeout: 256 seconds]
cody` has quit [Quit: Connection closed for inactivity]
pierpa has quit [Ping timeout: 240 seconds]
ncthom91 has joined #ocaml
ncthom91 has quit [Max SendQ exceeded]
ncthom91 has joined #ocaml
ncthom91 has quit [Max SendQ exceeded]
ncthom91 has joined #ocaml
ncthom91 has quit [Max SendQ exceeded]
ncthom91 has joined #ocaml
ncthom91 has quit [Max SendQ exceeded]
ncthom91 has joined #ocaml
yegods has quit [Remote host closed the connection]
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johnelse has quit [Ping timeout: 240 seconds]
johnelse has joined #ocaml
johnelse is now known as Guest5968
ygrek has joined #ocaml
eeks_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_berke_ has joined #ocaml
garriguejej has joined #ocaml
garriguejej has quit [Client Quit]
garriguejej has joined #ocaml
Sorella has quit [Quit: Connection closed for inactivity]
ril is now known as ril[away]
ril[away] is now known as ril
<smondet>
teknozulu_: what I do: my permanent ssh subprocess is started with `ControlPath`/`ControlMaster` options; then I run other ssh processes that uses the same connection (with the `ControlPath`) for each command (it's there and also in other modules ;) https://github.com/hammerlab/ketrew/blob/master/src/lib/process_holder.ml#L155 )
struk|desk2 is now known as struk|desk|away
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
struk|desk|away is now known as struk|desk2
MercurialAlchemi has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 260 seconds]
darkf has joined #ocaml
<teknozulu_>
smondet: cool stuff, I didnt know about multiplexing. however I'm not sure if its what I want, from what I understand it still has to establish a new socket connection for each multiplexed connection. I'm looking to just repeat a single command, so a single connection that runs bash seemed intuitive
<def`>
teknozulu_: it reuses the same network connection
<def`>
everything is multiplexed on the same tcp session
<def`>
at the unix level yes, new stuff happens on both ends
thesnowdog3 has quit [Read error: Connection reset by peer]
JacobEdelman has quit [Quit: Connection closed for inactivity]
lokien_ has joined #ocaml
thesnowdog3 has joined #ocaml
Simn has joined #ocaml
garriguejej has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
hnagamin has joined #ocaml
larhat1 has quit [Quit: Leaving.]
Haudegen has quit [Ping timeout: 240 seconds]
ygrek has quit [Ping timeout: 240 seconds]
prepor has joined #ocaml
Haudegen has joined #ocaml
darkf_ has joined #ocaml
darkf has quit [Ping timeout: 265 seconds]
darkf_ is now known as darkf
zpe has joined #ocaml
prepor has quit [Quit: Leaving.]
aantron has quit [Remote host closed the connection]
sepp2k has joined #ocaml
hnagamin has quit [Quit: さようなら]
hnagamin has joined #ocaml
lokien_ has quit [Quit: Connection closed for inactivity]
prepor has joined #ocaml
struk|desk2 is now known as struk|desk|away
mort___ has joined #ocaml
struk|desk|away is now known as struk|desk2
hnagamin has quit [Ping timeout: 240 seconds]
hnagamin has joined #ocaml
ontologiae has joined #ocaml
hnagamin has quit [Max SendQ exceeded]
hnagamin has joined #ocaml
zpe_ has joined #ocaml
zpe has quit [Ping timeout: 250 seconds]
struk|desk2 is now known as struk|desk|away
jwatzman|work has joined #ocaml
silver has joined #ocaml
AltGr has joined #ocaml
toolslive has joined #ocaml
_andre has joined #ocaml
mort___ has quit [Quit: Leaving.]
kakadu has joined #ocaml
prepor has quit [Quit: Leaving.]
prepor has joined #ocaml
prepor has quit [Client Quit]
zpe has joined #ocaml
zpe_ has quit [Ping timeout: 265 seconds]
hnagamin has quit [Ping timeout: 240 seconds]
Guest5968 is now known as johnelse
lokien_ has joined #ocaml
AltGr has left #ocaml [#ocaml]
prepor has joined #ocaml
yegods has joined #ocaml
cody` has joined #ocaml
Haudegen has quit [Ping timeout: 264 seconds]
virtualeyes has joined #ocaml
virtualeyes is now known as nullremains
Haudegen has joined #ocaml
yegods has quit []
badon has quit [Ping timeout: 250 seconds]
Sorella has joined #ocaml
ubbersith has joined #ocaml
ggole has joined #ocaml
bernardofpc has quit [Ping timeout: 250 seconds]
prepor1 has joined #ocaml
bernardofpc has joined #ocaml
prepor has quit [Ping timeout: 250 seconds]
kushal has quit [Ping timeout: 240 seconds]
kushal has joined #ocaml
kushal has quit [Excess Flood]
zaquest has joined #ocaml
BitPuffin has joined #ocaml
elazul has joined #ocaml
BitPuffin has quit [Ping timeout: 250 seconds]
BitPuffin has joined #ocaml
psy_ has quit [Read error: Connection reset by peer]
sh0t has joined #ocaml
sh0t has quit [Client Quit]
djellemah has quit [Ping timeout: 264 seconds]
ryanartecona has joined #ocaml
lokien_ has quit [Quit: Connection closed for inactivity]
AltGr has joined #ocaml
elazul has quit [Quit: Leaving]
silver has quit [Quit: rakede]
silver has joined #ocaml
pierpa has joined #ocaml
govg has quit [Ping timeout: 240 seconds]
govg has joined #ocaml
hnagamin has joined #ocaml
hnagamin has quit [Client Quit]
eeks_ has joined #ocaml
yawnt has joined #ocaml
codefo has joined #ocaml
lokien_ has joined #ocaml
Haudegen has quit [Ping timeout: 240 seconds]
ryanartecona has quit [Ping timeout: 264 seconds]
struk|desk|away is now known as struk|desk2
segmond has quit [Ping timeout: 260 seconds]
Haudegen has joined #ocaml
zpe has quit [Remote host closed the connection]
segmond has joined #ocaml
hcarty has joined #ocaml
laurus has joined #ocaml
laurus has left #ocaml ["Leaving"]
gustav___ has quit [Remote host closed the connection]
ryanartecona has joined #ocaml
gustav_ has joined #ocaml
Mercuria1Alchemi has quit [Ping timeout: 240 seconds]
gustav_ is now known as gustav___
struk|desk2 is now known as struk|desk|away
struk|desk|away is now known as struk|desk2
xificurC has joined #ocaml
<xificurC>
hi, I haven't been here for a while, any big syntax/semantic-level changes since 4.02.0?
<hcarty>
Yeah, they're keeping the camlp4 versions (not sure if they'll be actively maintained?) and there's an opam repository PR in place to rename the existing packages to have camlp4-specific names
<xificurC>
it has 0 documentation though :D
<xificurC>
the github README says - For documentation & examples, see: ../../lib/sexplib/README.md
rbocquet has quit [Ping timeout: 240 seconds]
<xificurC>
that would be interesting to accomplish on a git clone
FreeBirdLjj has quit [Remote host closed the connection]
struk|desk2 is now known as struk|desk|away
corcote has joined #ocaml
govg has quit [Ping timeout: 240 seconds]
govg has joined #ocaml
govg has quit [Client Quit]
tane has joined #ocaml
MercurialAlchemi has joined #ocaml
AltGr has joined #ocaml
govg has joined #ocaml
<reynir>
heh
rpg_ has joined #ocaml
rpg_ has quit [Client Quit]
silver has quit [Quit: rakede]
psy has joined #ocaml
rpg_ has joined #ocaml
psy has quit [Max SendQ exceeded]
psy has joined #ocaml
rpg has quit [Ping timeout: 276 seconds]
yawnt has quit [Quit: leaving]
yawnt has joined #ocaml
slash^ has joined #ocaml
kushal has joined #ocaml
AltGr has left #ocaml [#ocaml]
tani has joined #ocaml
Sim_n has joined #ocaml
tane has quit [Ping timeout: 240 seconds]
Simn has quit [Ping timeout: 240 seconds]
codefo has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 265 seconds]
govg has joined #ocaml
gustav___ has quit [Ping timeout: 240 seconds]
ontologiae has quit [Ping timeout: 250 seconds]
<sspi>
any good reading tips for configuring ocamlbuild with multiple files?
gustav___ has joined #ocaml
<aantron>
what do you mean by configuring? building multiple targets? multiple source files? multiple plugin files?
<sspi>
aantron: multiple source files
<aantron>
generally you dont have to do anything, ocamlbuild automatically compiles the source files your target depends on.. as long as it can find them
darius93 has quit [Ping timeout: 260 seconds]
noplamodo has quit [Ping timeout: 260 seconds]
<sspi>
aantron: nevermind I got it - I'm still new to OCaml and wasn't aware of the proper conventions
<sspi>
(I didn't add the capitalized filename in front of the call I was making)
<aantron>
good :)
djellemah has joined #ocaml
<aantron>
yes, this is the module name.. takes a bit of getting used to
raphaelss has joined #ocaml
zaquest has quit [Ping timeout: 260 seconds]
Johann has quit [Ping timeout: 260 seconds]
w1gz has quit [Ping timeout: 260 seconds]
hnrgrgr has quit [Ping timeout: 260 seconds]
jerith has quit [Ping timeout: 260 seconds]
jerith has joined #ocaml
ril has joined #ocaml
noplamodo has joined #ocaml
darius93 has joined #ocaml
jwatzman|work has quit [Quit: jwatzman|work]
zaquest has joined #ocaml
w1gz has joined #ocaml
Johann has joined #ocaml
hnrgrgr has joined #ocaml
raphaelss has quit [Ping timeout: 250 seconds]
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
psy has quit [Disconnected by services]
psy_ has joined #ocaml
mort___ has joined #ocaml
rpg_ has quit [Quit: rpg_]
larhat1 has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
octachron has joined #ocaml
ril has joined #ocaml
rpg has joined #ocaml
Stalkr_ has joined #ocaml
kakadu has quit [Quit: Page closed]
jeffmo has joined #ocaml
ygrek has joined #ocaml
djellemah_ has joined #ocaml
ggole has quit []
raphaelss has joined #ocaml
djellemah has quit [Ping timeout: 240 seconds]
djellemah__ has joined #ocaml
djellemah__ is now known as djellemah
djellemah_ has quit [Ping timeout: 272 seconds]
mort___ has quit [Quit: Leaving.]
djellemah_ has joined #ocaml
djellemah has quit [Ping timeout: 272 seconds]
mort___ has joined #ocaml
Denommus has joined #ocaml
BitPuffin has quit [Ping timeout: 256 seconds]
xificurC has joined #ocaml
toolslive has quit [Ping timeout: 245 seconds]
prepor1 has quit [Quit: Leaving.]
igoroliveira has joined #ocaml
mort___ has quit [Quit: Leaving.]
ryanartecona has joined #ocaml
toolslive has joined #ocaml
mort___ has joined #ocaml
sh0t has joined #ocaml
mort___ has quit [Client Quit]
kakadu has joined #ocaml
raphaelss has quit [Quit: Leaving]
xavierm02 has joined #ocaml
prepor has joined #ocaml
mort___ has joined #ocaml
<kakadu>
Let's have a value of some type where some parts are replaced by not yet known variables
<kakadu>
for example, let xxx = [ var1; 2; var3]
<kakadu>
where (var1, var2: int logic
<kakadu>
)
<kakadu>
When we will continue evaluation, we will get real values of var1 and var2 and we will be able to say, for example, let xxx=[1;2;3] and var1 <~ 1 and var3 <~3
lokien_ has quit [Quit: Connection closed for inactivity]
<kakadu>
At the moment is it possible (not type-safe) to iterate over blocks and check field if they seems to be a logic variable
<kakadu>
But If I want it to be typesafe I need to construct from type t a type 'partial_t'
<kakadu>
And use it for unification/deduction
<kakadu>
And this stuff kind of scaries me
Kristien has joined #ocaml
<xavierm02>
Hey. I have two classes (GMenu.menu GMenu.factory and GMenu.menu_shell GMenu.factory) and I'm trying to use them to build a Lablgtk2 menu from a tree using them. It works but I have to duplicate my function to have one for the first layer and then the recursive one because of type errors. Is there some way I could merge both functions ? http://pastebin.com/6VqSfF1A
Kristien is now known as ely-se
Haudegen has quit [Ping timeout: 240 seconds]
ryanartecona has quit [Quit: ryanartecona]
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ryanartecona has joined #ocaml
<octachron>
xavierm02, it looks like your two functions could be fusioned by adding a polymorphic type annotation
<octachron>
something like "let rec build_menu_content: 'a. (#GMenu.menu as 'a) GMenu.factory -> menu_content -> unit"
Haudegen has joined #ocaml
_andre has quit [Quit: leaving]
ril has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
zaquest has quit [Quit: Leaving]
<xavierm02>
octachron: Yup, it works (with menu_shell instead of menu). Thanks :)
ryanartecona has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
toolslive has quit [Ping timeout: 240 seconds]
xavierm02 has quit [Quit: Page closed]
foolishmonkey has quit [Ping timeout: 250 seconds]
toolslive has joined #ocaml
lobo has joined #ocaml
Algebr has joined #ocaml
djellemah__ has joined #ocaml
mort___ has quit [Quit: Leaving.]
djellemah_ has quit [Ping timeout: 264 seconds]
mort___ has joined #ocaml
Denommus has quit [Quit: rebooting]
djellemah_ has joined #ocaml
AltGr has joined #ocaml
enquora has joined #ocaml
djellemah__ has quit [Ping timeout: 256 seconds]
mort___ has quit [Quit: Leaving.]
rpg_ has joined #ocaml
rpg_ has quit [Client Quit]
rpg has quit [Ping timeout: 272 seconds]
yawnt has quit [Ping timeout: 256 seconds]
ryanartecona has quit [Quit: ryanartecona]
lokien_ has joined #ocaml
ryanartecona has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 260 seconds]
ryanartecona has quit [Quit: ryanartecona]
raphaelss has joined #ocaml
ryanartecona has joined #ocaml
aantron has quit [Ping timeout: 256 seconds]
octachron has quit [Quit: Leaving]
foolishmonkey has joined #ocaml
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_berke_ has quit [Ping timeout: 245 seconds]
_berke_ has joined #ocaml
ril has joined #ocaml
xificurC has quit [Quit: WeeChat 1.3]
silver has joined #ocaml
j0sh has quit [Remote host closed the connection]
darkf has quit [Quit: Leaving]
<lokien_>
hey. are there things that haskell can do and ocaml can't? are you able to do all these folds, pattern matching etc?
<nv_>
lokien_: laziness by default enables some things
<lokien_>
because now I'm not sure yet if I want to devote all my spare time to learn ocaml
mort___ has joined #ocaml
<nv_>
like in haskell it becomes a whole lot easier to work with infinite lists and such
<nv_>
but things like folds, pattern matching, etc. are all present in ocaml
mort___ has left #ocaml [#ocaml]
<lokien_>
nv_: but ocaml does have laziness, doesn't it?
<lokien_>
like, easy, real laziness
<lokien_>
not hacky one
<nv_>
yes, just not in the same way
<nv_>
like in Haskell
<nv_>
you can write out any list and by default it is lazy
tani has quit [Quit: Verlassend]
<nv_>
in OCaml you have to make it lazy yourself
<nv_>
or just the way functions get evaluated
<nv_>
etc.
<nv_>
it isn't impossible to do it the lazy way, just takes slightly more work in ocaml
<nv_>
at the same time, it's quite likely that 90% of what you'll be doing is going to benefit from strictness/isn't going to benefit from laziness
<lokien_>
pfft, I can live with that, if I get c++ performance back
<lokien_>
thanks nv_, I'll read my books soon
hcarty has quit [Ping timeout: 245 seconds]
AltGr has left #ocaml [#ocaml]
<Algebr>
almost c++ performance
jackweirdy has joined #ocaml
AltGr has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
AltGr has left #ocaml [#ocaml]
AltGr has joined #ocaml
manizzle has quit [Ping timeout: 260 seconds]
<lokien_>
Algebr: iirc, naive ocaml is faster than naive c++. and optimised versions aren't too far from each other
<lokien_>
but I may be wrong
<companion_cube>
well depends on what you do
<lokien_>
by the way, what about ocaml parallelism?
<lokien_>
companion_cube: you mean?
<companion_cube>
for computations with lots of numbers and arrays and vectors, I think "naive" C++ will still be much better
<lokien_>
uh, yeah. like very advanced graphics and such
ely-se has quit [Quit: Leaving...]
sh0t has quit [Ping timeout: 240 seconds]
corcote has quit [Quit: WeeChat 1.3]
prepor has quit [Quit: Leaving.]
<Algebr>
lokien_: this is no way.
prepor has joined #ocaml
<Algebr>
OCaml will have a big garbage collected runtime compared to C++. I love OCaml no doubt but to say that its on c++ performance parity is not true.
<foolishmonkey>
garbage collecting is often better than naive constructors/destructors
Sim_n has quit [Quit: Leaving]
<def`>
(depends on the program of course... if it features complex control flow, structural sharing, ... OCaml will be hard to beat, if it's highly predictable array transformations, C++ will win)
foolishmonkey has quit [Remote host closed the connection]