World: r4wp
[#Red] Red language group
older newer | first last |
Gregg 1-Apr-2013 [6821x2] | Interesting. How could that contaminate internals? |
That is, I would expect a hard crash of some kind in that case. | |
DocKimbel 1-Apr-2013 [6823x2] | No idea for now, I'm looking into it... |
Ok, got it, I've broken the internal word/load-in API....d'oh! | |
Gregg 1-Apr-2013 [6825] | Quick find. :-) |
DocKimbel 1-Apr-2013 [6826] | Yep, but the fix is a bit longer. |
Bo 3-Apr-2013 [6827x4] | Playing with Francois's OpenCV binding. I get an error on Linux ARM when compiling his OpenCV camera test. The error is: ./opencv-cam-test: symbol lookup error: ./opencv-cam-test: undefined symbol: atexit I've looked through all the code for the OpenCV cam test, the OpenCV binding itself, related libraries and Red/System source and I can't find "atexit" anywhere. Am I overlooking it? Any ideas what code this message is coming from? |
Sorry, the above error is not when compiling, but when trying to execute the compiled code on Arch Linux ARM. | |
Nevermind. Windows search is a piece of garbage. Wrote a Rebol search and found it right away in C-library.reds. | |
Seriously...how hard is it to write a search that actually works? Microsoft has how many billions of dollars? | |
Kaj 3-Apr-2013 [6831] | Francois includes an old version of my C library binding. Newer versions use a different API on ARM to define on-quit |
Bo 3-Apr-2013 [6832] | Yes, I had a copy of your newer C library binding. I compared the relevant sections and added in the appropriate parts. Now I have a different problem, possibly due to me not running a gui on my Raspberry Pi. Don't know yet if OpenCV requires a GUI to operate or not. |
Kaj 3-Apr-2013 [6833] | It would be better to update it wholesale. Using older versions will keep leading to already fixed problems like this. Updating parts can lead to inconsistency problems |
Bo 3-Apr-2013 [6834x2] | undefined symbol: cvCreateCameraCapture which is a component of highgui.reds, which I #include in my program. |
Thanks for the advice. I'll have to add in Francois's additions into yours. | |
Kaj 3-Apr-2013 [6836] | Did he change the C library binding? |
Bo 3-Apr-2013 [6837] | Yes, he added a couple of items: ;added by F. Jouen ; is not a number? isNaN: "isNaN" [ value [float!] return: [logic!] ] ;isinf - test for infinity isInf: "isInf" [ value [float!] return: [integer!] ] ;// F. Jouen |
Kaj 3-Apr-2013 [6838] | Hm, that's annoying. Working like this will quickly explode into extra work |
Bo 3-Apr-2013 [6839] | Do you propose using github or something to host the Red/System bindings? |
Kaj 3-Apr-2013 [6840] | It's already hosted in Fossil |
Bo 3-Apr-2013 [6841] | Is there a how-to for Fossil? I checked http://red.esperconsultancy.nl/Red-C-library/wiki but don't see a how-to there. |
Kaj 3-Apr-2013 [6842] | http://fossil-scm.org |
Bo 3-Apr-2013 [6843] | Thanks. I'll read it. |
Kaj 3-Apr-2013 [6844] | Those two functions are BSD extensions. They can't be relied upon to be in all C libraries |
Bo 3-Apr-2013 [6845] | So there should be an OS check there, right? |
Kaj 3-Apr-2013 [6846] | You'd first have to know which platforms support them |
Bo 3-Apr-2013 [6847] | OK. So I successfully checked out your C-Library using Fossil. Thanks for the pointers! |
AdrianS 3-Apr-2013 [6848] | Bo, wrt crappy built-in searching, I highly recommend the Everything search utility from voidtools. Best file search for Windows. Lightweight (no need for service), small, and quick. I've been using this for quite a while and I thought that development had unfortunately stalled, but, since the new year, it looks like it's being actively worked on again. I'm so happy! Yes, it is that nice! http://www.voidtools.com |
Bo 3-Apr-2013 [6849x2] | Kaj, I did a Google search on isNaN and cannot find a list of C libraries that don't support it (or that do). Do you have any ideas on how to do this check? |
AdrianS: Unfortunately, it won't work for me: From their FAQ: 1.3 Does Everything search file contents? No, "Everything" does not search file contents, only file and folder names. I find that I search within file contents at least as much as for filenames. It shouldn't be too hard to write a Rebol-based standalone exe that would do this. I'll add it to my growing list of scripts to write. | |
AdrianS 3-Apr-2013 [6851] | I thought this might be an issue. For that, you should use my second, favourite search tool - grepWin, from Stefan's Tools. http://tools.tortoisesvn.net/grepWin.html Btw, we should take this to another group. |
Kaj 3-Apr-2013 [6852x4] | Bo, I'm looking here in the documentation of the GNU C library, where it says they are BSD extensions: |
http://www.gnu.org/software/libc/manual/html_node/Floating-Point-Classes.html | |
I'm working on integrating them into the binding | |
C99 defines corresponding macros, so that's the standard, but C macros can't be used in Red/System | |
Bo 3-Apr-2013 [6856] | Kaj, thanks! |
Kaj 3-Apr-2013 [6857] | Looked through your files, Gregg. You've been busy :-) |
Gregg 3-Apr-2013 [6858] | Yes I have. It's great fun. Starting from the basics, seeing what you need to build everything else, and re-thinking how to do things because things like PARSE aren't there yet. |
Ladislav 3-Apr-2013 [6859] | Does Red already have a URL! datatype? |
Gregg 3-Apr-2013 [6860] | No. Now is your chance to make sure it's done right. :-) |
Ladislav 3-Apr-2013 [6861x2] | Hmm, Rebol is, essentially, in the same situation (url! is incorrect) |
(maybe more correct in R2 than in R3) | |
Gregg 3-Apr-2013 [6863] | Interesting, and not good. |
NickA 4-Apr-2013 [6864] | I believe Red can find a market: http://www.drdobbs.com/jvm/the-quiet-revolution-in-programming/240152206?cid=DDJ_nl_upd_2013-04-03_h&elq=6510ad5ddf4b42adb5b3cd05ed730e24 |
DocKimbel 4-Apr-2013 [6865] | Yes, there's an opportunity for a language like Red with very broad possible usage. |
AdrianS 4-Apr-2013 [6866] | The DrDobbs link led to this one - After XML, JSON: Then What? http://www.drdobbs.com/web-development/after-xml-json-then-what/240151851 That article mentions that one of the "most interesting" new data formats being considered is TOML (this looks like the .ini file format) https://github.com/mojombo/toml Is this really what we can expect? |
DocKimbel 4-Apr-2013 [6867x4] | Funny, on each iteration, they are getting closer and closer to REBOL data format...:-) |
# First class dates? Why not? # You can indent as you please. Tabs or spaces. TOML don't care. :-)) | |
INSERT action implemented for all series datatype. Unit tests are welcome. | |
Especially on strings with different internal encodings (Latin1, UCS-2, UCS-4), all combination should be tested for both INSERT and APPEND. | |
older newer | first last |