Re: Verrazano/CFFI R.I.P.?



Ivan Shvedunov wrote:
Just interesting, how do you deal with the following issues?
- fixnums usually cannot represent full 32-bit numbers, so bignums will be used instead in many cases (very ineffective);

Is this a translation issue or just "C will be faster in any application where 32-bit numbers tend to reach the limit of fixnums"?


 - pointer arithmetic, mixing pointer<->arrays, pointer<->uint conversion;
 - malloc() / free() memory management;
 ... probably many other things like these ...

My subject was indeed in jest. I just want to get the bulk of 23kloc of C reasonably "re-typed" as CL, so foo(x,y,z); becomes (foo x y z) without pushing my carpal tunnel syndrome over the edge.


I am still open to the possibility of failing completely in the face of C syntax silliness. Even found a confession in K&R that their treating typedef as a storage class specifier in the grammar is a joke. <sigh> Am I the only one who takes programming seriously?!

kt
.



Relevant Pages

  • Re: Ada memory management seems slow
    ... >> GNAT uses malloc and free from the C library for memory management - so ... >> performace is the same as with C. ... Where you find almost the full sources for all gnat library functions. ...
    (comp.lang.ada)
  • Re: segmentation fault on calloc
    ... >> documentation, that's equally important to code quality when dealing ... seen lots of crashes in malloc, calloc and free, and all of them were ... the end of an allocated block, it is almost certain to overwrite some ... to a memory management function (no other code is allowed to touch ...
    (comp.unix.programmer)
  • Re: ANN: Q language website (new)
    ... "Garbage Collection Can Be Faster Than Stack Allocation" ... > the necessary skills to optimize their use of malloc and free and know ... Same with C++ developers in their ... > mixing different methods of memory management is not a good idea (a la ...
    (comp.lang.misc)
  • Re: ANN: Q language website (new)
    ... >> the necessary skills to optimize their use of malloc and free and know ... (more specifically programs written in other programming languages). ... >> mixing different methods of memory management is not a good idea (a la ... >> applications using memory upwards in the hundreds of megabytes, ...
    (comp.lang.misc)
  • Re: What is the best alternative for realloc in C++
    ... > do indeed use malloc under the hood as the default new ... Memory management is shared by the C++ library (for ... UNIX knows nothing about 'malloc'. ... Next time you arrogantly attack someone like Kevin for posting correct ...
    (comp.lang.cpp)