Search found 13 matches

by ochuckles
Thu May 26, 2011 1:08 am UTC
Forum: Coding
Topic: c++ closures
Replies: 15
Views: 2893

Re: c++ closures

Lexical closures without automatic memory management sounds kind of like a nightmare. I mean literally, I think I've had a code nightmare once where that's what it was about.
by ochuckles
Thu May 05, 2011 8:11 pm UTC
Forum: Coding
Topic: Macro Ethics
Replies: 17
Views: 2867

Re: Macro Ethics

I'll go ahead and play devil's advocate here. (I'm putting on my 'smug Lisp weenie' hat here. It's just a hat!) From a Lisp perspective, nothing you did there is terribly wrong. The Lisp idea is that it's better for code to be non-repetitive than 'regular' and 'readable.' Indeed, the most 'regular' ...
by ochuckles
Thu Apr 21, 2011 2:09 am UTC
Forum: Religious Wars
Topic: Best language for n00bs
Replies: 261
Views: 96916

Re: Best language for n00bs

the bondage and discipline inspires rigor. I find the opposite is true. At least languages with wimpy type systems like C and Java seem to be more of a crutch. I started with static, went to dynamic, and when I came back, I found I no longer needed static typing. I no longer made type errors with a...
by ochuckles
Thu Apr 21, 2011 1:42 am UTC
Forum: Religious Wars
Topic: The 1 true style
Replies: 198
Views: 158193

Re: The 1 true style

I like vertical alignment because it makes it so you can see the stack. Also what about when you just put a { without a control structure before it? Like if you're in straight-C and want to make a temporary variable. WHAT THEN?
by ochuckles
Thu Apr 21, 2011 1:34 am UTC
Forum: Coding
Topic: Is Common Lisp inherently slow or is it just my environment?
Replies: 12
Views: 3619

Re: Is Common Lisp inherently slow or is it just my environm

You might even say it already has: a program written in a managed language is probably never going to have a memory leak, nor crash from a heap or stack corruption, for instance. We'll see... Just because you're using a managed language doesn't mean you won't get them. Memory leaks in particular ca...
by ochuckles
Tue Apr 19, 2011 5:16 pm UTC
Forum: Coding
Topic: Is Common Lisp inherently slow or is it just my environment?
Replies: 12
Views: 3619

Re: Is Common Lisp inherently slow or is it just my environm

Is Lisp inherently slow? Maybe. It requires an abstraction of memory. We are not yet at the point where machines can manage memory more efficiently than humans, which is why things written in C/C++ tend to be faster. (the bottleneck in modern computing is memory allocation and cache-coherency and wh...
by ochuckles
Tue Apr 19, 2011 5:04 pm UTC
Forum: Coding
Topic: A compilation of best programming practices ?
Replies: 17
Views: 4272

Re: A compilation of best programming practices ?

My coding aesthetics: Try to describe all the patterns. Don't describe patterns that aren't there. Keep in mind that phrases like "best practice" and "industry standard" often exist to absolve people of guilt and responsibility when projects fail. Programmers of all people should...
by ochuckles
Tue Apr 19, 2011 4:52 pm UTC
Forum: Computer Science
Topic: How do I start learning about Comp. Science and Programming?
Replies: 23
Views: 3908

Re: How do I start learning about Comp. Science and Programm

Abelson and Sussman's Structure and Interpretation of Computer Programs.

I believe there is a free edition online somewhere.
by ochuckles
Wed Apr 13, 2011 7:49 am UTC
Forum: Religious Wars
Topic: The Turing Machine vs. Lambda Calculus
Replies: 32
Views: 20963

Re: The Turing Machine vs. Lambda Calculus

Aren't LC and TM equivalent in power in precisely the same way that Lisp and Brainfuck are?
by ochuckles
Tue Apr 12, 2011 1:02 am UTC
Forum: Coding
Topic: What programming approach should I use to write an AI?
Replies: 5
Views: 1707

Re: What programming approach should I use to write an AI?

Writing AI in a low level language is a nightmare. I suggest high level stuff that also makes side-effects easy. Having some form of continuation or coroutine is also a big bonus. Not having a distinction between code and data is almost requisite. Scheme or Lua to the rescue. Maybe Stackless Python?...
by ochuckles
Tue Apr 12, 2011 12:45 am UTC
Forum: Coding
Topic: Programming Language or theory based on signals
Replies: 9
Views: 1555

Re: Programming Language or theory based on signals

I think what you want can be achieved wihout a very complex "design pattern," at least in Lua. function addFunc(obj, methodname, extrafunc) local old = obj[methodname] obj[methodname] = function(...) old(...) extrafunc( ...) end end essentially you can think of this as a closure-based link...
by ochuckles
Sun Nov 14, 2010 10:27 pm UTC
Forum: Religious Wars
Topic: Am I the only one on here that can't stand Python?
Replies: 184
Views: 35189

Re: Am I the only one on here that can't stand Python?

Things I believe about Python: - It is only superficially minimalistic - In its attempt to please everyone, it forgot to be designed. - Its syntax is really neat. - But tabs should not have been allowed. After using both, I prefer Lua for just about anything I'd do with Python. Lua really just seems...
by ochuckles
Sun Nov 14, 2010 9:51 pm UTC
Forum: Religious Wars
Topic: Is Java is a bad language for beginners?
Replies: 234
Views: 132058

Re: Is Java is a bad language for beginners?

Languages you should learn first (in order): - C. (To learn how computers actually work.) - Scheme or CL or Lua or maybe JavaScript. (To learn how to describe patterns.) - Anything in between that floats your fancy. (This would include Python.) Start with an understanding of both low and high level ...

Go to advanced search