« first day (1480 days earlier)      last day (3461 days later) » 

user1804599
4:00 PM
Eugene Krabs.
 
Squidward Tentacles
 
user1804599
Tentacle hentai.
 
Anyone have any funny programming jokes?
I'm bored.
 
user1804599
A SQL query walks into a bar, walks up to two tables and asks "can I join you?"
 
hehe
 
4:03 PM
827
Q: What is your best programmer joke?

hmasonWhen I teach introductory computer science courses, I like to lighten the mood with some humor. Having a sense of fun about the material makes it less frustrating and more memorable, and it's even motivating if the joke requires some technical understanding to 'get it'! I'll start off with a cou...

 
user1804599
I love the Prolog light bulb one.
 
["hip","hip"]
 
@AlexM. oh, we have something that looks like those, tasty things.
 
user1804599
pics or it didnt hapen — j_random_hacker Dec 26 '09 at 12:34
 
user1804599
4:09 PM
LOL
 
How do I link comments?
 
comment: <commend id>
 
I copy/paste the link
click on the comment's date, copy link
 
thanks
 
4:12 PM
hey, look at the bright side
if you attempted to troll nooble
 
at least you trolled me
I was tempted to try it out
wait, what's a comment ID?
 
a number
you get it from the comment url
 
I'll try it in the sandbox so it's less shameful
 
Downvote. Recent versions of Java are not slow. You C/C++ people will forever base your opinions on old versions of Java and its VM. — Ricket Apr 21 '09 at 0:33
 
4:15 PM
it doesn't work
 
damnit
it looked legit
 
@Nooble lol
 
We like to pretend Java is slow because it gives us a reason to hate the language :-P — Dan Nov 28 '08 at 9:33
 
then why are you showing me the arrow and the flag?
 
Took me a while as I'm running on Java :) — Goran Oct 26 '08 at 11:25
 
4:17 PM
> so this programmer goes out on a date with a hot chick
 
hahaha
 
lol this one is the best
 
@TonyTheLion Lol
 
wtf is wrong with me today
 
@AlexM. I posted that on my FB and people thought I was going out with a hot chick. Lulz were had.
 
4:18 PM
I blame the lack of fast food
I ate healthy stuff today... well somewhat
 
Click-upvote and Josh, good for you. I'm impressed that you found girls that were both hot and liked programmers with no sense of humor. — Kevin Feb 13 '09 at 14:55
 
@TonyTheLion lol
if I did that the first thing I'd see would probably be
"Alex M's mom likes this"
 
I think I'm going to order pizza
 
@AlexM. You added your parents?
 
@AlexM. thats why you don't add parents on FB
 
4:20 PM
my mom added me
I send her pics from time to time
 
Pics...?
Hehehe
 
we don't see each other that often
 
Oh.
Get her skype.
Then you could video chat
 
I don't need to see her that much
within reasonable limits and all that
 
@Nooble This is just awful.
 
4:23 PM
Do integers initialize to 0?
 
@Nooble static ones do
 
Ell
@Nooble if it's for free
 
I thought it would be undefined behavior.
 
@Nooble That is indeed UB.
 
Ell
@Nooble it is
 
4:24 PM
Hint: Use auto x = 0; instead. Then you can't forget to initialize it.
 
Ell
x hasn't been initialised
 
@Nooble Initialization is not free there
So no, it's not initialized
 
@Jefffrey What do you mean free?
 
That it doesn't have a runtime cost
 
user1804599
Terrible ideas.
 
4:26 PM
Nobody cares about initialization costs that occur before main runs.
 
@FredOverflow Does that mean that constexpr int x = 0; inside main is not initialized?
 
I think you can ask for explicit non-initialization in D like this:
int initialized_to_zero;
int uninitialized = void;
 
So, shouldn't X be a random number and not zero?
 
@Jefffrey If it lives on the stack, you pay runtime initialization cost.
@Nooble What makes you think 0 isn't random?
 
@Nooble implementation defined
maybe
 
4:28 PM
No, it's completely undefined.
 
@FredOverflow I thought it didn't live on the stack
 
Ell
@Nooble you got lucky ;)
 
@Jefffrey local constexprs don't live on the stack? interesting
 
