Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

I hate you

Name: Anonymous 2009-08-29 7:15

Ever since I've read SICP I find myself reimplementing LISP features when programming in Sepples. I'm constantly struggling between linking against Boost or writing my own, lighter equivalents of it's features.

Damn you /prog/, you were right.

Name: Anonymous 2009-08-29 8:08

or writing my own, lighter equivalents of it's features.
It's not like you could even if you tried.

Name: Anonymous 2009-08-29 8:18

Greenspunning at its best!

Name: Anonymous 2009-08-29 8:48

The problem isn't with ability but with time and the flexibility.
For example: I wrote a "functor to function pointer adapter" which has half the overhead of the Boost equivalent. With Sepplesox features could be modified to enable functor in-lining.
I had to roll my own due to performance reasons but I constantly catch myself writing simple functors when a one-liner with Boost::Lambda would suffice. Come to think of it, I need to check if my adapter works with Boost::Lambda and what's the lambda's overhead.

Name: Anonymous 2009-08-29 9:36

I find myself reimplementing LISP features when programming in Sepples

#define (+ plus(
int plus(int, int);
main()
{
   printf("%d\n", (+ 2, 3));
}
int plus(int x, int y)
{
   return x + y;
}

something like this?
it probably doesn't work, i didn't bother testing

Name: Anonymous 2009-08-29 9:48

>>5
Closures and currying. I have a couple of functions with lots of parameters. Some of their arguments are supplied during run-time. The resulting partially evaluated function has to be passed to a bunch of different libraries which accept only a particular type of a C function pointer. Libraries are written is C, C++, FORTRAN. App is in C++. See >>6.

Name: Anonymous 2009-08-29 12:19

"GRUNNERSPUNG"

Name: Anonymous 2010-12-28 14:55

Name: Anonymous 2011-02-03 0:24


Don't change these.
Name: Email:
Entire Thread Thread List