Search the web
Sign In
New User? Sign Up
ocaml_beginners · Ocaml Beginners
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 6872 - 6901 of 11541   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
6872
... As with the first reply, the answer is to use Unix.open_process_in to g/bunzip the file. If you take a look at our Weblogs library ...
Richard Jones
rwmjones
Offline Send Email
Dec 1, 2006
10:00 am
6873
... Yes, thanks. Regards Johann -- Johann Spies Telefoon: 021-808 4036 Informasietegnologie, Universiteit van Stellenbosch "Who is like unto thee, O...
Johann Spies
jspies@...
Send Email
Dec 1, 2006
11:35 am
6874
If the signature name of a module is conventionally written in capital letters why doesn't the Ocaml reference manual strictly adhere to this convention? What...
drehman27
Offline Send Email
Dec 1, 2006
2:40 pm
6875
I am having some trouble trying Brian's module in my code: module MinHeap(Ord: Map.OrderedType) = struct This is a functor that takes a structure that adheres...
drehman27
Offline Send Email
Dec 1, 2006
3:29 pm
6876
... Because it's not really a convention? I know that they use it in the manual in section 2, but that doesn't make it gospel. It's a bit like insisting that...
William D. Neumann
scoey13
Offline Send Email
Dec 1, 2006
4:17 pm
6877
... Well, I haven't looked too much at the minheap code, so I'll use the Map module which uses the Map.OrderedType module type. Essentially, you need to make...
William D. Neumann
scoey13
Offline Send Email
Dec 1, 2006
5:12 pm
6878
... I put the minheap code in a file called minheap.ml but in my main file I was trying to call the functor with MinHeap(MyModule) instead of ...
drehman27
Offline Send Email
Dec 1, 2006
5:51 pm
6879
... You have to always rememder that when you put something in a file, filename.ml, the entire contents of that file is implicitly placed inside a module...
William D. Neumann
scoey13
Offline Send Email
Dec 1, 2006
6:05 pm
6880
... Take Brian's code and save it in a file called 'minheap.ml' and compile it like so: ocamlc -c minheap.ml Then take the following and put it into a file...
Richard Jones
rwmjones
Offline Send Email
Dec 1, 2006
6:22 pm
6881
If I try the following code it compiles fine type r = { n : int; mutable x : float } module MyMinHeap = Minheap.MinHeap( struct type t = r let compare r1 r2 =...
drehman27
Offline Send Email
Dec 1, 2006
6:29 pm
6882
... The only rule is that the module name has to begin with a capital letter. Personally I'm glad they didn't use ORDEREDTYPE, because it's very hard to read....
Richard Jones
rwmjones
Offline Send Email
Dec 1, 2006
6:43 pm
6883
... Thanks Rich and all the others who replied. I was looking at Unix.open_process_in but was uncertain how to use it in this case. I will look at your code. ...
Johann Spies
jspies@...
Send Email
Dec 4, 2006
10:14 am
6884
Hello, I have the following code snippet (simplified): ..................................................... type node = { mutable chld : edge symlist } and...
Hugo Ferreira
hugotwo3
Offline Send Email
Dec 4, 2006
10:33 am
6885
Hello, I am collecting examples of pieces of codes leading to compilation errors difficult to interpret for newbies. If you have experienced such difficulties...
Francois Colonna
colonna_fran...
Offline Send Email
Dec 4, 2006
11:09 am
6886
.. and the official FAQ is worth looking at too: http://caml.inria.fr/resources/doc/faq/index.en.html ...
Richard Jones
rwmjones
Offline Send Email
Dec 4, 2006
12:09 pm
6887
... Martin Jambon has been collecting such a list here: http://www.ocaml-tutorial.org/common_error_messages Rich. -- Richard Jones, CTO Merjis Ltd. Merjis -...
Richard Jones
rwmjones
Offline Send Email
Dec 4, 2006
12:26 pm
6888
The sphere online judge has an apparently simple problem which has never been solved in ocaml before. http://www.spoj.pl/problems/MUL/ I'm trying to be the...
jshaw10
Offline Send Email
Dec 4, 2006
9:31 pm
6889
Hello, Le lun 04 déc 2006 10:29:30 CET, ... This has nothing to do with types. There are some syntactic restrictions on what you can put in a recursive...
Virgile Prevosto
virgilepr
Offline Send Email
Dec 4, 2006
10:46 pm
6890
Hi, ... I see. ... I read this over several times. Still cannot figure out what is the problem (although I think it is because my example is immediately ...
Hugo Ferreira
hugotwo3
Offline Send Email
Dec 5, 2006
8:15 am
6891
... I get " Forbidden You don't have permission to access /problems/MUL/ on this server." Regards Johann -- Johann...
Johann Spies
jspies@...
Send Email
Dec 5, 2006
8:57 am
6892
Le mar 05 déc 2006 08:06:53 CET, ... No. empty e is an application which involves one of the recursively defined variables, hence it is not "statically...
Virgile Prevosto
virgilepr
Offline Send Email
Dec 5, 2006
9:35 am
6893
I want to be able to do this on the command line program -i someinputfile -o someoutputfile *.log where for example *.log expands to 1.log 2.log 3.log and in...
Johann Spies
jspies@...
Send Email
Dec 5, 2006
10:11 am
6894
Virgile, Appreciate the feedback. I will stick to "manual inlining" otherwise I will never see the end of this project. Regards, Hugo F....
Hugo Ferreira
hugotwo3
Offline Send Email
Dec 5, 2006
10:28 am
6895
... Sometimes asking a question helps me to get think clear ... ... but not if I type nonsense like this :( Apologies for that. Anyhow after reading getop.ml...
Johann Spies
jspies@...
Send Email
Dec 5, 2006
10:29 am
6896
The link should work fine - it works even though I'm not logged in. Well anyway, you can just go to http://www.spoj.pl/ and browse to problem number 31....
jshaw10
Offline Send Email
Dec 5, 2006
4:56 pm
6897
I've gotten a little more information about the run time of the solutions I've tried on the spoj system: -bignum solutions require 4.5 seconds -array solutions...
jshaw10
Offline Send Email
Dec 5, 2006
6:16 pm
6898
[This is getting off-topic, but..] JShaw> The array solution is probably so bad because of the issues discussed JShaw> in the link I gave in my first post in...
Conrad Hughes
clonedrad
Online Now Send Email
Dec 5, 2006
7:47 pm
6899
... OK, well after looking at the problem specification, I can tell that whoever submitted it is a bit off their rocker. The spec calls for up to 1000...
William D. Neumann
scoey13
Offline Send Email
Dec 5, 2006
8:01 pm
6900
William> simply converting from strings to numbers William> and back again takes about 47 seconds on my machine How about using a radix-10000 bignum...
Conrad Hughes
clonedrad
Online Now Send Email
Dec 5, 2006
8:44 pm
6901
... I don't suppose you have one lying around... BTW: in case anyone cares GMP provides an approximate 15x speedup, dropping my test time from ~75 seconds to...
William D. Neumann
scoey13
Offline Send Email
Dec 5, 2006
10:03 pm
Messages 6872 - 6901 of 11541   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help