Allegro.cc - Online Community
Post Reply

Allegro.cc Forums » Allegro.cc Comments » Thread locks too soon

rss feed Print
Thread locks too soon
Eric Johnson
Member #14,841
January 2013
avatar

Obligatory keep-this-thread-alive-until-it-burns-a-hole-in-Matthew-Leverton's-server post. 8-)

Edgar Reynaldo
Member #8,592
May 2007
avatar

NiteHackr
Member #2,229
April 2002
avatar

I seen an image about Democrats and I just had to whip up something similar about Liberals here in Canada (and any worldwide for that matter).

Warning, if you are easily offended, don't look at this (Edgar, I am looking in your direction ;) )

{"name":"611368","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/3\/3\/333c9d40c8aa1c00435e0a99f00b4346.jpg","w":600,"h":384,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/3\/3\/333c9d40c8aa1c00435e0a99f00b4346"}611368

Eric Johnson
Member #14,841
January 2013
avatar

Ha, you should make fun of the ideology, not the person. Otherwise it comes off as an attack instead of a critique in what they believe in (though I suppose some would consider a critique of their beliefs to be a personal attack all the same :P).

I'm not a liberal.

NiteHackr
Member #2,229
April 2002
avatar

On a more positive note, I just had some wine with the wife.

{"name":"611370","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/e\/9\/e954a3059fa427f3ee67bfc8790eaac5.jpg","w":512,"h":411,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/e\/9\/e954a3059fa427f3ee67bfc8790eaac5"}611370

Mark Oates
Member #1,146
March 2001
avatar

I used to consider myself a liberal. I guess until about 2 years ago. Now I just see that 1) everyone's crazy at the extremities of both sides and 2) the non-extremities on both sides have very valid, reasonable, and important lessons that you can learn from to make you better at life.

NiteHackr
Member #2,229
April 2002
avatar

I used to consider myself a liberal. I guess until about 2 years ago. Now I just see that 1) everyone's crazy at the extremities of both sides and 2) the non-extremities on both sides have very valid, reasonable, and important lessons that you can learn from to make you better at life.

I am pretty much the same, except I was more liberal voting until around 2004 or 2005ish when I gave it much more thought. I tend to be more conservative and vote in that direction these days, but I am not a blind follower. There was one election I didn't vote in because I didn't like the policies of anyone.

We have an upcoming one here in Ontario where I have had run-ins with both sides, but I still tend to be conservative, though some of the supporters in the PC party here felt cuts to save money should be done to welfare, which REALLY angered me as I am against kicking the poor to the curb to fatten your own wallet. But conversely, I am against the Liberal party and NDP party (ulta-socialists) reckless spending as well. I still have memories of when we had Bob Rae in Ontario which was the NDP running things. They are far left wing and our debt went from about 12% of our GDP to a whopping 30% in just one term! We have never seen a debt increase like that before or since, and now both liberals and NDP are promising more deficit spending when our debt is over 40% GDP I think at the moment. I understand their social aspects and looking after the poor, but it has to be done in a sustainable way, like encouraging job creation which gets people off of assistance, increases tax revenue as a result and reduces spending due to fewer people needing assistance.

So... yeah, both sides have some good points. Don't kick the poor to the curb, but neither should we drown in debt. There's a happy in between and nobody seems to be there, so I pick the ones that are closer to what I see as the better way.

And please God don't let this devolve into a huge political debate!!! ;D ;)

Mark Oates
Member #1,146
March 2001
avatar

Neil Roy said:

We have an upcoming one here in Ontario where I have had run-ins with both sides, but I still tend to be conservative.

I saw a headline somewhere that Jordan Peterson was considering running against Justin Trudeau. I think that would be interesting.

Quote:

And please God don't let this devolve into a huge political debate!!! ;D ;)

Well we gotta breathe some life back in the ol' Thread Locks Too Soon somehow! ;D

