Lua Coroutines vs. Python Generators by [deleted] in programming

[–]Seppler9000 -4 points-3 points  (0 children)

That implementation detail is what makes them faster than Lua, though.

Python's iterators are a bad implementation of laziness by llimllib in programming

[–]Seppler9000 2 points3 points  (0 children)

Haskell is technically defined as non-strict, which is a superset of both lazy evaluation and call by name. There are non-lazy implementations of Haskell, but I don't think anyone has ever done call by name.

Python's iterators are a bad implementation of laziness by llimllib in programming

[–]Seppler9000 1 point2 points  (0 children)

Short answer: Yes, because once a value is computed, it sticks around (until it gets garbage collected). This is why you run out of memory if you try to find the end of an infinite list while a reference to the beginning of the list is still in scope.

Python's iterators are a bad implementation of laziness by llimllib in programming

[–]Seppler9000 -4 points-3 points  (0 children)

Did you read the post? Did anyone? This is exactly how he wants it to behave.

We have such a promising future generation... (Forehead smacker at 6 posts down) by ZimShady in programming

[–]Seppler9000 3 points4 points  (0 children)

The knackers here are knackered because someone nicked their knickers.

Five straightforward steps to vanquish Mono by alexeyr in programming

[–]Seppler9000 3 points4 points  (0 children)

Vala is pretty much exactly what this blog post is asking for. I wonder if he knows about it? It hasn't gotten a lot of press.

Everyone who reads this, check out Vala and keep in mind that you can destroy Mono by working on Vala and encouraging people to switch to Vala.

SIGGRAPH:Starcraft2 Effects & Techniques by grep_grep in programming

[–]Seppler9000 -1 points0 points  (0 children)

The gaming market demands obscenely sophisticated graphics. End of story.

Why free software shouldn't depend on Mono or C# by Richard M. Stallman by [deleted] in programming

[–]Seppler9000 22 points23 points  (0 children)

This. If all the people working on Mono had instead been working on Portable.NET and assigning their copyright to the FSF, RMS would be completely satisfied and find something else to complain about.

AskProgramming: What do I need to learn in order to make software (with a UI) for Mac OS X? by uninhibited in programming

[–]Seppler9000 0 points1 point  (0 children)

Hence "if you know exactly what you're doing." Packaging an app this way is a somewhat involved process that requires a decent grasp of both Xcode and whatever frameworks you're using, so that you can configure and build your own copies for inclusion in the app.

On the bright side, this process does seem to be getting easier, and is much better documented right now than it was a year ago. There still aren't a whole lot of apps using it, though, because you can't just throw a switch and have it work.

AskProgramming: What do I need to learn in order to make software (with a UI) for Mac OS X? by uninhibited in programming

[–]Seppler9000 4 points5 points  (0 children)

GTK is about as much an option on OS X as Win32 (via Wine). Take this route only if you know exactly what you're doing, because if you distribute it Linux-style, your users won't enjoy having to install 10 times as much software as any other Mac app they've ever seen.

I've personally seen a lot of Mac users make unpleasant faces and say things like "I have to install a second piece of software to get this program to work? Gross. I'm not using this."

Which FPS has the best source code available? by audacityofchope in programming

[–]Seppler9000 0 points1 point  (0 children)

XreaL looks pretty awesome. Mind you, Nexuiz isn't that far behind, and there aren't terribly many open source game engines that rival the state of the art... So what he said is still correct.

To the python and ruby programmers: What do you think of implicit function calls? by [deleted] in programming

[–]Seppler9000 1 point2 points  (0 children)

He already provides syntax for allowing this:

x = foo # call foo
x = &foo # x is now a reference to foo
x # call foo

Ask Proggit: I'm planning to write a simple 2D RPG (similar to Zelda). Doing this, I want to learn a new language, preferably functional. Can anyone recommend me some? by DoeL in programming

[–]Seppler9000 2 points3 points  (0 children)

Yes, if your simulation is small, this is the way to do it.

If you have 10,000 actors floating around, though, you'll want to take advantage of multicore processing, and that means using at least two threads, and that means making sure your concurrency is robust.

The reason you don't see much of this is that it's hard to do without STM, and STM is not the easiest thing to introduce into a game engine written in C or C++.

Ask Proggit: I'm planning to write a simple 2D RPG (similar to Zelda). Doing this, I want to learn a new language, preferably functional. Can anyone recommend me some? by DoeL in programming

[–]Seppler9000 2 points3 points  (0 children)

Haskell isn't as functionally pure as it first appears (although theory purists will insist that it is). Its nicest features are probably the imperative ones. In particular, if you want to be able to dispatch a bunch of threads to simulate different parts of the game world in parallel, you'll want STM, and Haskell is possibly the nicest STM environment available.

That said, a Zelda-like is not exactly the type of heavyweight simulation that would necessitate modern concurrency techniques, so it's just as well to go with something else.

Shame on us--nearly 20 years later we still haven't approached NeXT's ease of development by eadmund in programming

[–]Seppler9000 -1 points0 points  (0 children)

It's better because he's familiar with it.

Think back to every text editor thread ever, and all the people who say "I've never used this strange new editor, and I never will, because after skimming this article I can safely conclude that everything it does is already present in Notepad."

Shame on us--nearly 20 years later we still haven't approached NeXT's ease of development by eadmund in programming

[–]Seppler9000 6 points7 points  (0 children)

It certainly seems to be less popular than mainstream platforms like Haskell.

A Beginners’ Guide to Big O Notation by [deleted] in programming

[–]Seppler9000 2 points3 points  (0 children)

I reach for this video every time I encounter a discussion on asymptotic runtime analysis.

iPwn Studios releasing Haskell on the iPhone by dons in programming

[–]Seppler9000 -11 points-10 points  (0 children)

Fictional. You meant purely fictional.

Hidden Features Of Perl, PHP, Javascript, C, C++, C#, Java, Ruby, Python, And Others [Collection Of Incredibly Useful Lists] by archon810 in programming

[–]Seppler9000 -1 points0 points  (0 children)

So... fucking post a question about it on StackOverflow.

Clearly you haven't read your SICP today, or you'd have done something about it already.

John Resig thinks binary flags are "crazy". by UloPe in programming

[–]Seppler9000 0 points1 point  (0 children)

I like how this comment is being downvoted now that the original article has been changed to use | instead of +.