@Ell Let me go do this on an actual compiler.
 
@FredOverflow Wasn't constexpr introduced to get rid of macros and have a runtime fallback in case they weren't that "constexpr"?
 
4:30 PM
@Jefffrey I don't know, I'm not an expert on constexpr, sadly.
 
Ell
@Nooble for me, compiling with -O1 is enough to get garbage
 
user1804599
Now you need a garbage collector!
 
@rightføld for local variables?
Today, I implemented a simple expression evaluator for doubles in Java:
$ 0.1 + 0.2
  0.1000000000000000055511151231257827021181583404541015625
+ 0.200000000000000011102230246251565404236316680908203125
= 0.3000000000000000444089209850062616169452667236328125
lol binary floating point for decimal values
 
that pattern with the 3 repeated numbers after a long sequence of 0s
 
funny, I never noticed that before
 
4:40 PM
and ending 25
portal 3 confirmed
 
All binary floating point fractions end in a 5.
@Jefffrey What's the difference in gameplay between Portal 1 and 2?
 
new mechanics
mostly 3 types of gels
and more storyline
 
And what will 3 bring to the table?
 
nothing, because there won't be a portal 3 AFAIK
 
3 mins ago, by Jefffrey
portal 3 confirmed
?
 
4:44 PM
yeah, instead of the classic "half life 3 confirmed" meme
because I'd love portal 3 more than half life 3
 
-5
Q: Is there a way to get around the Battlefield web starter?

AHungerArtistI have a peculiar situation. I'm a doomsday prepper and a security snob so when I view the internet, I use the command line to do HTTP requests and then read the recovered file (but only after I disconnected the internet). It's tricky, especially with JavaScript, but I manage to get everything I ...

 
C++17 confirmed
 
> I don't believe in using web browsers. Never have, never will.
 
@FredOverflow 3 minutes ago? iluminarty confermd
 
4:45 PM
lol
> I use the command line to do HTTP requests and then read the recovered file (but only after I disconnected the internet).
this takes paranoia to a new level
 
lol
 
> There are 10 types of people in the world. Those who understand binary and those who have regular sex.
 
@AlexM. Stallman found
 
good point
 
@AlexM. Doing HTTP requests still pull his IP, what is he scared about?
 
4:47 PM
I always feel uncomfy whenever I read about stallman's approaches
like, that don't own a mobile phone thing
 
@TonyTheLion Aren't 1 and 0 symbols for genitalia?
 
rightfold's 0
 
LOL
 
@Jefffrey more like a 0.5 if you ask me
 
@FredOverflow Never heard that before.
 
4:50 PM
10
A: Why do we study Java at university?

chubbsondubsI was in school when Java came out. And my university almost changed overnight. People were out right giddy at Java in academia. I was a Jr when it came out, and by the time my senior year, almost all academia was quickly moving to change their curriculum. Not just at my university but everyw...

> Employers want certain language experience, and at the time that was C/C++.
If I already know C++ and C, how much time will it take for me to learn C/C++?
I should invent a language called C/C++ just to fuck with people.
6
 
@FredOverflow C Divided by C Incremented by 1
CDBCIB1
 
@Nooble sounds like a character encoding :)
 
I never understood OpenGL :c
 
@Jefffrey What are you confused about?
 
@Jefffrey What's there to understand?
 
4:53 PM
FPS Creator Reloaded looks nice
you know, I'd pay $30 for it just to play around
it's like game maker but in 3D and first person
 
@FredOverflow all the projection matrix / model view stuff
 
that's just math
 
@AlexM. Why not just create your own engine :P
 
:effort:
 
Ell
@Jefffrey just maths really
 
4:54 PM
it sounds so unnecessarily complicated
 
why would I want to make an engine? :O
 
@AlexM. To show off to Lounge
 
can't you just give me a 3d space with any coordinate system and be done with it?
 
@Jefffrey No.
You are rendering to a 2D screen.
 
@Jefffrey unity
 
4:55 PM
@Jefffrey I just copy/pasted that matrix stuff from tutorials and never revised it :)
 
Ell
@Jefffrey you work pretty much in a 3d space
 
@Nooble So?
 
