Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - alway

Pages: 1 ... 25 26 [27] 28 29 ... 474
391
Kept seeing occasional retweets from a neat twitter account that posts interesting, context-free images: https://twitter.com/archillect


oh my god is that the giant black one with gold filigree? My girlfriend was telling me there's a copy at the bookstore she works at. I'm so jealous.
Because Lovecraft is so old, you can actually pick those up pretty cheap. Picked up one of those myself awhile back for about $20 or $30 at Barnes & Noble; though my edition had silver lined pages, rather than the gold from that image. Also has one of those little built in bookmark thingys; pretty nice book, certainly fits the mood much better than a project gutenburg web page.

392
Horatio Alger is a horrible example of the American dream.  The lesson is that if you keep your head down and be obedient, one day a rich man will shower you with wealth.  If that's the American dream I'm changing my name to Treason McHater.
Well, Mr McHater, is that not precisely what the entire boomer-era 'corporate ladder' narrative is all about?

393
Obama tried bipartisanship. He got burned for it, hard. The Republican party does not accept compromise or negotiation; they are willing to shut down government to get every last item on their wish list. This has been shown time and again. That is what they have gerrymandered the districts for, and so that is the way it will be until they are driven out of office en masse and forced to change tactics.

394
I'm so glad that liberals and conservatives could finally agree to help corporations, which are too often left without a voice in congress.
Still, they did something other than deadlock!  It's progress!
(Yeah our government sucks.)
No, progress implies an end state which is decidedly better. This is Innovation.

395
General Discussion / Re: Space Thread
« on: October 10, 2015, 11:02:44 am »
Oh, and for those who missed it last week, NASA put over 10,000 Apollo mission photos up on Flickr:
https://www.flickr.com/photos/projectapolloarchive/

396
General Discussion / Re: Things that made you sad today thread.
« on: October 06, 2015, 01:43:47 am »
I spent a lot of time today thinking about consciousness and it ending in a semi-asleep state of mind. Maybe it seems really really obvious, but I've just realized I really really don't want to die. Like, I considered that my life would eventually end before with a degree of ambivalence, but I only now fully grasp the horror of not existing.
Don't fear death. Instead, make the most of your life. It's pretty much inevitable that you're going to die, but you have good while to live. Do something awe-inspiring with your life, and people will remember you for years to come, and you'll never truly 'not exist'. That is why my personal ultimate life goal is to get into history books.

And no, non-existence doesn't hurt either, since you'd not be around to feel it.
See, here's the thing: I used to think that way too. I mean, heck, I haven't been around for over 13 billion years already! And I only exist in and am confined to a tiny sliver of a spec of dust in space!

But then thinking about that more, I realized something:

I'm actually kinda sad at not getting to see any of that. It's like stumbling across a massive webcomic of absurdly good quality, getting to read one page of it, knowing that before and after it are a vast quantity of unseen pages, the links to which have all gone 404. There are forums of people talking about even the most minute details; but you will never get to see those, nor will you even hear about those details which happened to not be noticed by those people at the time you're looking.

All we get is fragmentary bits and pieces of these past great story arcs; nearly inscrutable hints at future story arcs. We will never get to see the formation of galaxies, the rise of life on earth. Nor in our lifetime will we even know where else life arose, apart from perhaps the faintest glimmer of discovery on a small number of other specs of dust, if we're very very lucky. We will never see humans spreading out to more than one or two of those specs of dust, let alone the long-scale migration across the cosmos which may or may not come. We won't see others who may or may not be doing the same. We won't see whether life still persists as the universe itself winds down; or whether life itself finds a way to stabilize the very universe it resides in in a way that allows life to continue living in it indefinitely.

And dangit, that's a whole lotta cool stories we're missing out on. :<

397
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: October 05, 2015, 11:36:34 pm »
3. Right now, I'm learning Python, R, and SQL (I'm more or less a linguistics major minoring in data mining). What else would be useful or enlightening to pick up in addition to those?
Those 3 should be a sufficient start for that particular application.

If you want to learn more about how computers actually work, I recommend C or a C-like introduction to C++. Possibly some basic computer architecture stuff with a simple assembly language like MIPS. Programming languages exist for the sole purpose of letting you reason about computing without mapping that directly to the hardware yourself; this is an imperfect process, since it leaves the less experienced unable to reason about how to effectively use the hardware. Learning the basics of the hardware and how instructions interact with it can help you reason about systems without resorting to "a wizard did it."

