adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.07.0 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.07/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml | Due to ongoing spam, you must register your nickname to talk on the channel
jao has joined #ocaml
thomas_scrace has joined #ocaml
thomas_scrace has quit [Ping timeout: 272 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ygrek has joined #ocaml
dmiles has joined #ocaml
ee_ks has quit [Ping timeout: 245 seconds]
ee_ks has joined #ocaml
mfp has quit [Ping timeout: 246 seconds]
kvda has joined #ocaml
Jesin has quit [Ping timeout: 252 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
malina has quit [Remote host closed the connection]
Jesin has joined #ocaml
Geekingfrog has quit [*.net *.split]
cross_ has quit [*.net *.split]
Cypi_ has quit [*.net *.split]
dogui has quit [*.net *.split]
tianon has quit [*.net *.split]
gargawel has quit [*.net *.split]
tokenrov1 has quit [*.net *.split]
Exagone313 has quit [*.net *.split]
lix has quit [*.net *.split]
cow-orker has quit [*.net *.split]
mathsm has quit [*.net *.split]
srax has quit [*.net *.split]
Guest50286 has quit [*.net *.split]
thegameg has quit [*.net *.split]
cow-orke1 has joined #ocaml
gargawel_ has joined #ocaml
thegameg_ has joined #ocaml
tokenrove has joined #ocaml
Geekingfrog_ has joined #ocaml
lix has joined #ocaml
mathsm has joined #ocaml
srax has joined #ocaml
dogui has joined #ocaml
Cypi has joined #ocaml
tianon has joined #ocaml
swistak35 has joined #ocaml
cross has joined #ocaml
tianon has quit [Changing host]
tianon has joined #ocaml
kvda has joined #ocaml
Exagone313 has joined #ocaml
dmiles has quit [Ping timeout: 246 seconds]
kvda has quit [Client Quit]
kvda has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jao has quit [Ping timeout: 252 seconds]
kvda has joined #ocaml
silver has quit [Quit: rakede]
tormen_ has joined #ocaml
tormen has quit [Ping timeout: 272 seconds]
thomas_scrace has joined #ocaml
thomas_scrace has quit [Ping timeout: 264 seconds]
jbrown has quit [Ping timeout: 252 seconds]
pierpa has quit [Quit: Page closed]
pierpal has joined #ocaml
ee_ks has quit [Ping timeout: 272 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
tormen has joined #ocaml
dmbaturin has quit [*.net *.split]
octachron has quit [*.net *.split]
apache2 has quit [*.net *.split]
aggelos_ has quit [*.net *.split]
theblatte has quit [*.net *.split]
so has quit [*.net *.split]
aggelos_ has joined #ocaml
apache2 has joined #ocaml
theblatte has joined #ocaml
octachron_ has joined #ocaml
dmbaturin has joined #ocaml
dmbaturin is now known as Guest89366
tormen_ has quit [Ping timeout: 264 seconds]
erkin has quit [Remote host closed the connection]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cobax has joined #ocaml
kvda has joined #ocaml
pierpal has quit [Remote host closed the connection]
thomas_scrace has joined #ocaml
thomas_scrace has quit [Ping timeout: 252 seconds]
neatonk has quit [Ping timeout: 240 seconds]
jack5638 has quit [Ping timeout: 245 seconds]
jack5638 has joined #ocaml
caltelt has quit [Ping timeout: 272 seconds]
ziyourenxiang has joined #ocaml
quipa has joined #ocaml
<cobax> is there something for OCaml like Gemstone, that allows transparent persistence to be used naturally from data structures and objects instead of using a relational database?
dmiles has joined #ocaml
quipa has quit [Ping timeout: 250 seconds]
srax has quit [Quit: WeeChat 1.6]
srax has joined #ocaml
thomas_scrace has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #ocaml
thomas_scrace has quit [Ping timeout: 252 seconds]
kvda has quit [Client Quit]
yurug has joined #ocaml
kvda has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quipa has joined #ocaml
bartholin has joined #ocaml
Haudegen has joined #ocaml
<discord> <rgrinberg> Nope
<discord> <rgrinberg> Marshal is the closest thing that would give you that transparency. But AFAIK gemstone has querying too
kvda has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #ocaml
kvda has quit [Ping timeout: 252 seconds]
dinosaure has joined #ocaml
orbifx has joined #ocaml
TheLemonMan has joined #ocaml
sagotch has joined #ocaml
ziyourenxiang has quit [Ping timeout: 252 seconds]
orbifx has quit [Ping timeout: 244 seconds]
dinosaure has quit [Ping timeout: 245 seconds]
ziyourenxiang has joined #ocaml
mfp has joined #ocaml
Geekingfrog_ has quit [Quit: ZNC 1.6.3 - http://znc.in]
wkalt16 has joined #ocaml
Geekingfrog has joined #ocaml
dinosaure has joined #ocaml
wkalt16 has quit [Remote host closed the connection]
AltGr has joined #ocaml
bartholin has quit [Remote host closed the connection]
ygrek has quit [Ping timeout: 272 seconds]
jao has joined #ocaml
dinosaure has quit [Quit: WeeChat 1.4]
dinosaure has joined #ocaml
benaux has quit [Remote host closed the connection]
ziyourenxiang has quit [Ping timeout: 252 seconds]
benaux has joined #ocaml
jao has quit [Ping timeout: 240 seconds]
benaux has quit [Remote host closed the connection]
benaux has joined #ocaml
thomas_scrace has joined #ocaml
AltGr has quit [Ping timeout: 250 seconds]
AltGr has joined #ocaml
roman1 has joined #ocaml
quipa has quit [Quit: Leaving]
roman1 has quit [Ping timeout: 252 seconds]
malina has joined #ocaml
sagotch has quit [Quit: Leaving.]
thomas_scrace has quit [Read error: Connection reset by peer]
thomas_scrace has joined #ocaml
dinosaure has quit [Ping timeout: 252 seconds]
Haudegen has quit [Remote host closed the connection]
thomas_scrace has quit [Ping timeout: 245 seconds]
thomas_scrace has joined #ocaml
gareppa has joined #ocaml
gareppa has quit [Max SendQ exceeded]
gareppa has joined #ocaml
srax has quit [Quit: WeeChat 1.6]
thomas_scrace has quit [Ping timeout: 272 seconds]
sagotch has joined #ocaml
gareppa has quit [Quit: Leaving]
malina has quit [Remote host closed the connection]
jaar has joined #ocaml
thomas_scrace has joined #ocaml
thomas_scrace has quit [Ping timeout: 245 seconds]
benaux has quit [Ping timeout: 246 seconds]
thomas_scrace has joined #ocaml
silver has joined #ocaml
Haudegen has joined #ocaml
dinosaure has joined #ocaml
benaux has joined #ocaml
MyWay24 has joined #ocaml
MyWay24 has quit [Read error: Connection reset by peer]
caltelt has joined #ocaml
al-damiri has joined #ocaml
neatonk has joined #ocaml
Antitrack17 has joined #ocaml
Antitrack17 has quit [Remote host closed the connection]
gargawel_ has left #ocaml [#ocaml]
gargawel has joined #ocaml
ziyourenxiang has joined #ocaml
octachron_ has left #ocaml [#ocaml]
octachron has joined #ocaml
atroxes1 has joined #ocaml
atroxes1 has quit [Ping timeout: 240 seconds]
ee_ks has joined #ocaml
pepesza4 has joined #ocaml
pepesza4 has quit [Remote host closed the connection]
dejanr has quit [Ping timeout: 272 seconds]
stux|RC-only has quit [Ping timeout: 240 seconds]
awal has quit [Ping timeout: 272 seconds]
awal has joined #ocaml
dejanr has joined #ocaml
awal is now known as Guest8490
stux|RC-only has joined #ocaml
<xvilka> by the way, if anyone knows a better answer - please write here https://stackoverflow.com/questions/52313054/how-to-find-all-exception-causing-functions-in-ocaml-sources
thomas_scrace has quit [Ping timeout: 252 seconds]
kakadu has joined #ocaml
malina has joined #ocaml
ee_ks has quit [Ping timeout: 252 seconds]
r3s1stanc3_ has quit [Quit: ZNC 1.7.1 - https://znc.in]
r3s1stanc3 has joined #ocaml
jose115 has joined #ocaml
jose115 has quit [Remote host closed the connection]
thomas_scrace has joined #ocaml
srax has joined #ocaml
srax has quit [Client Quit]
srax has joined #ocaml
srax has quit [Client Quit]
srax has joined #ocaml
malina has quit [Remote host closed the connection]
bartholin has joined #ocaml
ee_ks has joined #ocaml
neatonk has quit [Remote host closed the connection]
neatonk has joined #ocaml
caltelt has quit [Ping timeout: 244 seconds]
Acrisor9 has joined #ocaml
jbrown has joined #ocaml
Acrisor9 has quit [Remote host closed the connection]
thomas_scrace has quit [Read error: Connection reset by peer]
thomas_scrace has joined #ocaml
sagotch has quit [Quit: Leaving.]
malina has joined #ocaml
malina has quit [Read error: Connection reset by peer]
sidetracking18 has joined #ocaml
sidetracking18 has quit [Remote host closed the connection]
Haudegen has quit [Remote host closed the connection]
Jesin has quit [Quit: Leaving]
Haudegen has joined #ocaml
Haudegen has quit [Remote host closed the connection]
maarhart has joined #ocaml
maarhart has quit [Client Quit]
dinosaure has quit [Ping timeout: 252 seconds]
erkin has joined #ocaml
coventry has joined #ocaml
<coventry> Test. Excuse me.
<companion_cube> o/
Jesin has joined #ocaml
MapMan10 has joined #ocaml
malina has joined #ocaml
MapMan10 has quit [Ping timeout: 252 seconds]
Guest89366 is now known as dmbaturin
dmbaturin is now known as Guest35284
Guest35284 has quit [Quit: When two people dream the same dream, it's multicast dream routing.]
dmbaturin_ has joined #ocaml
dinosaure has joined #ocaml
bass_goon_21 has joined #ocaml
gen_ale_drinker1 has joined #ocaml
bass_goon_21 has quit [K-Lined]
gen_ale_drinker1 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
enedil has joined #ocaml
<enedil> How can I map a string to charcodes?
<enedil> String.map expects a function char->char
malina has quit [Remote host closed the connection]
<octachron> Array.init?
thomas_scrace has quit [Ping timeout: 252 seconds]
jaar has quit [Quit: Leaving]
malina has joined #ocaml
malina has quit [Remote host closed the connection]
ee_ks has quit [Ping timeout: 250 seconds]
<discord> <struktured> enedil: if you are using Core, you can employ String.to_array and followed by Array.map
enedil has quit [Ping timeout: 244 seconds]
govg has quit [Ping timeout: 246 seconds]
kakadu has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 252 seconds]
nicoo has quit [Read error: Connection reset by peer]
nicoo has joined #ocaml
malina has joined #ocaml
SilverXcrosS has joined #ocaml
Fare has joined #ocaml
<Fare> Is there a pubsub package for Lwt ?
SilverXcrosS has quit [Ping timeout: 252 seconds]
erkin has quit [Remote host closed the connection]
francisl has joined #ocaml
<discord> <struktured> Fare: I don't know if lwt directly has one but I do know there are middleware ocaml projects which do it, such as https://github.com/issuu/ocaml-zmq
Guest37664 has joined #ocaml
kakadu has joined #ocaml
<Fare> I suppose one way to do in-image pubsub is that the producer hands you a type 'a event_stream = | Econs of 'a * 'a event_stream Lwt.t
<discord> <struktured> sure, that sound reasonable
Guest37664 has quit [Ping timeout: 252 seconds]
pierpa has joined #ocaml
TheRuralJuror has joined #ocaml
jao has joined #ocaml
ee_ks has joined #ocaml
thomas_scrace has joined #ocaml
dinosaure has quit [Ping timeout: 244 seconds]
malina has quit [Remote host closed the connection]
pioneer42 has joined #ocaml
Hornet_C28 has joined #ocaml
Hornet_C28 has quit [Killed (Unit193 (Spam is not permitted on freenode.))]
thomas_scrace has quit [Ping timeout: 240 seconds]
francisl has quit [Quit: francisl]
AltGr has quit [Quit: Konversation terminated!]
bbradley_10 has joined #ocaml
bbradley_10 has quit [Remote host closed the connection]
dinosaure has joined #ocaml
kakadu has quit [Remote host closed the connection]
<_y> sooooo
<_y> if by any chance i am not the only ocaml programmer out there using vim and obsessed with aligning arrows, here is a monster http://paste.awesom.eu/FUbS&ln ;-)
<companion_cube> some who, for some reason, would also not be disgusted by using tabs in a python function? :s
<_y> i am not familiar enough with python coding styles, is there something wrong with tabs ?
<companion_cube> yes, they're frowned upon
<companion_cube> (everyone uses 4 spaces, afaict)
<_y> naively, tabs seem better than spaces to me, since indentation is part of the syntax and not everyone agree on the length of an indent
dinosaure has quit [Read error: Connection reset by peer]
<companion_cube> well, when indentation is part of the syntax, you don't want invisible tabs to mess up the layout; spaces are simpler and more uniform (everything white is a space)
<_y> i see
<tautologico> _y: no one agrees on the length of a tab either. so you configure your editor to make a tab equivalent to 2 spaces and write a lot of python code this way. I then open your source file but my editor is configured for tabs being equivalent to 8 spaces... now your indentation is all messed up in my editor and I'm not even sure which statements belong to which blocks
<tautologico> a space is a space, if you use 2 spaces for indentation everywhere, your code will still open and work in my editor, even if I prefer to indent using 4 spaces
<Drup> the whole point is kinda moot, since there is a PEP that mandates how much indentation you should use in python, and functionally, everyone uses that
<_y> here is the secret key to space: :%s/\t/ /g
francisl has joined #ocaml
<_y> “Limit all lines to a maximum of 79 characters.” 79, not 80 ?
<companion_cube> I'm pretty glad that the languages I use tend to favor spaces \o/
<_y> so you can draw nice ascii art !
<companion_cube> so I don't have to think about tabs vs space
<Armael> aligning arrows is super bad for maintenability of the code :-(
<_y> i already felt the temptation to indent ocaml with tabs
<Armael> maintainability*
<_y> Armael, i know, this discussion happened a few days ago
<companion_cube> _y: hope you set tab=2, though, otherwise your OCaml code will be preeeeetty far on the right
<_y> companion_cube, of course
<_y> i believe that i have seen tabs in old Motion Twin code
<companion_cube> :/
<companion_cube> I've seen (old) OCaml using tabs, a few times, and it was always written by emacs users…
<_y> now that i think of it, i wonder whether tab=3 wouldn’t be a great idea ;-) this would relieve me from my trouble indenting things in a satisfactory manner as soon as |> is involved
<Drup> _y: I used to do that, a very long time ago
<Drup> It's not a good idea from a tooling point of view, and everyone hates you
<Drup> (reguarding OCaml .. please just use ocp-indent)
<_y> plus, this would avoid the unfortunate alignment of pattern and code in pattern matchings (“| pattern ->\n code”)
<companion_cube> s/unfortunate/very fine/ ;-)
<_y> i do not understand you
<companion_cube> I like this alignment
<_y> i specifically avoid this alignement by adding two levels of indentation instead of one
<companion_cube> you can ask ocp-indent to do it for you though
<_y> there is an option for that in ocp-indent
<_y> which proves that i am right and you are wrong!
<companion_cube> isn't it the option which is false by default?
<_y> “default” is not a flattering word, if you think about it :p
<companion_cube> congrats, you reached meta-trolling level :p
<_y> by the way, i have been working a bit on syntax highlighting for vim, lately
<companion_cube> ah, please contribute to vim-ocaml if you added stuff!
<_y> i was so tired of bichromatic code, identifiers in plain white and everything “special” in flashy yellow
<companion_cube> hmm I have keywords,identifiers,modules/constructors/builtins, at least
<_y> i am not sure whether it is easily doable, but right now i am contemplating the idea of highlighting patterns differently than expressions (which would solve the alignment issue above)
_andre has quit [Quit: leaving]
<_y> well i exaggerated a bit, but the default linter highlights most things as keywords, including a hard-coded, not-completely-accurate list of operators
<companion_cube> so you need to parse everything between | and ->
<_y> companion_cube, that’s why it looks hard to do accurately without changing the existing parser significantly
<companion_cube> good luck
<_y> i already had a hard time highlighting identifiers being assigned a value in let‐binding (such as f in “let f x y = ...”)
<companion_cube> can you color `f` and `g` in `let rec f x = … and g y = …` ? :p
jao has quit [Ping timeout: 252 seconds]
<_y> companion_cube, yep, the rule is roughly to highlight specially identifiers when preceeded by a let / rec / and / for keyword ^^
<companion_cube> but can you color occurrences of `g` in the body of `f`? :p
<_y> oh no of course, but the aim was only to emphasize entities being defined
<companion_cube> ah, m'kay
<_y> there are simpler patches to be done though, including several fixes
francisl has quit [Quit: francisl]
caltelt has joined #ocaml
ee_ks has quit [Ping timeout: 244 seconds]
jao has joined #ocaml
yurug has quit [Ping timeout: 264 seconds]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
Fare has quit [Ping timeout: 246 seconds]
jao has quit [Ping timeout: 252 seconds]
pierpa has quit [Ping timeout: 252 seconds]
thomas_scrace has joined #ocaml
akiman24 has joined #ocaml
akiman24 has quit [Remote host closed the connection]
thomas_scrace has quit [Ping timeout: 252 seconds]
pioneer42 has quit [Quit: Leaving.]
thomas_scrace has joined #ocaml
thomas_scrace has quit [Ping timeout: 246 seconds]
TheRuralJuror has quit [Remote host closed the connection]
pierpal has joined #ocaml
pierpal has quit [Ping timeout: 240 seconds]