you can use raw OpenGL calls in Unity too
start there
 
@Nooble It takes more than that to impress most Loungers
 
Ell
You don't think about the 4th dimension
 
4:55 PM
@Jefffrey So, OpenGL doesn't handle your coordinate system. At the end of the day, you're drawing to clip space.
 
@Nooble meh
 
@AlexM. I'm talking about Haskell OpenGL
@Nooble It certainly does
 
considering how much math I know, I'd have more chances to make something else be impressive
 
Or at least that's what glOrtho is, no?
 
@Jefffrey oooh
 
4:56 PM
@Jefffrey You're using fixed function?
 
You define the coordinate system with it IIUC
 
Ell
@Jefffrey that's old gl
ie bad gl
you want to use opengl 3.3 +
 
That's Haskell OpenGL
 
@Ell Just 3+
 
v0v
 
Ell
4:57 PM
oh right
 
No gamdev will develop for anything higher than 3.1
 
Ell
@Jefffrey this is like using c++89 :3
 
So much hardware at 3.1
Especially Intel HD3000
Matrices are absolutely neccesary.
 
Ell
@Jefffrey there is no point really in learning old opengl
can I see the haskell library?
 
If you wanted easy, you should have gone with a Game Engine
 
4:59 PM
do Haskell DirectX!
 
@AlexM. AGHAGHAGHAGH
 
@Ell Here I guess
 
can Haskell interact with .NET?
use XNA stuff from there
 
user1804599
@FredOverflow Already built-in. :p
 
Ell
it's immediate mode too
 
5:00 PM
you really get a 3D space with coordinates in it
and nothing else
 
user1804599
@AlexM. You can call Haskell code with P/Invoke.
 
@rightføld I meant the other way around
something like...
 
user1804599
Maybe you can embed Mono.
 
IronPython but for Haskell
 
user1804599
5:01 PM
No idea.
 
user1804599
@AlexM. There is no such thing that isn't extremely experimental.
 
Ell
@Jefffrey try this tutorial arcadianvisions.com/blog/?p=388 . I just googled for it though, haven't read it :P
it uses modern gl though
 
Why haskell?
You're going to have to use C anyways when compiling shaders.
 
because game logic with haskell is an orgasm
 
user1804599
@Nooble compiling shaders is indeed such a substantial part of your program that it should certainly dictate the programming language you use.
 
user1804599
5:05 PM
Also, you don't have to use C for it.
 
Ell
You use GLSL not C
or some language that compiles to GLSL
 
@Ell GLSL is a lot like C
It looks like C
 
Ell
it's not C though :3
java looks like C. fugly.
 
Has anyone else seen Hackerrank
Looks fun
 
@Ell Let's see
 
user1804599
5:10 PM
 
Ell
I'm so frickin confused by rotations now :3
 
@Ell Matrices.
 
Ell
Matrices suck at rotations
 
@Ell what again
@Nooble it's also a lot not like C.
 
Ell
@BartekBanachewicz I'm just confused :L
 
5:21 PM
i.e. it isn't shit
 
Ell
I can't even explain what over
 
> Because this is so difficult, it is usual to convert to matrix notation or quaternions and calculate the product and then convert back to euler angles
@Nooble the fuck
 
@BartekBanachewicz GLSL*
 
@AlexM. XNA is dead
@Nooble ...right
 
@BartekBanachewicz it can still be used though
 
5:24 PM
@AlexM. just like Turbo-C 5
 
I doubt Jefffrey intends to build a full game that has to be supported for years now :P
@BartekBanachewicz except for those you have alternatives
 
@AlexM. which doesn't mean he has to use shitty obsolete technology supported on whopping one platform with closed backend
@AlexM. there's ~Glisha~
 
MonoGame doesn't provide everything XNA provided
 
which isn't necessarily a problem
 
unless you want to add content to your game
 
5:25 PM
also I'm officially a Game Developer now
 
then you still have to use XNA's content processor
 
does that make me automatically a shitty coder?
 
because MonoGame doesn't have one
and needs precompiled stuff made by XNA
 
or you can not use shitty frameworks like those
I don't have anything against XNA in particular
but considering that Unity is free and UE is free and CryEngine is free
(free == practically free)
 
I already recommended Unity
 
you cannot use Haskell with Unity
 
but then again, neither of those support Haskell natively
@AlexM. yeah. that's the point.
 
and I recommended XNA with the idea in mind that you may be able to call .NET code from Haskell
I wasn't sure if an interface exists or not
 
nah, not really.
but yeah I shouldn't jump to conclusions so fast, sorry
well I could work on Glisha, but effort.
I'd for example need to remove steering wheels from my desk
 
@BartekBanachewicz only if you really work on games I guess :P
I use the fact that I work on libraries to my defense
 
5:28 PM
@AlexM. hehe
 
Ell
How can I make this orbital camera with quaternions instead of lookAt
 
I've no doubt that there are many great game programmers
but judging by the people I've met so far
 
Ell
I want to rotate the x axis by a certain amount
rotate the y axis by a certain amount
then translate
 
@BartekBanachewicz You told me to remind you to post your older works with OpenGL in Haskell yesterday btw
 
I think when I'll have to search for a new opportunity
 
Ell
5:30 PM
I think.
 
I'll move to another branch of software dev
and keep away from gamedev companies
 
@Jefffrey oh that. I meant my older love2d thingies. I think I really lost the tesselation in Haskell :/
lemme get my ass to my main pc
 
problem is, I've no idea what branch that would be
you know like those guys in cppcon talks
"I've been called to this company to teach them how to code quality and unit tests"
 
What do they do?
 
I'd want to work in a place like that
 
user1804599
5:34 PM
stty raw y u no work.
 
maybe I'll search for something dealing with AI
that stuff for self-driving cars from Bosch doesn't sound so bad now
 
user1804599
WHAT THE FUUUUUUUCK
 
user1804599
stty -echo works by stty -cooked -echo does nothing.
 
@Jefffrey @Ell here are my hardcore ultrashort solo jam projects
 
user1804599
5:39 PM
(defn read-char []
  (sh "sh" "-c" "stty -icanon -echo < /dev/tty")
    (try (char (.read System/in))
      (finally (sh "sh" "-c" "stty icanon echo < /dev/tty"))))
 
user1804599
Beautiful.
 
For some definition of beautiful
 
pretty basic really
hmm do I have anything else
 
> -- if init failed, we exit the program
I remember that comment
 
prolly from GLFW-b
 
5:41 PM
yup
 
I tend to not erase those comments if they make sense
did I mention I'm starting new job tomorrow
 
How do I do this without having a ton of conditionals?
@BartekBanachewicz Congrats.
 
@BartekBanachewicz What's loadShader?
 
@Jefffrey dunno, it loads the shader? :P
 
No, I mean where is it defined?
 
5:44 PM
no fucking idea. prolly some util package
 
but it's not in the import list :c
thanks btw
 
import Graphics.GLUtil as U oh wait, it's not qualified, right
 
Is there such thing as an If generator?
I'd rather not type out 26 of these.
More like 52 actually.
 
user1804599
yaaay
 
5:46 PM
@rightføld woooo
 
@Nooble if you need that you are probably doing something wrong
 
Guys, its happening again
 
You try thinking of another solution.
 
1
Q: casting between two derived classes

user1316208is it legal to cast between pointers on classes that have common ancestor? Does the compiler notice such hierarchy and makes sure its safe (call 1) ? Or does the user have to go through the hierarchy manually for it to be always safe (call 2) ? say we have class A{}; class B:A{}; class C:A { ...

Just came back from school
So I just now answered it
How can they say its legal? (The cast I mean)
It may be that legality is defined by syntactical correctness
 
user1804599
5:49 PM
(defn game []
  (loop [state initial-state]
    (-> (read-char) decide-action (apply [state]) recur)))
 
user1804599
Where the action for unrecognised keys is just identity. :D
 
@Jefffrey Did you think of a solution yet?
 
one not involving 52 if statements?
yes
 
they nailed the soundtrack in this game
I don't know if that's baritone or bass
but it's amazing
 
5:53 PM
@Jefffrey Well, yeah, I thought of something without 52 now.
But it is equally as complicated.
 

« first day (1480 days earlier)      last day (3461 days later) »