If you want to learn more about where computers are at and where they're going, probably look more into computer hardware/architecture stuff like this: https://www.udacity.com/course/high-performance-computer-architecture--ud007

398
Other Games / Re: Cities: Skylines, The Sim City we all wanted! Out Now!
« on: September 26, 2015, 11:12:37 pm »
Now that the day-night cycle has been added, the graphics are completely, absurdly great.
Spoiler (click to show/hide)

399
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: September 26, 2015, 02:29:52 pm »
*snip*
In short, yep.
What people call a 2D array is actually this (addresses and values arbitrarily added for clarity):
Spoiler (click to show/hide)
Numbers over the first elements are the starting address of the allocated blocks of memory; numbers inside are the values.
So, when you create one of these things, you first create the first block of memory in that image (0xab78700).
So the correct operation is actually
float **A = (float**)malloc(4*sizeof(float*)); as was pointed out by the earlier post. In a 32 bit program, yours would work by coincidence, since a float is 32 bits. In a 64 bit program, it would crash, since the pointer size is 64 bits in a 64 bit program.

After that, you allocate the blocks of memory in which you are actually going to be putting your data. When you make your calls to malloc, it returns the pointer values telling you where those newly allocated blocks of memory are (0xbf749030, 0xbc974970, 0xac974310, 0x4683bc70 in this hypothetical case). So you then take those values, and store them in your first array, which essentially is serving as a ledger telling you where to find your other arrays. That's what you're doing with your mallocs in the for loop.

After that, you now have your "2D array" which contains the pointers locating your actual data blocks. You can now fill them with float values at your leisure by looking into your first array for an allocated block's pointer, then following that pointer to its block.
A[2][3] essentially is just doing:
float* B = A[2];
float C = B[3];
composed in a single line.


Something else to keep in mind: when using C++, you should generally avoid this sort of multidimensional array. Calls to malloc are expensive; doing a small number of large mallocs is almost always better than a large number of small mallocs. As implied by the diagram, the memory addresses it gives you can also be scattered around; which results in very slow access times due to cache misses (which occur when the CPU isn't able to predict where data will be coming from next, and so is unable to move it into a nearby cache level; similar to a small-scale version of loading from disk vs from RAM; code using data near other data it recently used helps performance here). For these reasons, it is usually better to do an allocation for RowSize*ColSize, allocate a 1D array, and just index into it with [x+y*width].

400
General Discussion / Re: Gunnerkrigg Court: Confusion, confusion everywhere!
« on: September 26, 2015, 11:46:51 am »
Also, Coyote has now taking table-flipping to a new level.
Table flip? No.

This is a tableau flip.

401
The Republican voting demographic currently has Trump as their lead candidate. What did you expect them to do? Not be completely crazypants?

402
Neat, a conspiracy theory reposted from /pol/ as truth. Do we get one from the onion next, OP?

403
As a paid shill of the Big Ostrich, what ostrich initiatives can we look forward to?
A really big chicken in every pot!

404
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: September 12, 2015, 12:26:18 am »
Yeah, I absolutely adore notepad++.
Once I wanted to use a regex on a text file, never having done this before, and /i just entered it into the replace function and checked the box labeled "regex"/.
Yep, and in an actual job with actual massive codebases, its 'find in files' is amazing. Fast enough to be used in a practical manner on entire engines and build systems (is it in a c or cpp or cs file? search in file *.c* over the entire engine directory and you get it quick), and best of all, it keeps a log of the recently searched files, so you can go back if you need to; and since its chronological, you can even retrace your steps of reasoning. Visual Studio doesn't even come close, with its mere two find windows for remembering output while needing to be explicitly directed there to use more than one.

405
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: September 11, 2015, 12:23:21 am »
This is why I haven't learned any command line text editors yet. Specifically, barring some unforeseeable circumstances in the future, I'll spend more time learning it than it could possibly save me, and I have stuff I want to do now.
Or more specifically, if typing speed is a barrier to how fast you code, you're coding wrong. Save yourself some time by slowing down instead of having a bugs-per-minute speed of 60.

Pages: 1 ... 25 26 [27] 28 29 ... 474