milosn has quit [Remote host closed the connection]
milosn has joined #ocaml
ygrek has joined #ocaml
watermind has quit [Quit: Konversation terminated!]
Xenasis has quit [Remote host closed the connection]
Neros has quit [Ping timeout: 240 seconds]
milosn has quit [Ping timeout: 260 seconds]
milosn has joined #ocaml
strobegen has joined #ocaml
ggole has joined #ocaml
cesar has joined #ocaml
cesar is now known as Guest17
<ggole>
Is corebuild basically modified ocamlbuild?
<ggole>
Ah, it's a wrapper
ollehar has quit [Ping timeout: 245 seconds]
pango has quit [Ping timeout: 260 seconds]
Guest17 has quit [Remote host closed the connection]
darkf has quit [Read error: Connection reset by peer]
darkf has joined #ocaml
snyp has joined #ocaml
snyp has quit [Client Quit]
shinnya has quit [Read error: Operation timed out]
WraithM has joined #ocaml
boogie has quit [Remote host closed the connection]
darkf has quit [Read error: Connection reset by peer]
darkf has joined #ocaml
darkf has quit [Changing host]
darkf has joined #ocaml
jao has quit [Ping timeout: 248 seconds]
Kakadu has joined #ocaml
shinnya has joined #ocaml
pango has joined #ocaml
WraithM has quit [Ping timeout: 260 seconds]
groovy2shoes has quit [Quit: groovy2shoes]
WraithM has joined #ocaml
<adrien>
corebuild?
yacks has quit [Ping timeout: 260 seconds]
yacks has joined #ocaml
groovy2shoes has joined #ocaml
yacks has quit [Read error: Operation timed out]
<jpdeplaix>
ggole: it's a wrapper
<jpdeplaix>
it's a script that does basically « ocamlbuild -package core and stuffs »
<ggole>
Yep, got it
* ggole
back in a while
ggole has quit []
kyrylo has joined #ocaml
WraithM has quit [Read error: Operation timed out]
Simn has joined #ocaml
<adrien>
I'm sad
<adrien>
we've almost spent a whole week without a new build system
<Kakadu>
sarcasm?
<adrien>
:)
yacks has joined #ocaml
milosn has quit [Ping timeout: 245 seconds]
milosn has joined #ocaml
demonimin has joined #ocaml
zpe has joined #ocaml
milosn has quit [Ping timeout: 248 seconds]
milosn has joined #ocaml
milosn has quit [Ping timeout: 265 seconds]
milosn has joined #ocaml
ulfdoz has joined #ocaml
<def-lkb>
,/wi27
<def-lkb>
oups, sry
milosn has quit [Ping timeout: 252 seconds]
ygrek has quit [Ping timeout: 240 seconds]
agnoctone has joined #ocaml
xkb has joined #ocaml
jlouis has quit [Ping timeout: 245 seconds]
jlouis has joined #ocaml
orbitz has quit [Ping timeout: 272 seconds]
orbitz has joined #ocaml
milosn has joined #ocaml
plugwash_ has joined #ocaml
bentnib has quit [Ping timeout: 252 seconds]
jlouis has quit [Ping timeout: 245 seconds]
jlouis has joined #ocaml
bentnib has joined #ocaml
milosn has quit [Ping timeout: 264 seconds]
milosn has joined #ocaml
<gasche>
an interesting code pattern using the 4.01 application operators
<gasche>
people often complain that (List.map : ('a -> 'b) -> 'a list -> 'b list) is not a convenient parameter order, because the function tends to be longer and you want to write it last
milosn has quit [Ping timeout: 240 seconds]
<gasche>
there are well-known solution using named arguments, but now you can just use
<gasche>
the_list |> List.map (fun ....)
<gasche>
if you like being extra clever, you can even pipe those with
<gasche>
(though I must admit I'm tempted to have one a few times a year)
<gasche>
(sometimes I look at someone's work and I'm tempted to send a very short email like "I read your article/sourcode blah and it's nice work, thanks"; I think it would work better as a tweet)
<gasche>
my solutions right now is to wait to meet that person at a conference
<gasche>
"Your master thesis you wrote 30 years ago? It's the best master thesis I ever read."
<gasche>
(20 years ago)
<rks`>
btw gasche, any news about the article hnrgrgr was supposed to write on gagallium?
milosn has joined #ocaml
<gasche>
I'm happy you ask about that, rks` , because we should totally highlight hnrgrgr about that
tane has joined #ocaml
<Kakadu>
> if you like being extra clever, you can ....
<Kakadu>
Who am I if I prefer List.map xs ~f:(....) ?
<gasche>
possibly, a reasonable person
<gasche>
the (@@) trick is useful when you want to write code in a monadic style without piling up parentheses, though
milosn has quit [Remote host closed the connection]
<flux>
gasche, I actually make use of flip and @@ in those cases. flip List.iter list @@ fun element -> ..
<flux>
I suppose using flip is bad form, but on the other hand, when you see it, you learn to see through the pattern
<flux>
but perhaps |> would be a more modern approach
ulfdoz_ has joined #ocaml
milosn has joined #ocaml
<gasche>
flux: I don't have anything against flip, it's just that (|>) is now in the minimal library everyone has access to
ulfdoz has quit [Ping timeout: 260 seconds]
ulfdoz_ is now known as ulfdoz
<gasche>
hm
<flux>
gasche, right, it was added to Pervasives?
<gasche>
in some situations I think |> can let you get away with less parentheses
<gasche>
yes
<gasche>
init_element |> Array.init ilen jlen
<flux>
I think that would be a bit confusing use of |>, on par with flip :)
<flux>
(or maybe not)
<gasche>
yeah, that's the risk with those clever operators, you can make code unreadable if you're not careful
<flux>
but now something completely different: my segfaulting app segfaults no more after I removed: image := Some (Cairo.Image.create_for_data8 rgb_data Cairo.Image.RGB24 width height, width, height);
<gasche>
oh, I have to go :-'
<flux>
but I guess it could be the input data as well, need to check that.
milosn has quit [Ping timeout: 248 seconds]
ygrek has joined #ocaml
milosn has joined #ocaml
pango has quit [Ping timeout: 252 seconds]
watermind has joined #ocaml
<flux>
it was a bug in my code \o/
<flux>
Gc.major ()-debugging found the correct area almost immediately
<adrien>
:)
<Kakadu>
it happens :)
<flux>
it'd be a ton more frustrating if it had been in someone else's code :)
<adrien>
flux: now that you're an expert in C bindings, I'm sure you could easy do one for me
<flux>
but in this case it happened that I had added a new field to a record that's allocated from C, but the allocation itself didn't account for that (so it allocated one field too little)
<flux>
kakadu, I have a lablgtk-app that streams multiple multipart-jpeg streams over network and draws them into their own widgets with cairo (with scaling etc). do you think I would be able to implement that with your qt5 code?
<flux>
I'm also hoping to let the user to easily rearrange the streams in the screen via mouse
<flux>
so if I were using qt4 I would probably have a QGraphicsScene instead of widgets..
<Kakadu>
What is multipart-jpeg stream?
<flux>
it's a http GET that keeps on giving jpeg images
pango has joined #ocaml
<flux>
it's like that the response is Content-Type: application/multipart;boundary=tehboundary
<flux>
and then the stream starts like: --theboundary
<flux>
Content-Length: 30203
<flux>
<flux>
and content here, followed by a new --theboundary
<flux>
each block of data in this case is a separate jpeg image
reynir has joined #ocaml
<flux>
currently my biggest time consumer is libjpeg, but I should investigate into using turbojpeg, it apparently can be up to 5 times as fast as libjpeg
<Kakadu>
So, app should just keep connection and resend data to some picture control?
<flux>
yes
<Kakadu>
why do you need libjpeg?
<flux>
to decode the jpeg frame so I can draw them with cairo
ulfdoz has quit [Remote host closed the connection]
<reynir>
I'm having problems installing lwt from opam. It can't find the package 'wikidoc', and neither can I.
<flux>
so qt probably has some nice way of decoding/drawing jpeg images, but doing it myself can be better if it lets me to make use of turbojpeg
ulfdoz has joined #ocaml
BitPuffin has joined #ocaml
<flux>
the number of streams to show should be possible to change at runtime ("add new stream" etc)
milosn has quit [Ping timeout: 265 seconds]
milosn has joined #ocaml
milosn has quit [Ping timeout: 245 seconds]
<Kakadu>
Hmmm
<Kakadu>
I'm afraid everything is not as easy as I thought
<Kakadu>
I can't google pure QML way to construt images from raw data
<Kakadu>
They recommend to use QImageProvider that is not included int my library
<Kakadu>
Other things like threads are already tested
<Kakadu>
One fella is making SeaBattle game with lablqt
<reynir>
Ah thanks. I need to recompile ssl, it seems
<Kakadu>
okay
w0rm has joined #ocaml
<reynir>
My packagemanager has upgraded ocaml since I compiled all my opam packages :)
<Kakadu>
You can compile your own ocaml with `opam switch 4.01.0`
w0rm has quit [Client Quit]
w0rm has joined #ocaml
ulfdoz has quit [Ping timeout: 245 seconds]
milosn has joined #ocaml
jpdeplaix has quit [Ping timeout: 240 seconds]
jpdeplaix has joined #ocaml
w0rm has quit [Ping timeout: 252 seconds]
dant3 has joined #ocaml
ulfdoz has joined #ocaml
ulfdoz has quit [Remote host closed the connection]
jonludlam has joined #ocaml
ulfdoz has joined #ocaml
pango has quit [Ping timeout: 264 seconds]
ulfdoz has quit [Ping timeout: 248 seconds]
jonludlam has quit [Ping timeout: 248 seconds]
mort___ has joined #ocaml
<flux>
used turbojpeg for jpeg decoding, gained 41% performance
jonludlam has joined #ocaml
michael_lee has joined #ocaml
pango has joined #ocaml
michael_lee has quit [Max SendQ exceeded]
<adrien>
and as far as I know, lost conformance too :P
ggole has joined #ocaml
<flux>
conformance of what?
<flux>
I don't get pixel perfect images now?
<adrien>
as far as I understand, libjpeg doesn't evolve very quickly while jpegturbo people want to write most code in ASM but they also don't care too much about the standard
Neros has joined #ocaml
<flux>
well, libjpeg does do some evolving, even so far the libturbojpeg folks - and for example Fedora - doesn't want to upgrade to their new interfaces
rand000 has quit [Quit: leaving]
<flux>
also libjpeg folks also want to bring in support for jpeg-variants that are not in any level 'approved' or standard
<flux>
but if one can get much better performance by decoding a format lossy in the first place, then I rather let them :)
<flux>
my plan is to decode at least 6 video streams and with turbojpeg that means I can use 41% less cores than with libjpeg
<adrien>
yeah, sure, if you're on a fairly well-known environment, you probably won't have issue
<flux>
at least if turbojpeg behaves sanely in the case it finds something it cannot handle, one can just fall back to libjpeg
<Kakadu>
so, there is not libjpeg-turbo built in Qt
<Kakadu>
But afair while building Qt there is option to `use system image library`. No idea what does it mean and how it works
<adrien>
Qt bundles its deps in its sources
<Kakadu>
adrien: libjpeg only
<adrien>
so you can either use the bundled zlib, libjpeg, ... or use one from the system
<adrien>
a few others too :)
<flux>
so if you have the libjpeg-compatible version of libturbojpeg installed, you may be able to compile qt with that
<flux>
but turbojpeg also comes with its simpler interface that isn't libjpeg-like
<flux>
it's more like libz's interface
<adrien>
weeeeeeeee \o/
<adrien>
yypkg/win.c:84:5: error: invalid use of void expression caml_failwith(get_error_message(s, sizeof(s)));
plugwash_ has quit [Ping timeout: 252 seconds]
<flux>
but I don't think there's any benefit in using that, if you know how to use libjpeg. though I will be using it because it appears debian doesn't come with libturbojpeg with the libjpeg interface, so I use the simple interface..
<adrien>
ah, stupid me: get_error_message() returns void now
<flux>
good that it works for this case but I already know another program where I cannot use it because of the simple interface
tane has quit [Ping timeout: 260 seconds]
ulfdoz has joined #ocaml
agnoctone has quit [Ping timeout: 272 seconds]
mfp has quit [Read error: Connection reset by peer]
mfp has joined #ocaml
darkf has quit [Quit: Leaving]
ocp has joined #ocaml
mfp_ has joined #ocaml
mfp has quit [Ping timeout: 260 seconds]
Kakadu has quit [Read error: Connection reset by peer]
Kakadu has joined #ocaml
talzeus__ has quit [Read error: Connection reset by peer]
ontologiae has joined #ocaml
wolfnn has joined #ocaml
vpm has quit [Quit: co'o]
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
vpm has joined #ocaml
spacun has joined #ocaml
avsm has quit [Quit: Leaving.]
ocp has quit [Ping timeout: 252 seconds]
troydm has quit [Quit: What is hope? That all of your wishes and all of your dreams come true? (C) Rau Le Creuset]
troydm has joined #ocaml
mort___ has quit [Quit: Leaving.]
dant3 has quit [Remote host closed the connection]
dant3 has joined #ocaml
zpe has quit [Remote host closed the connection]
ocp has joined #ocaml
milosn has quit [Ping timeout: 264 seconds]
milosn has joined #ocaml
ocp has quit [Ping timeout: 248 seconds]
groovy2shoes has quit [Quit: groovy2shoes]
boogie has joined #ocaml
zpe has joined #ocaml
zpe has quit [Remote host closed the connection]
boogie has quit [Remote host closed the connection]
boogie has joined #ocaml
boogie has quit [Ping timeout: 265 seconds]
boogie has joined #ocaml
tani has quit [Quit: Verlassend]
osa1_ has joined #ocaml
ontologiae has quit [Quit: WeeChat 0.4.0]
osa1 has quit [Ping timeout: 245 seconds]
ulfdoz has quit [Read error: Operation timed out]
spacun has quit [Ping timeout: 260 seconds]
mort___ has joined #ocaml
ulfdoz has joined #ocaml
cesar has joined #ocaml
cesar is now known as Guest48458
Guest48458 has quit [Remote host closed the connection]
w0rm has joined #ocaml
w0rm has quit [Ping timeout: 245 seconds]
ocp has joined #ocaml
Kakadu has quit [Read error: Connection reset by peer]
Kakadu has joined #ocaml
jbrown has joined #ocaml
rand000 has joined #ocaml
Kakadu has quit [Client Quit]
plugwash_ has joined #ocaml
plugwash_ has quit [Read error: Connection reset by peer]
zpe has joined #ocaml
zpe has quit [Ping timeout: 240 seconds]
ttamttam has joined #ocaml
ttamttam has quit [Quit: ttamttam]
dant3_ has joined #ocaml
tov_ has quit [Quit: leaving]
dant3 has quit [Ping timeout: 252 seconds]
milosn has quit [Ping timeout: 245 seconds]
milosn has joined #ocaml
ttamttam has joined #ocaml
shinnya has quit [Ping timeout: 248 seconds]
_5kg_ has quit [K-Lined]
mcclurmc has joined #ocaml
groovy2shoes has joined #ocaml
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ocaml
rand000 has quit [Ping timeout: 265 seconds]
ttamttam has quit [Quit: ttamttam]
mcclurmc has quit [Remote host closed the connection]
ocp has quit [Ping timeout: 248 seconds]
tov has joined #ocaml
oriba has joined #ocaml
zpe has joined #ocaml
CamelFodder has joined #ocaml
mcclurmc has joined #ocaml
avsm has joined #ocaml
rand000 has joined #ocaml
boogie has quit [Remote host closed the connection]
gasche has left #ocaml []
gasche has joined #ocaml
mcclurmc has quit [Remote host closed the connection]
zpe has quit [Remote host closed the connection]
chturne has quit [Quit: Leaving]
zpe has joined #ocaml
rand000 has quit [Ping timeout: 265 seconds]
ygrek has quit [Ping timeout: 264 seconds]
zpe has quit [Remote host closed the connection]
Kakadu has joined #ocaml
dant3_ has quit [Remote host closed the connection]
dant3 has joined #ocaml
fschwidom has joined #ocaml
rand000 has joined #ocaml
mort___ has quit [Quit: Leaving.]
ggole has quit []
zpe has joined #ocaml
milosn has quit [Ping timeout: 240 seconds]
zpe has quit [Ping timeout: 252 seconds]
milosn has joined #ocaml
nikki93 has joined #ocaml
ollehar has joined #ocaml
nikki93 has quit [Remote host closed the connection]
nikki93 has joined #ocaml
w0rm has joined #ocaml
w0rm has quit [Max SendQ exceeded]
w0rm has joined #ocaml
w0rm has left #ocaml []
<gasche>
Kakadu: I just saw your announce mail and webpage
<gasche>
that's great news, but you need some double-checking of your english
* Kakadu
hides in terror
<gasche>
I'll try to come up with a pull request
<Kakadu>
Well, I don't see any spelling errors so it seems that I have grammar problems
<Kakadu>
maybe "connect them*" ?
<gasche>
hm
<gasche>
it's rather that the formulation is awkward to read
<gasche>
I'm doing a first pass on index.html
<gasche>
Kakadu: do you prefer using "I", or are you also fine with "we"?
<gasche>
(most english texts seem to use "we", even when written by a single person)
<Kakadu>
Ah, you talking about web page in whole and not mine post in mail list?
<gasche>
not the post, no
<Kakadu>
I'm going to study your remark tomorrow, gasche
<Kakadu>
I home that this Monday will not be so consumptive
toroidalcode has joined #ocaml
<Kakadu>
remarks*
Kakadu has quit []
lasts_ has joined #ocaml
milosn has quit [Ping timeout: 260 seconds]
milosn has joined #ocaml
thomasga has joined #ocaml
ocp has joined #ocaml
nikki93 has quit [Remote host closed the connection]
ocp has quit [Ping timeout: 260 seconds]
milosn has quit [Ping timeout: 248 seconds]
thomasga has quit [Quit: Leaving.]
milosn has joined #ocaml
nikki93 has joined #ocaml
darkf has joined #ocaml
nikki93 has quit [Remote host closed the connection]
rand000 has quit [Quit: leaving]
thomasga has joined #ocaml
thomasga has quit [Client Quit]
strobegen has quit [Quit: Leaving.]
thomasga has joined #ocaml
thomasga has quit [Quit: Leaving.]
watermind has quit [Quit: Konversation terminated!]
oriba has quit [Quit: oriba]
jao has joined #ocaml
jao has quit [Changing host]
jao has joined #ocaml
avsm has quit [Quit: Leaving.]
thomasga has joined #ocaml
dant3 has quit [Remote host closed the connection]
thomasga has quit [Client Quit]
thomasga has joined #ocaml
nazary has joined #ocaml
nazary has quit [Remote host closed the connection]
thomasga has quit [Quit: Leaving.]
CamelFodder has quit [Remote host closed the connection]
milosn has quit [Ping timeout: 264 seconds]
milosn has joined #ocaml
WraithM has joined #ocaml
jao has quit [Ping timeout: 245 seconds]
kyrylo has quit [Read error: Operation timed out]
wolfnn has quit [Read error: Operation timed out]
madroach has quit [Ping timeout: 264 seconds]
fschwidom has quit [Remote host closed the connection]