<tobiasBora>
Do you know how to have a pretty display in toplevel of Enum ? (like (0--10) ?)
q66 has quit [Quit: Leaving]
seanmcl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thomasga has joined #ocaml
zpe has joined #ocaml
zpe has quit [Ping timeout: 260 seconds]
jwatzman|work has quit [Quit: jwatzman|work]
ousado_ has quit [Ping timeout: 240 seconds]
ousado_ has joined #ocaml
fold has joined #ocaml
racycle has quit [Quit: ZZZzzz…]
thomasga has quit [Quit: Leaving.]
alexst has joined #ocaml
alexst has quit [Ping timeout: 250 seconds]
jabesed has quit [Quit: Konversation terminated!]
tobiasBora has quit [Quit: Konversation terminated!]
Algebr has joined #ocaml
zpe has joined #ocaml
omqal has quit [Quit: omqal]
zpe has quit [Ping timeout: 260 seconds]
philtor_ has quit [Ping timeout: 264 seconds]
johnnydiabetic has joined #ocaml
shinnya has quit [Ping timeout: 256 seconds]
PM has quit [Ping timeout: 240 seconds]
alexst has joined #ocaml
alexst has quit [Ping timeout: 240 seconds]
penglingbo has joined #ocaml
zpe has joined #ocaml
zpe has quit [Ping timeout: 272 seconds]
johnnydiabetic has quit [Quit: Goodbye]
Algebr has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
alexst has joined #ocaml
alexst has quit [Ping timeout: 256 seconds]
tidren has joined #ocaml
tidren has quit [Remote host closed the connection]
racycle has joined #ocaml
ygrek has joined #ocaml
no0y has quit [Remote host closed the connection]
zpe has joined #ocaml
zpe has quit [Ping timeout: 240 seconds]
tidren has joined #ocaml
ssbr has quit [Ping timeout: 240 seconds]
ssbr has joined #ocaml
alexst has joined #ocaml
tidren has quit [Remote host closed the connection]
tidren has joined #ocaml
tidren has quit [Read error: Connection reset by peer]
tidren has joined #ocaml
alexst has quit [Ping timeout: 264 seconds]
ssbr has quit [Ping timeout: 240 seconds]
yacks has joined #ocaml
ssbr has joined #ocaml
tidren has quit [Remote host closed the connection]
tidren has joined #ocaml
zpe has joined #ocaml
tidren has quit [Remote host closed the connection]
tidren has joined #ocaml
tidren has quit [Remote host closed the connection]
zpe has quit [Ping timeout: 260 seconds]
alexst has joined #ocaml
alexst has quit [Ping timeout: 240 seconds]
TaXules has quit [Ping timeout: 272 seconds]
TaXules has joined #ocaml
fold has quit [Ping timeout: 240 seconds]
<whitequark>
0--10?
ggole has joined #ocaml
racycle has quit [Quit: ZZZzzz…]
zpe has joined #ocaml
zpe has quit [Ping timeout: 240 seconds]
axiles has joined #ocaml
siddharthv has joined #ocaml
alpounet has joined #ocaml
ygrek has quit [Ping timeout: 272 seconds]
WraithM has quit [Ping timeout: 272 seconds]
sheijk has quit [Quit: .]
tidren has joined #ocaml
yacks has quit [Ping timeout: 240 seconds]
alexst has joined #ocaml
alexst has quit [Ping timeout: 264 seconds]
BitPuffin has quit [Ping timeout: 240 seconds]
mort___ has quit [Quit: Leaving.]
__JokerDoom has joined #ocaml
mcclurmc_ has joined #ocaml
badon_ has joined #ocaml
ygu_ has joined #ocaml
DreamLin1xer has joined #ocaml
companion_square has joined #ocaml
hnrgrgr_ has joined #ocaml
jerith_ has joined #ocaml
adrien_o1w has joined #ocaml
xaimus_ has joined #ocaml
sad0ur_ has joined #ocaml
girrig_ has joined #ocaml
badon has quit [Disconnected by services]
zpe has joined #ocaml
girrig has quit [Ping timeout: 240 seconds]
jave has quit [Ping timeout: 240 seconds]
DreamLinuxer has quit [Ping timeout: 240 seconds]
ygu has quit [Ping timeout: 240 seconds]
companion_cube has quit [Ping timeout: 240 seconds]
mcclurmc has quit [Ping timeout: 240 seconds]
waneck has quit [Ping timeout: 240 seconds]
adrien_oww has quit [Ping timeout: 240 seconds]
hnrgrgr has quit [Ping timeout: 240 seconds]
paddymahoney has quit [Ping timeout: 240 seconds]
CcxCZ has quit [Ping timeout: 240 seconds]
Shozan has joined #ocaml
samebcha1e has joined #ocaml
Shozan has quit [Changing host]
Shozan has joined #ocaml
axiles has quit [Ping timeout: 240 seconds]
jpdeplaix has quit [Ping timeout: 240 seconds]
jerith has quit [Ping timeout: 240 seconds]
_JokerDoom has quit [Ping timeout: 240 seconds]
tristero has quit [Ping timeout: 240 seconds]
xaimus has quit [Ping timeout: 240 seconds]
sad0ur has quit [Ping timeout: 240 seconds]
samebchase has quit [Ping timeout: 240 seconds]
SHODAN has quit [Ping timeout: 240 seconds]
ivan\ has quit [Ping timeout: 240 seconds]
ivan\ has joined #ocaml
waneck has joined #ocaml
axiles has joined #ocaml
jpdeplaix has joined #ocaml
jave has joined #ocaml
tristero has joined #ocaml
CcxCZ has joined #ocaml
paddymahoney has joined #ocaml
Simn has joined #ocaml
zpe has quit [Ping timeout: 250 seconds]
_0xAX has joined #ocaml
hnrgrgr_ is now known as hnrgrgr
manizzle has joined #ocaml
ygrek has joined #ocaml
no0y has joined #ocaml
parcs has quit [Ping timeout: 250 seconds]
alexst has joined #ocaml
alexst has quit [Ping timeout: 240 seconds]
petterw has quit [Remote host closed the connection]
cago has joined #ocaml
parcs has joined #ocaml
zpe has joined #ocaml
demonimin has quit [Remote host closed the connection]
arj has joined #ocaml
demonimin has joined #ocaml
jerith_ is now known as jerith
zpe has quit [Ping timeout: 260 seconds]
Kakadu has joined #ocaml
zpe has joined #ocaml
companion_square is now known as companion_cube
hhugo has joined #ocaml
alexst has joined #ocaml
q66 has joined #ocaml
hhugo has quit [Quit: Leaving.]
alexst has quit [Ping timeout: 240 seconds]
samebcha1e is now known as samebchase
sagotch has joined #ocaml
sad0ur_ has quit [Ping timeout: 240 seconds]
sad0ur has joined #ocaml
AltGr has joined #ocaml
alexst has joined #ocaml
fraggle_laptop has joined #ocaml
alexst has quit [Ping timeout: 240 seconds]
asmanur has joined #ocaml
zpe has quit [Remote host closed the connection]
matematikaadit has joined #ocaml
alexst has joined #ocaml
tidren has quit [Remote host closed the connection]
tidren has joined #ocaml
tidren has quit [Read error: Connection reset by peer]
tidren has joined #ocaml
<algoriddle>
I have been playing with OCaml for a few weeks now, and I really like it. I knew it from the beginning that it is a niche language. But I just realized that when it comes to jobs it is a disaster – on the jobseeker’s side.
<algoriddle>
Not so much because there are so few jobs around, but because of the imbalance of supply and demand. There are far too many good OCaml hackers for those few positions. Am I mistaken?
<algoriddle>
This does not necessarily dampen my enthusiasm, but it is disappointing.
yacks has joined #ocaml
jludlam has joined #ocaml
matematikaadit has quit [Ping timeout: 240 seconds]
matematikaadit has joined #ocaml
ousado_ is now known as ousado
ousado has quit [Changing host]
ousado has joined #ocaml
mcclurmc_ has quit [Remote host closed the connection]
matematikaadit has quit [Ping timeout: 240 seconds]
hhugo has joined #ocaml
matematikaadit has joined #ocaml
alexst has quit [Ping timeout: 260 seconds]
alexst has joined #ocaml
alexst has quit [Client Quit]
dsheets has joined #ocaml
siddharthv is now known as siddharthv_away
dsheets has quit [Ping timeout: 256 seconds]
fraggle_laptop has quit [Remote host closed the connection]
<flux>
kakadu, congrats on the new LablQT release :)
thomasga has joined #ocaml
<CcxCZ>
algoriddle: youtube refuses to cooperate here. and while I really don't think there's such general attribute as "language power" disregarding problem domain, it's still my favourite article to link people that seem to think they need to write all webapps in php :]
<algoriddle>
CcxCZ: I agree about the potential power of unusual (programming language) choices. And thanks for the link to the other article.
maattdd has quit [Ping timeout: 240 seconds]
SethTisue has joined #ocaml
SethTisue has quit [Client Quit]
<CcxCZ>
I more believe in "Write programs that do one thing and do it well. Write programs to work together. Write programs to handle text streams, because that is a universal interface." thus allowing for naturally language-heterogenous environment, no need to lock yourself in with a golden hammer then. maybe s/text streams/simple protocols/ though
<pjdelport>
CcxCZ: Nice read, that.
<pjdelport>
CcxCZ: That quote is also a nice summary of functional programming: composition and values that are universal as possible are everything.
sagotch has joined #ocaml
<CcxCZ>
I'm on "worse is better" mostly though, writing almost-functionally-pure python for the most part :] toying with ocaml and prolog for smaller projects
<algoriddle>
CcxCZ: it's a good think you linked to both articles. Here's a quote from the survivorship bias article: “A stupid decision that works out well becomes a brilliant decision in hindsight.” It's a good idea to keep that in mind when reading "Beating the averages".
<orbitz>
what does 'labl' stand for in lablgtk?
Submarine has joined #ocaml
<Drup>
algoriddle: If you are not affraid of working as an enginneer in the academia, I think you will have no issue finding an ocaml job
<Drup>
orbitz: label, as ~foo
<orbitz>
ah
maattdd has joined #ocaml
tobiasBora has joined #ocaml
fold has joined #ocaml
thomasga has quit [Quit: Leaving.]
<tobiasBora>
Hello,
<tobiasBora>
I'm trying to use the function "uniq" of Batteries to avoid any repetition in an enumeration like this :
<tobiasBora>
However I get : 5 1 2 3 4 5 6 7 8 9 , so the 5 isn't deleted.
<tobiasBora>
I thing that I need to sort in Enum firstly, but I cannot find any sort function of enum (I thing it's strange by the way...)
penglingbo has quit [Ping timeout: 250 seconds]
<companion_cube>
sort would require to force the enumeration, I guess
<companion_cube>
the easiest way to sort+uniq is probably to use a set
<Drup>
hopefully, there is a of_enum and a to_enum in BatSet n_n
<Drup>
actually ... there is no to_enum, which is weird, because it should be easy to implement
<Drup>
( companion_cube : I think this is the happy moment where we introduce sequence to the audience )
* companion_cube
coughs
<companion_cube>
oh, fine, I did write Sequence.sort_uniq
<Drup>
you see ! :D
<tobiasBora>
Great thank you ! So the good way to proceed is (1--9) |> BatEnum.(append (singleton 5)) |> BatSet.of_enum |> BatSet.enum;; ?
<Drup>
oh, there is a BatSet.enum, right
<Drup>
(consistency in naming ftw)
<ggole>
Why not construct the set directly from the 1--9?
maattdd has quit [Ping timeout: 240 seconds]
<tobiasBora>
ggole: It's only a test example, in practice I whan deal with the lines of a file.
<tobiasBora>
Are the translation between Enum and Set are in O(1) or not ?
<tobiasBora>
uh
<tobiasBora>
that's stupid
<tobiasBora>
in log(n) maybe ?
<ggole>
Set.of_enum is n log n, I imagine
<companion_cube>
n log(n)
<tobiasBora>
yes sorry
<companion_cube>
lowest complexity for sorting
<tobiasBora>
And what about List <--> Enum N
<tobiasBora>
*?
<Drup>
List -> Enum is O(1)
<Drup>
Enum -> List evaluates the Enum, which may be ... O(whatever)
<companion_cube>
Enum is a lazy enumeration
<ggole>
What are you actually computing?
<companion_cube>
so yes, List->Enum doesn't do anything upfront
<tobiasBora>
Ok thank you. And if I do a Map, then a find, is the map function apply to every element or only for the elements tested by find ?
<tobiasBora>
ggole: Well... For the moment it's really math computing, complexity isn't important, but I use Enum because my code is easier to read : I use it to read files, and recursively check if all "dependencies" listed in the file exists.
hhugo has joined #ocaml
maattdd has joined #ocaml
<tobiasBora>
I'm not sure it's really proper, but I like it ^^
<Drup>
it's a good usage of enum
<tobiasBora>
Ok then that's great ! (and I forgot a 'not' : it's NOT really maths...)
<CcxCZ>
but ... everything is math :P
maattdd has quit [Ping timeout: 240 seconds]
<ggole>
tobiasBora: sounds reasonable enough
mcclurmc has joined #ocaml
<tobiasBora>
Ok nice. And any idea for the evaluation of functions in a find operation ?
<ggole>
Enum.map should be lazy
<tobiasBora>
Ok great thank you !
<ggole>
Well, you can test it with a little side effect in there.
seanmcl has joined #ocaml
jludlam is now known as jonludlam
<tobiasBora>
Yes indeed, I made a little test and it's lazy, thank you !
<Drup>
rule of thumbs about side effects in the context of lazy evaluation : Don't.
<ggole>
printf "!\n" to show ordering of eval is ok
<ggole>
Not a bad rule of thumb though
matematikaadit has quit [Quit: Leaving]
mcclurmc has quit [Read error: Connection reset by peer]
mcclurmc has joined #ocaml
shinnya has joined #ocaml
<tobiasBora>
Core is a "concurrent" library to Batteries ?
<Drup>
yeah
thomasga has joined #ocaml
flan3002 has joined #ocaml
<tobiasBora>
I think it's ugly to mix them ? How should I choose which one I must use ?
<companion_cube>
1/ yes 2/ that is an open question
<Drup>
since there is a lot of overlap between them, I don't see the point of using both
FreeArtMan has joined #ocaml
<tobiasBora>
Ok. To have an Idea which one are you using ?
divyanshu has quit [Quit: Computer has gone to sleep.]
sagotch has quit [Ping timeout: 250 seconds]
penglingbo has joined #ocaml
cago has joined #ocaml
<tobiasBora>
ok thank you
elfring has joined #ocaml
<freling>
Is there a good XMPP library available? I'd like to make a XMPP bot in OCaml for fun but the only library I can find is https://github.com/ermine/xmpp and it's quite obscur about how to use it
<Drup>
freling: I tried to walk this path before you