swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ocaml
mengu has joined #ocaml
mengu has joined #ocaml
mengu has quit [Changing host]
ollehar1 has quit [Ping timeout: 264 seconds]
jc has joined #ocaml
obadz has quit [Ping timeout: 256 seconds]
obadz has joined #ocaml
ggole has joined #ocaml
hongbo has quit [Quit: Connection closed for inactivity]
<Algebr>
Presumably OUnit2 is the what one should use and not OUnit?
<dmbaturin>
Algebr: I guess so. I haven't even looked into the "OUnit1" API.
<dmbaturin>
Looks like everyone is using OUnit2 now.
<Algebr>
How can I have opam tell me what pacakges depend on a given package. Like... opam show-deps lambda-term .... shows utop ocp-index
Cyanure has joined #ocaml
pyon has quit [Quit: iz fixin muh confignyareshun nya!]
<dmbaturin>
Algebr: You can do 'opam remove --dry-run lambda-term'.
<dmbaturin>
Something like 'opam why' would be nice though.
<Algebr>
why is an interesting name for that
djellemah has joined #ocaml
keen___________ has joined #ocaml
keen__________ has quit [Ping timeout: 252 seconds]
<dmbaturin>
I took it from 'aptitude why'.
psy_ has quit [Ping timeout: 276 seconds]
ygrek has joined #ocaml
<ggole>
It should allow any number of ys in addition to the first
<ggole>
opam whyyyyyyy
jc has left #ocaml [#ocaml]
struktured has quit [Remote host closed the connection]
pyon has joined #ocaml
mengu has quit [Remote host closed the connection]
mengu has joined #ocaml
waneck has joined #ocaml
tmtwd has quit [Ping timeout: 276 seconds]
<Algebr>
how are people integrating ounit2 with result types
Simn has joined #ocaml
srenatus has joined #ocaml
manizzle has joined #ocaml
djellemah_ has joined #ocaml
djellemah has quit [Ping timeout: 256 seconds]
psy_ has joined #ocaml
ygrek has quit [Ping timeout: 276 seconds]
<AltGr>
Algebr, `opam list --rec --depends-on foo`
<AltGr>
opam always prints the reasons for what it's doing doesn't it ?
<AltGr>
dmbaturin, `opam remove --show` is much better in this case, you just want the action summary but don't care about actually dry-running the commands
Algebr has quit [Ping timeout: 256 seconds]
matason has joined #ocaml
tmtwd has joined #ocaml
<dmbaturin>
AltGr: Oh, good point.
psy_ has quit [Ping timeout: 255 seconds]
psy_ has joined #ocaml
Haudegen has quit [Ping timeout: 276 seconds]
Haudegen has joined #ocaml
nullcat has joined #ocaml
johnf has quit [Ping timeout: 265 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
psy_ has quit [Ping timeout: 250 seconds]
<xificurC>
I'd love to get a couple of lib suggestions. a) xml - to parse an xml file and a high-level (XPath, CSS Selectors) way to extract data. b) html - fetch, parse, extract
johnf has joined #ocaml
psy_ has joined #ocaml
thomasga has joined #ocaml
avsm has joined #ocaml
<ollehar>
xificurC: check opam list of xml packages, then google?
<xificurC>
ollehar: that's what I'm doing the last 15 minutes. It is rather ineffective though (i.e. takes a lot of time and I still might not find the best solution), so I was hoping someone more knowledgable could just give me a name of a couple of libs that meet my criteria
<ollehar>
ah ok
<ollehar>
yeah, I used xml-light and people told me not to use it but instead <forgot-the-name>
<ollehar>
could also search through the IRC chat history.....
<xificurC>
ollehar: from my search I can see cow, pxp, xml-light and xmlm
<ollehar>
ok
<companion_cube>
looks like whitequark is learning rust
<ollehar>
companion_cube: you know xml libraries?
<ollehar>
companion_cube: why, did he post on github?
<ollehar>
/she
<companion_cube>
I only know xmlm, a bit
<companion_cube>
whitequark created repository whitequark/rust-touptek
<xificurC>
companion_cube: yes I saw him asking many questions in #rust
<companion_cube>
indeed! :)
<companion_cube>
so, xmlm is a streaming implementation of XML, and since it's a Bünzli lib I assume it's good
<nullcat>
"looks like whitequark is learning rust" yeah
<nullcat>
:(
<nullcat>
we lost a comrade
<dmbaturin>
ollehar: There's ezxmlm if you want a simple library suitable for quick experiments or not very sophisticated processing.
<companion_cube>
I'd like to learn rust too, but for now I don't have enough motivation
<companion_cube>
because ocaml+merlin is so easy…
<nullcat>
yeah, me too
<xificurC>
why did whitequark hop
<dmbaturin>
I'm not convinced Rust is not a fad only popular due to big name backer.
<nullcat>
search IRC history, he ranted about build system and UTF support
<companion_cube>
dmbaturin: it certainly has an interesting and ambitious design
<ollehar>
as they said them selves, they lost a lot of interesting things on the way with rust, like type-state.
<companion_cube>
sure, but they have lifetimes and traits
<ollehar>
to go from C++ to rust is great, but from ocaml to rust...?
<companion_cube>
you get overloading
<companion_cube>
but granted, you lose some concision
<companion_cube>
still: better tooling, (soon) more libraries, better performance
<companion_cube>
for some usage it makes sense
<dmbaturin>
So far most of the libraries are C libs bindings (which are, as I understand, trivial to produce).
<dmbaturin>
I won't argue there are interesting language features though.
<nullcat>
btw, there is a paper about formalization of Rust recently
<dmbaturin>
In some 2006 some people added a decent type system to C in a (mostly) backwards compatible way. That was impressive, but didn't become popular (I found it by accident).
<xificurC>
dmbaturin: the xml question was actually mine, ollehar was kind enough to try and help. Thanks for ezxmlm, although I still don't understand why I can't see one XPath implementation :(
<companion_cube>
dmbaturin: oh? do you have a link?
<dmbaturin>
xificurC: I think there's no XPath lib yet. We'll have to make one.
<companion_cube>
xificurC: if you make a xpath-thingie, please add it to an existing lib :)
<companion_cube>
Cyclone adds features such as pattern matching, algebraic datatypes, exceptions, region-based memory management, and optional garbage collection. ← wow, ok
<dmbaturin>
companion_cube: Which one? :)
<xificurC>
dmbaturin: for a language that boasts so many other language implementations I thought XPath will surely be implemented!
<xificurC>
probably xmlm right
<nullcat>
lol
<nullcat>
companion_cube: check out github
<dmbaturin>
Since Xmlm is a streaming library, I'm not sure if we can really add XPath to it rather than implement XPath on top of it.
<xificurC>
I wanted to actually use some libs for some scripts regarding xml and html
<xificurC>
since I don't enjoy dynamic languages as I used to (thanks ML by the way)
<flux>
dmbaturin, wouldn't streaming XPath be cool :)
<Denommus>
ollehar: this parser is probably wrong in some things because the lua grammar is not as straightforward as I first thought, but it's at least a good example on how to use sedlex and menhir together
<Denommus>
ollehar: I'm even thinking about turning this boilerplate into a library
<ollehar>
yep, that's all I need
dbohdan has quit [Ping timeout: 264 seconds]
mengu has quit []
ollehar has quit [Quit: ollehar]
rgrinberg has joined #ocaml
psy_ has joined #ocaml
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ocaml
Haudegen has quit [Remote host closed the connection]
rbocquet has quit [Ping timeout: 252 seconds]
Haudegen has joined #ocaml
rbocquet has joined #ocaml
rossberg has quit [Ping timeout: 256 seconds]
ghostpl has joined #ocaml
Haudegen has quit [Ping timeout: 244 seconds]
ceryo has joined #ocaml
obadz- has quit [Quit: leaving]
ceryo_ has quit [Ping timeout: 245 seconds]
Haudegen has joined #ocaml
rossberg has joined #ocaml
zpe has joined #ocaml
freling has joined #ocaml
zpe has quit [Ping timeout: 265 seconds]
ollehar has joined #ocaml
struktured has joined #ocaml
rgrinberg has quit [Ping timeout: 264 seconds]
Hannibal_Smith has joined #ocaml
rgrinberg has joined #ocaml
waneck_ has joined #ocaml
mort___ has joined #ocaml
waneck has quit [Ping timeout: 264 seconds]
kushal has joined #ocaml
zaquest has quit [Read error: Connection reset by peer]
struktured has quit [Ping timeout: 256 seconds]
Cyanure has joined #ocaml
MercurialAlchemi has joined #ocaml
Bhavya has joined #ocaml
AlexRussia has quit [Quit: WeeChat 1.2-dev]
AlexRussia has joined #ocaml
Bhavya has quit [Quit: Quit the channel]
shinnya has joined #ocaml
Submarine has quit [Quit: Leaving]
hay207 has joined #ocaml
Haudegen has quit [Ping timeout: 264 seconds]
milosn has quit [Ping timeout: 265 seconds]
thomasga has quit [Ping timeout: 265 seconds]
gabemc has joined #ocaml
Bhavya has joined #ocaml
Haudegen has joined #ocaml
milosn has joined #ocaml
ollehar has quit [Ping timeout: 245 seconds]
zaquest has joined #ocaml
ollehar has joined #ocaml
freling has quit [Quit: Leaving.]
Guest50875 has joined #ocaml
ygrek has joined #ocaml
MrScout has joined #ocaml
Guest50875 has quit [Ping timeout: 255 seconds]
darkf has quit [Quit: Leaving]
octachron has quit [Quit: Leaving]
ollehar has quit [Ping timeout: 252 seconds]
freling has joined #ocaml
Hannibal_Smith has quit [Quit: Leaving]
Intensity has joined #ocaml
robink has quit [Ping timeout: 248 seconds]
robink_ has joined #ocaml
nullcat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jwatzman|work has joined #ocaml
lordkryss has quit [Quit: Connection closed for inactivity]
nullcat_ has joined #ocaml
robink_ has quit [Ping timeout: 244 seconds]
jonludlam has quit [Ping timeout: 264 seconds]
uris77 has joined #ocaml
robink_ has joined #ocaml
Haudegen has quit [Ping timeout: 250 seconds]
Haudegen has joined #ocaml
mort___ has quit [Ping timeout: 265 seconds]
jonludlam has joined #ocaml
jonludlam has quit [Ping timeout: 252 seconds]
Bhavya has quit [Quit: Quit the channel]
shinnya has quit [Ping timeout: 276 seconds]
nullcat_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
octachron has joined #ocaml
yomimono has quit [Ping timeout: 265 seconds]
nullcat has joined #ocaml
freling has quit [Quit: Leaving.]
micrypt has joined #ocaml
<nullcat>
today i heard there is a latex file written by a PhD student around ten year ago, which documents the OCaml compiler internal. Does anyone know it?
ollehar has joined #ocaml
srenatus has quit [Quit: Connection closed for inactivity]
MrScout has quit [Remote host closed the connection]
zaquest has quit [Read error: Connection reset by peer]
emanuelz has joined #ocaml
zpe has joined #ocaml
thm has joined #ocaml
hay207 has joined #ocaml
dsabanin has joined #ocaml
<thm>
if something compiles with 4.02.0, but not with 4.02.2, suddenly failing with "This expression has type Foo, It has no method bar" - what change could be the reason?
mcclurmc has joined #ocaml
dsabanin has quit [Client Quit]
tjscanlon has joined #ocaml
<smondet>
thm: "method" reminds me of the change in syntax with the `#*` operators
hay207 has quit [Client Quit]
<smondet>
thm: are you using js_of_ocaml?
<thm>
no
<Denommus>
smondet: I didn't quite get what the # operators are
<smondet>
Denommus: I'm not 100% sure but the idea is that now `##`, `#+`, `#~#`, etc can be used by ppx rewriters and before they used to be syntax errors
<smondet>
thm: I would try to add type annotations to look for the problem, like `~(status : status)`
<octachron>
Denommus:More precisely, it is a new family of operators with higher precedence than function application
<octachron>
It is possible to use (#_normal_operators_chars_) in normal code
<smondet>
the end goal is to implement js_of_ocaml's syntax with ppx :)
<octachron>
but operators with two (and more?) # characters are reserved for ppx rewriter
<octachron>
(i.e, they are valid at the parsing phase but invalid during the typing phase)
octachron has quit [Ping timeout: 256 seconds]
octachron has joined #ocaml
ygrek has quit [Ping timeout: 245 seconds]
mcclurmc has quit [Remote host closed the connection]
badon has quit [Quit: Leaving]
sepp2k has quit [Quit: Leaving.]
kushal has quit [Ping timeout: 250 seconds]
kushal has joined #ocaml
ollehar has quit [Ping timeout: 252 seconds]
rgrinberg has quit [Ping timeout: 256 seconds]
k1000 has quit [Ping timeout: 252 seconds]
freling has joined #ocaml
nullcat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Anarchos has joined #ocaml
zaquest has joined #ocaml
matason has quit []
uris77 has quit [Quit: leaving]
rgrinberg has joined #ocaml
Haudegen has quit [Ping timeout: 264 seconds]
ohama has quit [Remote host closed the connection]
Gama11 has quit [Read error: Connection reset by peer]
freling has joined #ocaml
Bhavya has joined #ocaml
Anarchos has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
_2can has quit [Quit: Lost terminal]
_2can has joined #ocaml
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yomimono has quit [Ping timeout: 245 seconds]
freling has quit [Quit: Leaving.]
rgrinberg has joined #ocaml
<j0sh>
vbmithr: is there a problem with ocaml's built-in Random? rather than using Nocrypto.Rng for Websocket.random_string?
<j0sh>
only reason i ask is because i keep getting a Fortuna.Unseeded_generator exception every time a frame is sent out... while re-seeding the generator myself is no big deal, it's boilerplate (and another dependency) that could be avoided by using the built-in Random
yomimono has joined #ocaml
swgillespie has joined #ocaml
destrius_ has quit [Remote host closed the connection]
Simn has quit [Quit: Leaving]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
waneck_ has quit [Ping timeout: 252 seconds]
swgillespie has joined #ocaml
Cyanure has quit [Remote host closed the connection]
freling has joined #ocaml
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]