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...
Message search is now enhanced, find messages faster. Take it for a spin.

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 10069 - 10098 of 11541   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
10069
Hi List, I've searched for this in OCaml lists subjects and googled without true success ( The link : http://www.okmij.org/ftp/Scheme/misc.html referred to a...
Fabrice Marchant
fabrice.marc...
Offline Send Email
Sep 1, 2008
5:38 pm
10070
Hi, I guess we can create a enum type to include all these lists into one list. type lists = IntList of int list | CharList of char list | StringList of ...
River Cheng
chengwei0125
Offline Send Email
Sep 2, 2008
5:21 am
10071
Dear Sir/Madam, I'm a student of Univeristy of Magdeburg in Germany, and doing a Study Thesis. We confronted a problem of Binding a C-Programm into our...
Xuefeng Li
lixuefenginde
Offline Send Email
Sep 2, 2008
5:29 am
10072
Thanks a lot for your help, On Tue, 2 Sep 2008 13:21:01 +0800 ... I see : that's a way to allow polymorphism in a predefined and restricted field of types. ......
Fabrice Marchant
fabrice.marc...
Offline Send Email
Sep 2, 2008
8:18 am
10073
... Hash: SHA1 You do not load a "cma" file in a "ml" script. A .ml file is the source code. A .cma file is the compiled library. If you write a .ml file...
Peng Zang
peng.zang@...
Send Email
Sep 2, 2008
10:55 am
10074
... Hash: SHA1 ... Generally, you'll find you rarely, if ever, need to put an int-list, a char-list and a string-list together into a larger container list....
Peng Zang
peng.zang@...
Send Email
Sep 2, 2008
11:26 am
10075
Please forgive an eager newbie's constant pestering of the list while he learns the language. I have a large mess of code that is supposed to parse a text file...
sharifoerton
Offline Send Email
Sep 2, 2008
12:57 pm
10076
On Tue, 02 Sep 2008 12:57:38 -0000 "sharifoerton" <sharifoerton@...> wrote: Hi ! ... Indeed, I do not see on this line any function able to generate such...
Fabrice Marchant
fabrice.marc...
Offline Send Email
Sep 2, 2008
8:08 pm
10077
On Tue, 2 Sep 2008 07:26:41 -0400 ... Thanks ! ... This problem arose trying to rewrite an old C project in OCaml. Here is the code snippet to show where...
Fabrice Marchant
fabrice.marc...
Offline Send Email
Sep 2, 2008
8:47 pm
10078
... Maybe the way you tracked down the error is wrong, you could try this method, to print a stack backtrace in case of an uncaught exception: export...
Florent Monnier
fmonnier@...
Send Email
Sep 2, 2008
8:58 pm
10079
Thank you very much - I had indeed failed to locate the error correctly - I guess "printf debugging" doesn't really suffice. It ended up being a simple logic...
Sharif Oerton
sharifoerton
Offline Send Email
Sep 3, 2008
12:35 pm
10080
Greetings to all, I notice that there is no OCaml binding for wxWidgets currently available. It seems to me that writing one would benefit a (relatively) large...
sharifoerton
Offline Send Email
Sep 3, 2008
4:01 pm
10081
... The best reference for the OCaml C FFI is the OCaml manual. Chapter 18 [1] covers the OCaml interface to C. Florent Monnier has also written an excellent...
Hezekiah M. Carty
hezekiah44
Offline Send Email
Sep 3, 2008
5:13 pm
10082
Hi Everybody, I have some very large files that consist of many many short segments of short-integer arrays. If i load them in as integers, my computer runs...
Tim Hanson
lifekidyeaa
Offline Send Email
Sep 3, 2008
11:47 pm
10083
... I would use an OCaml string. With the Pervasives and String modules you have everything you need. Martin -- http://mjambon.com/...
Martin Jambon
BioMim
Offline Send Email
Sep 4, 2008
1:03 am
10084
... Well, there is (or was) this: http://plus.kaist.ac.kr/~shoh/ocaml/wxcaml/doc/ As you'll see from the date on the page, it hasn't been developed lately. In...
Matt Gushee
mcgushee
Offline Send Email
Sep 4, 2008
3:26 am
10085
... I'm not familiar with the Raw module. Here are two others you could look at: Bigarray (part of the standard library) can be used directly, if the shorts...
Richard Jones
rwmjones
Offline Send Email
Sep 4, 2008
10:21 am
10086
Florent, Jon, Martin, Richard - Thanks for all the suggestions. Unfortunately, I cannot memmap the files (which are 600mb - 1.5gb) into bigarrays, as they are...
Tim Hanson
lifekidyeaa
Offline Send Email
Sep 4, 2008
4:29 pm
10087
... The trick I was thinking of would be to map the files twice, firstly at a zero byte offset, and secondly at a byte offset of 1. This way, all of your...
Richard Jones
rwmjones
Offline Send Email
Sep 4, 2008
4:53 pm
10088
... I don't know how efficient this would be, but one option for working with your existing files may be to use the optional pos parameter to the map_file...
Hezekiah M. Carty
hezekiah44
Offline Send Email
Sep 4, 2008
6:02 pm
10089
Hi, I fell on a weird behavior between input channels and file descriptors. See this piece of code: let pos = Unix.lseek fd 0 Unix.SEEK_CUR in (* pos is in the...
Florent Monnier
fmonnier@...
Send Email
Sep 4, 2008
10:43 pm
10090
Hi, I am a newbie to Ocaml, and need some help. I want to get the type information of a variable. If i pass a variable, say a "varinfo", I want a string with...
Rekha Bachwani
rnbach
Offline Send Email
Sep 5, 2008
2:57 am
10091
Hi, Rekha: I think you can use C to inspect the OCaml variables as http://caml.inria.fr/pub/docs/oreilly-book/html/book-ora115.html. Best Regards, Cheng Wei ...
River Cheng
chengwei0125
Offline Send Email
Sep 5, 2008
5:10 am
10092
... As someone else answered, you can get information about the runtime representation of a value using low-level, unsafe hackery. But at the risk of sounding...
Eric Cooper
ecc@...
Send Email
Sep 5, 2008
12:00 pm
10093
What is the best way to get the first item in a map? One could use iter or fold, but how can you avoid needlessly iterating over all elements? You can raise an...
Ashish Agarwal
ashish_a1975
Offline Send Email
Sep 5, 2008
3:45 pm
10094
... If you are sure that you will allways want the first item of your list, just use the function List.hd which returns its first element. Now if you sometimes...
Florent Monnier
fmonnier@...
Send Email
Sep 5, 2008
6:07 pm
10095
I meant Map, should have capitalized it. Sorry for the confusion. The Map module does guarantee that iterators are traversed in order by key and so I think the...
Ashish Agarwal
ashish_a1975
Offline Send Email
Sep 5, 2008
7:46 pm
10096
On Fri, 5 Sep 2008 15:46:17 -0400 ... Hi Ashish ! We could ask the same question for Set or HashSet. Outside the solution you spoke about of raising an...
Fabrice Marchant
fabrice.marc...
Offline Send Email
Sep 5, 2008
8:21 pm
10097
On Fri, 5 Sep 2008 20:25:30 +0200 ... Sorry ! There does exist Set.min_elt....
Fabrice Marchant
fabrice.marc...
Offline Send Email
Sep 5, 2008
8:29 pm
10098
... Just as in C you cannot mix access to buffered and unbuffered files. Rich. -- Richard Jones Red Hat...
Richard Jones
rwmjones
Offline Send Email
Sep 6, 2008
10:26 am
Messages 10069 - 10098 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