(Ok but yea guys, seriously please don't make this thread become political >:()

NiteHackr
Member #2,229
April 2002
avatar

I saw a headline somewhere that Jordan Peterson was considering running against Justin Trudeau. I think that would be interesting.

Well he couldn't do worse. ;)

Eric Johnson
Member #14,841
January 2013
avatar

I seldom hear anything about Canada in the news, but when I do, it tends to be something wacky. For example, I remember hearing a while back about the Supreme Court of Canada ruling in favor of allowing bestiality so long as penetration does not occur. :o Is that true?

Chris Katko
Member #1,881
January 2002
avatar

I think Trump was right.

-----sig:
“Programs should be written for people to read, and only incidentally for machines to execute.” - Structure and Interpretation of Computer Programs

NiteHackr
Member #2,229
April 2002
avatar

Wow!!! I just watched a documentary about new evidence on how the Titanic sunk. I was thinking before I watched it "yeah right, more conspiracies"... but then while watching it I was saying out loud "whoa, no way!!!". Yeah, this is mind boggling and something where nobody in their right mind would have sailed on this thing. In fact, out of over 100 of the crew that worked in the furnace rooms, only 8 sailed, the rest did not due to this problem! Yeah... worth a watch.

video

the Supreme Court of Canada ruling in favor of allowing bestiality so long as penetration does not occur. :o Is that true?

Yuppers! The story was sparked when a photographer took pictures of children performing... fellatio or something similar with dogs. But because there was no penetration, that was their ruling. Yeah, pretty sick bunch of people we have living here. It's shameful.

bamccaig
Member #7,536
July 2006
avatar

Neil Roy said:

Yuppers! The story was sparked when a photographer took pictures of children performing... fellatio or something similar with dogs. But because there was no penetration, that was their ruling. Yeah, pretty sick bunch of people we have living here. It's shameful.

What actually happened is that the law as it was written said penetration was illegal, but it didn't consider other things. Keep in mind, it was probably written 50 or 100 years ago. When I was like 15 I somehow got into a debate about rape with my mother, and I made a point about how men could be raped just like women, and she literally could not comprehend the idea. It was like saying I was going to make apple sauce with an orange. We don't always comprehend the full idea from the start. We usually start with a fragment of the idea and over time develop the full idea.

It's good that the courts upheld the wording of the law. I don't know about you, but I wouldn't want to live in a society where the courts could just ignore the way the law was written and criminalize you despite no law saying what you did was illegal. It's fair for the courts to refuse to uphold laws that they don't believe are just, but to invent laws is just anarchy. I'm not familiar with the case. I had to Google at all to figure out what you guys were talking about. It sounds like the courts' hands were tied because of the way the laws were written. And that's OK. There's an opportunity to refine the law.

You sort of have to consider the consequences: is it worse for a guilty person to go free or an innocent person to be convicted? I'm not sure what the answer is. Neither of them is just. Neither of them is fair, or right. You might argue that they're both equally bad. I think most people, including me, would lean towards it being worse for an innocent person to be convicted than for a guilty person to go free.

In any case, courts have to try to determine guilt and innocence without omnipotence. The only way to do so is to have laws written down to judge from, and to consider the facts and evidence. It's not a perfect process. It can't be. That media outlets would spin it to suggest that Canada had legalized beastiality just emphasizes how much of the "news" is complete bullshit just to sell ads and papers. It's all garbage.

Apparently in 2016 a new bill was submitted to clarify the laws.

On a side note, just today or yesterday a thought popped into my head. Humans can and will attempt to justify any act they find themselves committing. Whether it's a business person exploiting people for profit, a rapist exploiting a person for sexual gratification, or an angry mob assaulting a person accused of sexual abuse. We're a very irrational being most of the time. It's kind of amusing to consider that most of us value "justice", and yet most or all of us have serious bugs when it comes to determining what is and isn't just.

MiquelFire
Member #3,110
January 2003
avatar

Quote:

This video contains content from CBS, who has blocked it in your country on copyright grounds.

I clicked to see how long that Titanic video was and got this...

bamccaig said:

On a side note, just today or yesterday a thought popped into my head. Humans can and will attempt to justify any act they find themselves committing. Whether it's a business person exploiting people for profit, a rapist exploiting a person for sexual gratification, or an angry mob assaulting a person accused of sexual abuse. We're a very irrational being most of the time. It's kind of amusing to consider that most of us value "justice", and yet most or all of us have serious bugs when it comes to determining what is and isn't just.

You gave me a reason to justify my anti-social/asocial methods!

---
Febreze (and other air fresheners actually) is just below perfumes/colognes, and that's just below dead skunks in terms of smells that offend my nose.
MiquelFire.red | +Me
Windows 8 is a toned, stylish, polished professional athlete. But it’s wearing clown makeup, and that creates a serious image problem. ~PCWorld Article

NiteHackr
Member #2,229
April 2002
avatar

I clicked to see how long that Titanic video was and got this...

That's too bad. The gist of the video is that when the Titanic sailed, it had a fire that had been burning out of control in one of it's massive coal bunkers (three stories tall!) which had been burning for several weeks before they even discovered it. The only way to put out the fire was to actually shovel the several TONS of coal out of the bunker, so they decided to set sail anyhow, with the fire still burning. One man discovered something odd in an old photo of the Titanic in dock which sparked his investigation, an odd colour on the side of the ship, right around where the iceberg hit as well later on which indicated that the fire which had been burning for weeks at that time had physically effected the metal. Add to that the fact that they found out the steel used in the construction of the ship was not the quality it should have been. Well, the ship sailed, fire still burning. The reason why the Titanic travelled at full throttle was because they were shovelling in coal as fast as they could to try and deal with this fire. A few days into the trip the fire was finally out and the ship then HAD to travel at full speed or it would have run out of coal which had been used up due to this fire and the company couldn't afford to buy much more coal because there was a coal workers strike going on at that time making it very expensive to replenish.

Anyhow, the coal fire burned so hot it was stated that one of the metal barriers that protected the ship from flooding was red hot and had a huge dent in it where the heat deformed and weakened it. Well, when the titanic hit the iceberg, going as fast as it was it started to flood, but it was still NOT in danger of sinking due to how it was designed. It could withstand being flooded and still sail because of these watertight compartments BUT... because this one key barrier had been weakened by the fire, there was an eye witness that seen it burst, where it had been deformed by the heat and that was the ONLY thing that kept it from sinking.

This wasn't some sort of conspiracy theory or anything, they went through the official documents and trial records as well as had experts analyze the data.

I guess the most coal workers who shovelled it into the furnace and knew about the fire before it sailed refused to sail on the ship when it left port! There were over 100 of them that worked the furnace and when the ship was ready to sail only 8 of those remained, the rest refused to sail with the ship and they had to replace that crew with a new one who didn't know about the fire and when they learned about it, they were ordered to keep silent about it.

Amazing anyhow.

Chris Katko
Member #1,881
January 2002
avatar

I've actually been working on improving the API of Allegro 5 for my personal projects.

I use DAllegro (and D), so I can use higher-level constructs that vastly improve functions.

Want to draw to a separate bitmap? No more:

ALLEGRO_BITMAP *original = al_get_target();
al_set_target(my_target);
draw_stuff();
al_set_target(original);

I can just do:

with(al_target(my_target))
    {
    draw_stuff();
    } //automatically restores target at the end of this. And supports nesting.

Likewise, with D's fantastic templates, I've got a WAY better al_draw_bitmap function signature that doesn't require looking up the manual every time you want a scaled or rotated bitmap.

#SelectExpand
1// Don't you love having newlines for every "group" of arguments 2// to keep track of them? 3al_draw_scaled_rotated_bitmap(bmp, 4 25, 5 25, 6 0, 7 0, 8 9 2.0, //x scale 10 2.0, //y scale 11 12 32, //degrees 13 14 0 //flags 15 );

Becomes

al_draw_bitmap(pos(25,25), scale(2.0), rotate(32)); 

//and no flags because we're not using them.

Want to tint it? Simply add tint(32,32,32,255). The parameter order doesn't matter! And the variables are grouped and way more readable! AND, parameters you don't use (like flip horizontal/vertical) don't show up unless you use them!

And it's all resolved at compile-time into the normal al_draw_scaled_rotated_tinted_blah_blah_blah_blah(...) function. Zero run-time overhead.

I also have "center" which subtracts the half of the width and height internally for drawing "centered" sprites. All using the same function.

I also wrote two helper functions so I can use .w and .h on bitmaps (which translate to al_get_bitmap_width/height at compile-time) instead of using the laborious, annoyingly long, Allegro 5 getter functions. (Whereas A4 had .w and .h)

And I'm just getting started!

-----sig:
“Programs should be written for people to read, and only incidentally for machines to execute.” - Structure and Interpretation of Computer Programs

Edgar Reynaldo
Member #8,592
May 2007
avatar

Chris Katko
Member #1,881
January 2002
avatar

There are caveats.

- D can call all C natively.
- D can call lots of C++ natively.
- For full C++, Calypso fork supports all of C++ (without wrappers) by integrating LLVM/Clang into LDC (LLVM based D compiler)
- Extra issues with using DLLs, I think.

C++ can call D code (D is kind of like C++ plus a runtime in a separate thread) but I haven't looked as far into it:

https://dlang.org/spec/cpp_interface.html#using_d_classes_from_cpp

Looks like you have to write "C++" mode (a subset of D, IIRC) to expose it to something C++ can understand. So, it seems like you just write a D to C++ wrapper layer.

(As always, note: D doesn't require a garbage collector but it's encouraged to use many features, like lambdas. Even then, GC's aren't as bad as people think for games. GC can be disabled for sections of code as well. And GC collections in D only occur during an allocation--never just randomly.)

There's also the -BetterC option, which resolves down to C code. That may be a viable method to use the expressive D template features/etc, but end up with plain C amd Allegro code in the binary.

I'm no authoritative expert on D, but I'm definitely enjoying what I can do with it.

-----sig:
“Programs should be written for people to read, and only incidentally for machines to execute.” - Structure and Interpretation of Computer Programs

MiquelFire
Member #3,110
January 2003
avatar

Okay, I just thought of something that would be interesting to see. You know how there are those games that are in the $4.99 $5.99 range? What if they went on sale on April Fools for $4.01 (At least in the areas of the world that uses mm-dd formatting). Or a game more than $41 be $41.YY with YY being the two-digit year (so $41.19 would be the cheapest in our lifetime if they started doing this next year)

---
Febreze (and other air fresheners actually) is just below perfumes/colognes, and that's just below dead skunks in terms of smells that offend my nose.
MiquelFire.red | +Me
Windows 8 is a toned, stylish, polished professional athlete. But it’s wearing clown makeup, and that creates a serious image problem. ~PCWorld Article

Eric Johnson
Member #14,841
January 2013
avatar

H370 and B360 motherboards finally dropped today for Intel's 8th generation line-up. I can finally upgrade!

What if they went on sale on April Fools for $4.01 (At least in the areas of the world that uses mm-dd formatting).

That'd be neat, but I'm not sure being cute with the price/date would be good for business. :P

MiquelFire
Member #3,110
January 2003
avatar

Considering what April Fools is, that might be the only date it won't matter. It would only work if the price is not that much higher than the normal price from a business sense. Assuming the discount you might offer at any other time would actually be more. Like if your game is known for going for a 40% discount (like during one of the Steam sales) and the $4.01 or $41.YY would be less, why not.

Another trick a store could use (not sure if there are any laws that would actually disallow this) is to have the price on the normal page say 10% off, but the actual price is 20% once in the cart. Never the other way though.

---
Febreze (and other air fresheners actually) is just below perfumes/colognes, and that's just below dead skunks in terms of smells that offend my nose.
MiquelFire.red | +Me
Windows 8 is a toned, stylish, polished professional athlete. But it’s wearing clown makeup, and that creates a serious image problem. ~PCWorld Article

Chris Katko
Member #1,881
January 2002
avatar

10% off, but the actual price is 20% once in the cart.

So for an April Fools gag, you want to commit fraud? ;) ;D

