Search found 183 matches

by LuaWeaver
Tue Jan 13, 2015 4:38 am
Forum: Libraries and Tools
Topic: Simple implementation of SAT
Replies: 0
Views: 965

Simple implementation of SAT

Hey guys! I've seen plenty of AABB around here, and that's good and all, but a lot of my friends (not on these forums) can ONLY understand AABB. That's not a good thing, because AABB is very limited: it's great at what it does, but it's very, very terrible at what it's not meant to do. I decided to ...
by LuaWeaver
Tue Sep 09, 2014 11:33 pm
Forum: General
Topic: Challenge: Write the shortest implementation of a stack
Replies: 9
Views: 2676

Re: Challenge: Write the shortest implementation of a stack

Liking the Illuminati icon, slime! ;) I do think the object API is a bit unnecessary, but I guess it makes it more challenging. For the point of the challenge: do spaces and newlines / tabs count as "characters"? Yes. Also, the point of forcing the methods was to make it a challenge. As kikito said...
by LuaWeaver
Tue Sep 09, 2014 9:49 pm
Forum: General
Topic: Challenge: Write the shortest implementation of a stack
Replies: 9
Views: 2676

Re: Challenge: Write the shortest implementation of a stack

The specifications are "create an object", meaning you can use :push and :pop to modify the stack. s={} doesn't give the "push" and "pop" methods, and the above doesn't quite create an object, although it's certainly interesting.
by LuaWeaver
Tue Sep 09, 2014 4:17 pm
Forum: General
Topic: Challenge: Write the shortest implementation of a stack
Replies: 9
Views: 2676

Challenge: Write the shortest implementation of a stack

Your task is to implement the shortest and cleanest form of a stack in Lua. To have your code pass this challenge, you need to have a "push" method of the stack object, which accepts a value and adds it to the top of the stack, and a "pop" method of the stack object, which removes and returns the to...
by LuaWeaver
Fri Jul 11, 2014 1:51 am
Forum: General
Topic: If you were to create a programming language...
Replies: 42
Views: 8240

Re: If you were to create a programming language...

Obviously the raw if would have to be implemented in the host language, but you could then overwrite 'if' to do weird things if you want. Flexible. Dangerous. I like it. I'm currently reading Practical LISP, and pretty much LISP does just that , where you can redefine the whole language if you want...
by LuaWeaver
Thu Jul 10, 2014 6:05 am
Forum: General
Topic: What's your Inspiration?
Replies: 15
Views: 3635

Re: What's your Inspiration?

Dunno how long this is going to be, but here I go. What inspires you guys to program? I program for the sake of programming. It feels... right. It's logic. It works. It's how my mind works. One specific flow, complicated yet elegant, natural, flowing... it just gives me the best feeling in the world...
by LuaWeaver
Thu Jul 10, 2014 5:26 am
Forum: General
Topic: If you were to create a programming language...
Replies: 42
Views: 8240

Re: If you were to create a programming language...

Lots of things are functions rather than built-in features to allow power and would have some nice syntactic sugar to hide this. For example, an if statement might look like this: if(blahblah == 'hi'){ whatever } But 'if' is a function. For example, an 'equivalent' Lua thing would be like local func...
by LuaWeaver
Sat May 17, 2014 6:38 pm
Forum: Libraries and Tools
Topic: Zed.lua (3d library)
Replies: 11
Views: 5508

Re: Zed.lua (3d library)

I can't do the cross-eyed thing... I'm supposed to cross my eyes until the dots line up in the center, right?

Also, awesome! Thanks for linking that tutorial.
by LuaWeaver
Fri May 16, 2014 1:38 am
Forum: Games and Creations
Topic: [LD29] The Last Beacon (with post-compo!)
Replies: 10
Views: 2551

Re: [LD29] The Last Beacon (with post-compo!)

My feedback; good concept, annoying sound for laser (eeeek), and needs more difficulty, but otherwise it's fine.
by LuaWeaver
Fri May 16, 2014 1:19 am
Forum: Libraries and Tools
Topic: Love2D 3D Tutorial #3 - Matrices
Replies: 19
Views: 8190

Re: Love2D 3D Tutorial

...I see you didn't use my suggestions. :( Scene * Define scene * Collection of verticies and shapes - Right now, working with just shapes Fill scene with rand. verts * Explain negative z = forward (why, mr. oysi?) Start basic render code * Explain 'projection' - Define - Mention we're doing 3d -> 2...