-----sig:
“Programs should be written for people to read, and only incidentally for machines to execute.” - Structure and Interpretation of Computer Programs

MiquelFire
Member #3,110
January 2003
avatar

Would this example be a gray area in the eye of the law? The best would be to have the normal discount, and right on the same page (and/or on the cart screen) have a promo code that gives the rest. Which I don't think Steam has a promo code in their checkout.

---
Febreze (and other air fresheners actually) is just below perfumes/colognes, and that's just below dead skunks in terms of smells that offend my nose.
MiquelFire.red | +Me
Windows 8 is a toned, stylish, polished professional athlete. But it’s wearing clown makeup, and that creates a serious image problem. ~PCWorld Article

Chris Katko
Member #1,881
January 2002
avatar

OH MY GOSH. This thread has been going since 2015!??

Also, I can't even FIND the post where someone here gave me a copy of Laser Lock (whereas the Depot version zip was corrupted). Pretty sure I lost it on my laptop when an SD card broke in half when the laptop was dropped. :/

Still, I think it has no source code. So there's really no possibility of doing a Resurrection Hack on it.

-----sig:
“Programs should be written for people to read, and only incidentally for machines to execute.” - Structure and Interpretation of Computer Programs

bamccaig
Member #7,536
July 2006
avatar

This thread has been going since like 1999. >:( Just nobody knew it until 2015.

Not sure if I'm drunk or that makes sense. Or both. Nevermind, I know I'm drunk. I don't know if that makes sense.

On a side note, it just reinforces that I'm old. Time has been going faster since I turned ~18, but these days it zips by. It won't be long before I'm nearing my final years and wondering why I wasted all my time on the things I chose to waste it on.

Then Jesus is going to use a whistle to warp me to the Heaven level where it will feel like time has stopped and voyeurism will be a socially acceptable pastime..

Post Reply


Go to: