archived stringclasses 2
values | author stringlengths 3 20 | author_fullname stringlengths 4 12 ⌀ | body stringlengths 0 22.5k | comment_type stringclasses 1
value | controversiality stringclasses 2
values | created_utc stringlengths 10 10 | edited stringlengths 4 12 | gilded stringclasses 7
values | id stringlengths 1 7 | link_id stringlengths 7 10 | locked stringclasses 2
values | name stringlengths 4 10 ⌀ | parent_id stringlengths 5 10 | permalink stringlengths 41 91 ⌀ | retrieved_on stringlengths 10 10 ⌀ | score stringlengths 1 4 | subreddit_id stringclasses 1
value | subreddit_name_prefixed stringclasses 1
value | subreddit_type stringclasses 1
value | total_awards_received stringclasses 19
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
True | reventlov | null | On (pretty much) any compiler, (unsigned)-1 is equal to UINT_MAX--the unsigned number with all bits set to 1. Technically, this is undefined, and optimizing compilers may do things you don't expect, but it works often enough that people still do it. | null | 0 | 1319008696 | False | 0 | c2so4ee | t3_lg59j | null | t1_c2so4ee | t1_c2sktdq | null | 1427752161 | 2 | t5_2fwo | null | null | null |
True | dranek | null | > the value of an array is a pointer to its first element
you know, as appose to the value of an array being the array. | null | 0 | 1319009264 | False | 0 | c2so5wz | t3_lgfp0 | null | t1_c2so5wz | t1_c2sn9h2 | null | 1427752174 | 1 | t5_2fwo | null | null | null |
True | xlerb | null | That use of “anymore” is apparently a dialect thing; I could've sworn there was a Language Log post about it, but all I can find are [some comments](http://languagelog.ldc.upenn.edu/nll/?p=1759#comment-44119). | null | 0 | 1319009562 | False | 0 | c2so6p6 | t3_lgfp0 | null | t1_c2so6p6 | t1_c2sk8nw | null | 1427752184 | 1 | t5_2fwo | null | null | null |
True | scoufman | null | Lots of love. | null | 0 | 1319009731 | False | 0 | c2so74p | t3_lgwpf | null | t1_c2so74p | t1_c2snzw6 | null | 1427752190 | 2 | t5_2fwo | null | null | null |
True | xlerb | null | For values of “nobody” including the people who implement the language you're using instead of C, and the OS it runs on. | null | 0 | 1319009780 | False | 0 | c2so79g | t3_lgfp0 | null | t1_c2so79g | t1_c2slwvr | null | 1428192009 | 2 | t5_2fwo | null | null | null |
True | mogwai_poet | null | That was someone's SIGGRAPH whitepaper once. | null | 0 | 1319009814 | False | 0 | c2so7ck | t3_lgwpf | null | t1_c2so7ck | t1_c2snkzk | null | 1427752193 | 32 | t5_2fwo | null | null | null |
True | sgmctabnxjs | null | Triangles were divided until there were no intersections, then a [potentially visible set](http://en.wikipedia.org/wiki/Potentially_visible_set) was calculated, so from any point in the map you'd know which triangles were visible. | null | 0 | 1319009950 | False | 0 | c2so7oj | t3_lgwpf | null | t1_c2so7oj | t1_c2snf44 | null | 1427752198 | 3 | t5_2fwo | null | null | null |
True | aaronla | null | Because so few of the constructs in each language have an identical counterpart, your table is going to need to represent many-to-many relationships between each language. The alternative would be to forego the "in detail" attribute.
I'd enjoy seeing such an effort, but it's going to be a monumental undertaking. | null | 0 | 1319009963 | False | 0 | c2so7po | t3_lg1xx | null | t1_c2so7po | t1_c2sgqa6 | null | 1427752198 | 2 | t5_2fwo | null | null | null |
True | mogwai_poet | null | The process of putting the world model into the BSP tree necessarily splits up any intersecting polygons. As for moving objects, they *did* use z-buffering for that. They rendered the world polygons with only z-writes and object polygons with only z-reads. | null | 0 | 1319010027 | False | 0 | c2so7vt | t3_lgwpf | null | t1_c2so7vt | t1_c2snf44 | null | 1427752200 | 2 | t5_2fwo | null | null | null |
True | aaronla | null | contrast with C#: don't forget a very long, very detailed treatise on how you can't write [exception-safe recovery of resources](http://www.bluebytesoftware.com/blog/PermaLink.aspx?guid=88e62cdf-5919-4ac7-bc33-20c06ae539ae), and you can't [prevent exceptions from occuring either](http://www.bluebytesoftware.com/blog/Pe... | null | 0 | 1319010172 | False | 0 | c2so88f | t3_lg1xx | null | t1_c2so88f | t1_c2siscd | null | 1427752214 | 2 | t5_2fwo | null | null | null |
True | erez27 | null | No, I think they mean he was *correctly* misleading. | null | 0 | 1319010500 | False | 0 | c2so90s | t3_lgjhl | null | t1_c2so90s | t1_c2so1kj | null | 1427752221 | 4 | t5_2fwo | null | null | null |
True | zanonymous | null | Well, that's a 5 lbs paperweight I won't need anymore.
Cheers :) | null | 0 | 1319010729 | False | 0 | c2so9k8 | t3_lgwpf | null | t1_c2so9k8 | t1_c2snzw6 | null | 1427752227 | 3 | t5_2fwo | null | null | null |
True | zanonymous | null | I don't know that this book is timeless, but I remember having my mind blown with some of the assembler tricks that guy pulled.
I tracked Michael Abrash down in his office at once, just so I could meet him. Very nice guy, he took the time to say hi and everything. Should've taken a picture. | null | 0 | 1319010823 | False | 0 | c2so9t5 | t3_lgwpf | null | t1_c2so9t5 | t1_c2sm0ov | null | 1427752229 | 4 | t5_2fwo | null | null | null |
True | aaronla | null | I second the "start from the beginning" sentiment, having been burned a few times recently on C#'s idiosyncrasies (from a C++ developer's point of view; cue random quips "C++ developers are dumb" or such)
It really would be nice if C# had something as well organized as the [C++FAQ lite](http://www.parashift.com/c++-fa... | null | 0 | 1319010880 | False | 0 | c2so9yl | t3_lg1xx | null | t1_c2so9yl | t1_c2sfuxn | null | 1427752231 | 2 | t5_2fwo | null | null | null |
True | humor_me | null | I had almost forgotten how slow the internet was ten years ago. | null | 0 | 1319011009 | False | 0 | c2soa8r | t3_lgwpf | null | t1_c2soa8r | t1_c2snzw6 | null | 1427752234 | 2 | t5_2fwo | null | null | null |
True | aaronla | null | My only complaint is that so little of C# is covered. This is a great start. | null | 0 | 1319011044 | False | 0 | c2soacf | t3_lg1xx | null | t1_c2soacf | t3_lg1xx | null | 1427752238 | 1 | t5_2fwo | null | null | null |
True | Koreija | null | 2002 - that's ancient in internet years. | null | 0 | 1319011168 | False | 0 | c2soan6 | t3_lgmfx | null | t1_c2soan6 | t3_lgmfx | null | 1427752245 | 2 | t5_2fwo | null | null | null |
True | aaronla | null | I'm glad you enjoy C#, but you should be aware that your slights to C++ may come across to many as arrogant/ignorant.
On that note, I find myself constantly asking "Why doesn't C# do it that way?", so I can understand where you're coming from, albeit on the other side of the mirror :) | null | 0 | 1319011186 | False | 0 | c2soaoo | t3_lg1xx | null | t1_c2soaoo | t1_c2sh7ij | null | 1427752239 | 3 | t5_2fwo | null | null | null |
True | aaronla | null | That, and C#'s syntax was designed for this purpose as well. It's a lot harder to wedge a C# parser than a C++ one (for instance, C#'s parser doesn't get wedged by inaccurate type information, a la [the most vexing parse](http://en.wikipedia.org/wiki/Most_vexing_parse), but there are other subtler issues as well). | null | 0 | 1319011526 | False | 0 | c2sobgx | t3_lg1xx | null | t1_c2sobgx | t1_c2sfnvi | null | 1427752262 | 2 | t5_2fwo | null | null | null |
True | grayvedigga | null | omg arc! | null | 0 | 1319011549 | False | 0 | c2sobik | t3_lgn04 | null | t1_c2sobik | t1_c2smm6h | null | 1427752262 | 2 | t5_2fwo | null | null | null |
True | PetalJiggy | null | bash, just for fun (no language flame wars):
for f in "" intr pt1 pt2 aftr indx $( gseq 0 70 ) ; do
wget http://twimgs.com/ddj/abrashblackbook/gpbb$f.pdf
done
:)
| null | 0 | 1319011567 | False | 0 | c2sobk2 | t3_lgwpf | null | t1_c2sobk2 | t1_c2snzw6 | null | 1427752253 | 14 | t5_2fwo | null | null | null |
True | killerstorm | null | I want a programming language with automatic, implicit parallelisation and concurrency. And with what I would call prioritizable execution.
Here's a motivational example: launch a big enough application, say, Adobe Photoshop. You'll see a usable GUI only after it loads all its modules, parses all configuration, etc. T... | null | 0 | 1319011581 | False | 0 | c2sobl0 | t3_lh1ly | null | t1_c2sobl0 | t3_lh1ly | null | 1427752253 | 1 | t5_2fwo | null | null | null |
True | aaronla | null | C# does have a greatly simplified grammar compared to C++. I'm not sure if it's LL(k), but it's certainly not the context sensitive LALR beast that C++ has grown up to be.
I really enjoy C++, but certainly not for its grammar. | null | 0 | 1319011646 | False | 0 | c2sobqb | t3_lg1xx | null | t1_c2sobqb | t1_c2sfz7n | null | 1427752255 | 3 | t5_2fwo | null | null | null |
True | aaronla | null | > I remember reading an article that pointed out that value types can, in certain situations, actually reside on the heap
In case a reader is wondering, one such case is:
struct S { }
class C {
public S s; // <-- this 's' is always on the heap
} | null | 0 | 1319011915 | False | 0 | c2socbg | t3_lg1xx | null | t1_c2socbg | t1_c2sgbj2 | null | 1427752265 | 1 | t5_2fwo | null | null | null |
True | Gotebe | null | >You are right about flushing streams, thought closing streams without flushing them seems to be worse
Yes. "Flush" is a throwing operation, and it has to be dealt with explicitly. Luckily, there's no difference between handling that and a write just before it, so normally all is already in place. | null | 0 | 1319012195 | False | 0 | c2socz3 | t3_lg1xx | null | t1_c2socz3 | t1_c2sh3sd | null | 1427752275 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1319012224 | False | 0 | c2sod1d | t3_lgn04 | null | t1_c2sod1d | t1_c2sm1h3 | null | 1427752276 | 3 | t5_2fwo | null | null | null |
True | glguy | null | The Agda example code of "even" and "odd" actually does not define a new type, but produces a standard boolean function. This is code you might write in Haskell with some minor syntactic differences.
I have an example of some Agda which does define a new type for even and odd predicates as well as some properties rega... | null | 0 | 1319012690 | False | 0 | c2soe3a | t3_lh1ly | null | t1_c2soe3a | t3_lh1ly | null | 1427752287 | 2 | t5_2fwo | null | null | null |
True | flukus | null | I'm working on an application like this at the moment, nearly every class is tightly bound to to DI container. I would say it's worse than not using DI at all because coupling is just as tight as before, dependencies are just as hard to find as before but know there's a container in the way as well.
To make matters wo... | null | 0 | 1319012699 | False | 0 | c2soe3x | t3_lf1px | null | t1_c2soe3x | t1_c2s7r7l | null | 1427752287 | 2 | t5_2fwo | null | null | null |
True | xcbsmith | null | The truth is though that as far as the type system is concerned, they are very different things. I recall the havoc when argv was changed from char\*\* to char\*[].
EDIT: Used to say "const char\*\* to const char\*[]", but that was putting a const where it didn't belong. | null | 0 | 1319012703 | True | 0 | c2soe49 | t3_lgfp0 | null | t1_c2soe49 | t1_c2snmfw | null | 1427752287 | 1 | t5_2fwo | null | null | null |
True | ivosaurus | null | I like :sh, followed by <c-c> (or is it d? one of the two). That's on command line vim. | null | 0 | 1319012776 | False | 0 | c2soeah | t3_lfblq | null | t1_c2soeah | t1_c2se1nr | null | 1427752290 | 1 | t5_2fwo | null | null | null |
True | ivosaurus | null | git != github.
*Bitbucket does now allow some private repos, for both Hg and Git.
The point of a DCVS is the D, for distributed: the copy of the source you have on your computer is complete in and of itself. It doesn't need any server to be a CVS. It's just that it happens to be possible to also sync with another ins... | null | 0 | 1319012929 | True | 0 | c2soell | t3_lfblq | null | t1_c2soell | t1_c2sjb4z | null | 1427752292 | 2 | t5_2fwo | null | null | null |
True | ivosaurus | null | how come polycant's command to go to the mark was ' then? | null | 0 | 1319013051 | False | 0 | c2soeuh | t3_lfblq | null | t1_c2soeuh | t1_c2sju3k | null | 1427752294 | 1 | t5_2fwo | null | null | null |
True | aaronla | null | Yes, but two _very_ different meanings of reference in that sentence:
pass a reference by reference
----#1----- -----#2-----
#1: a value, in this case a C# value where, the static type used to manipulate that value is not a subtype of 'ValueType'
#2: an [argument evaluation strategy](htt... | null | 0 | 1319013067 | False | 0 | c2soevk | t3_lg1xx | null | t1_c2soevk | t1_c2sgx3a | null | 1427752295 | 1 | t5_2fwo | null | null | null |
True | elperroborrachotoo | null | If you discuss the finer details of the language definition, you can't at the same time gloss over an aspect that is "often the same", but per language definition can be almost anything; especially if that aspect is relevant for the correct answer.
| null | 0 | 1319013075 | False | 0 | c2soew3 | t3_lgfp0 | null | t1_c2soew3 | t1_c2sjn8w | null | 1427752295 | 0 | t5_2fwo | null | null | null |
True | elperroborrachotoo | null | http://www.reddit.com/r/programming/comments/lgfp0/so_you_think_you_know_c_the_ksplice_pointer/c2soew3 | null | 0 | 1319013097 | False | 0 | c2soey1 | t3_lgfp0 | null | t1_c2soey1 | t1_c2smoxu | null | 1427752296 | 1 | t5_2fwo | null | null | null |
True | ivosaurus | null | Vim is it's own TIL in one program! Try % on brackets and things, as well. | null | 0 | 1319013101 | False | 0 | c2soeyi | t3_lfblq | null | t1_c2soeyi | t1_c2scssk | null | 1427752296 | 1 | t5_2fwo | null | null | null |
True | elperroborrachotoo | null | TIL! | null | 0 | 1319013109 | False | 0 | c2soez7 | t3_ld22x | null | t1_c2soez7 | t1_c2slztt | null | 1427752296 | 1 | t5_2fwo | null | null | null |
True | frutiger | null | Destructors are your friends. | null | 0 | 1319013162 | False | 0 | c2sof32 | t3_lg1xx | null | t1_c2sof32 | t1_c2siscd | null | 1427752298 | 2 | t5_2fwo | null | null | null |
True | aaronla | null | Ditto. What would it mean to be doubly by reference? Would every write to the argument by the callee modify the caller's variable twice?
void f(ref ref int x) {
x += 1; // gets applied twice?
}
void g() {
int y = 0;
f(ref ref y);
Console.WriteLine(y); // prints '2'?
}
... | null | 0 | 1319013187 | False | 0 | c2sof4z | t3_lg1xx | null | t1_c2sof4z | t1_c2shy21 | null | 1427752298 | 1 | t5_2fwo | null | null | null |
True | ivosaurus | null | You can always select what you want to paste over.
v for character selecting, V for line selecting, ctl+v for block selecting [I think]. Just [v/V/<c-v>] and then move around to make the selection, then p over it. | null | 0 | 1319013195 | False | 0 | c2sof5p | t3_lfblq | null | t1_c2sof5p | t1_c2skgt4 | null | 1427752298 | 2 | t5_2fwo | null | null | null |
True | Peaker | null | You missed my point. My point means that volatile access affects even programs without threads or any mmap'd IO, let alone threaded code. As for threaded code, here's an excerpt from a very nice blog about it:
From http://blog.regehr.org/archives/161
> > The relevant part of the C standard (I’m using N1124) is... | null | 0 | 1319013213 | False | 0 | c2sof7m | t3_lgjhl | null | t1_c2sof7m | t1_c2snv0w | null | 1427752307 | 2 | t5_2fwo | null | null | null |
True | CoolGuySteve | null | OS X has curl instead of wget:
for f in "" intr pt1 pt2 aftr indx $( gseq 0 70 ) ; do
curl http://twimgs.com/ddj/abrashblackbook/gpbb$f.pdf > gpbb$f.pdf
done
| null | 0 | 1319013293 | False | 0 | c2sofdf | t3_lgwpf | null | t1_c2sofdf | t1_c2sobk2 | null | 1427752300 | 3 | t5_2fwo | null | null | null |
True | badsectoracula | null | Thanks, i don't have perl here (windows machine, i have mingw+msys, so i had bash and wget although i changed gseq with seq) :-) | null | 0 | 1319013334 | False | 0 | c2sofgu | t3_lgwpf | null | t1_c2sofgu | t1_c2sobk2 | null | 1427752301 | 1 | t5_2fwo | null | null | null |
True | sztomi | null | Sorry, I was talking about pointers. | null | 0 | 1319013430 | False | 0 | c2sofni | t3_lgfp0 | null | t1_c2sofni | t1_c2slmsw | null | 1427752304 | 1 | t5_2fwo | null | null | null |
True | sime | null | umm... the list is about interesting languages, not whether they get traction.
| null | 0 | 1319013445 | False | 0 | c2sofon | t3_lh1ly | null | t1_c2sofon | t1_c2smvri | null | 1427752304 | 4 | t5_2fwo | null | null | null |
True | aaronla | null | Thank you!
However, in case it might help, I've tried this in in the past on a couple occasions, and it seemed to only more greatly confuse the person asking, so I've given up.
The most common confusion I've observed is a person equating "reference^1" and "reference^1" to be the same thing in "pass a reference^1 by r... | null | 0 | 1319013447 | False | 0 | c2sofos | t3_lg1xx | null | t1_c2sofos | t1_c2sinty | null | 1427752304 | 1 | t5_2fwo | null | null | null |
True | anacrolix | null | (y) | null | 0 | 1319013450 | False | 0 | c2sofp4 | t3_joy9z | null | t1_c2sofp4 | t1_c2dz0o2 | null | 1427752304 | 1 | t5_2fwo | null | null | null |
True | ctz99 | null | The test was on C knowledge. 64-bit ints are allowed by C, so the whole quiz is insufficiently specified to have correct answers. Also, the use of printf is undefined behaviour.
If ksplice want to be language lawyers, they should at least do it right :) | null | 0 | 1319013470 | False | 0 | c2sofqg | t3_lgfp0 | null | t1_c2sofqg | t1_c2shxqd | null | 1428192004 | 1 | t5_2fwo | null | null | null |
True | how_gauche | null | I don't know why you're bringing Prolog into this, but I'll bite.
Prolog is very nice for doing what it was designed to do, i.e. specify and optimize rule-based systems. We actually do use it at work: someone wrote a prolog program to optimize oncall schedules/pager rotations. Engineers mark in their shared calendar w... | null | 0 | 1319013497 | False | 0 | c2sofsm | t3_lfm1k | null | t1_c2sofsm | t1_c2so06s | null | 1427752306 | 1 | t5_2fwo | null | null | null |
True | killerstorm | null | I thought about implementing one myself, he's how:
Execution model can be described in term of implicit [futures](http://en.wikipedia.org/wiki/Future_(programming\)) -- when function is called instead of computing value it returns a future object which references other future parameter values result depends on and a c... | null | 0 | 1319013503 | False | 0 | c2sofsv | t3_lh1ly | null | t1_c2sofsv | t1_c2sobl0 | null | 1427752306 | 1 | t5_2fwo | null | null | null |
True | sime | null | Are you implying that there are a bunch of non-functional languages which should be on the list? If so, name some of them?
| null | 0 | 1319013537 | False | 0 | c2sofvr | t3_lh1ly | null | t1_c2sofvr | t1_c2smyp3 | null | 1427752307 | 9 | t5_2fwo | null | null | null |
True | Poddster | null | What is an 'array'? A Block of memory with a known start point and a regular structure. What two things do you need to describe an array? An element count, size of element and a pointer to the start.
So what would you say the "value" of the array is, given that the compiler and programmer must known the other two, whi... | null | 0 | 1319013584 | False | 0 | c2sofz8 | t3_lgfp0 | null | t1_c2sofz8 | t1_c2so5wz | null | 1427752309 | 4 | t5_2fwo | null | null | null |
True | aaronla | null | Pardon, but I honestly can't tell if you're serious. | null | 0 | 1319013610 | False | 0 | c2sog1o | t3_lg1xx | null | t1_c2sog1o | t1_c2sg0av | null | 1427752309 | 1 | t5_2fwo | null | null | null |
True | Poddster | null | When was it changed? | null | 0 | 1319013658 | False | 0 | c2sog4y | t3_lgfp0 | null | t1_c2sog4y | t1_c2soe49 | null | 1427752310 | 3 | t5_2fwo | null | null | null |
True | aaronla | null | Objects which are frequently thought of as values. Same goes for `Integer`
Integer a = new Integer(1),
b = new Integer(1);
System.out.println(a == b); // false | null | 0 | 1319013845 | False | 0 | c2sogiu | t3_lg1xx | null | t1_c2sogiu | t1_c2sfo3q | null | 1427752314 | 1 | t5_2fwo | null | null | null |
True | aaronla | null | > == is comparing references on objects everyone knows that
This reminds me of the OP, answers for C++ programmers. In C++, operator== _never_ does 'reference comparison'. On two pointers, p==q compares the value of each pointer. You can dereference a pointer value to yield another value.
Perhaps everyone _should_... | null | 0 | 1319013978 | False | 0 | c2sogsr | t3_lg1xx | null | t1_c2sogsr | t1_c2sg0yq | null | 1427752317 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1319013985 | False | 0 | c2sogta | t3_lgfp0 | null | t1_c2sogta | t1_c2skhnz | null | 1427752317 | 0 | t5_2fwo | null | null | null |
True | aaronla | null | > when reflecting on static fields and such, string values are treated like they're value types unless they're explicitly boxed up
I don't follow at all. What do you mean by "treated like"? In what way are they different from other reference types? | null | 0 | 1319014075 | False | 0 | c2soh0d | t3_lg1xx | null | t1_c2soh0d | t1_c2sfmqp | null | 1427752318 | 1 | t5_2fwo | null | null | null |
True | PetalJiggy | null | i always wondered why osx doesn't ship with wget.
btw, you can avoid the redirect by passing -O to curl.
cheers! | null | 0 | 1319014099 | False | 0 | c2soh22 | t3_lgwpf | null | t1_c2soh22 | t1_c2sofdf | null | 1427752320 | 2 | t5_2fwo | null | null | null |
True | wolf550e | null | Of course gcc has to comply with the windows ABI when you're compiling for that platform. I said the fact that the windows platform ABI is different from the one used on UNIX on the same hardware is silly, and the people who made it that way are the compiler people at microsoft.
**EDIT**: If I am wrong to blame the co... | null | 0 | 1319014230 | True | 0 | c2sohbj | t3_lgjhl | null | t1_c2sohbj | t1_c2skjvf | null | 1427752332 | 1 | t5_2fwo | null | null | null |
True | aaronla | null | Delegates are like C++ functors, with added syntactic sugar (though C++11 added yummy sugar too), and the usual caveats about the differences between C# and C++ classes.
I'm sure you know that, but perhaps other readers might benefit. | null | 0 | 1319014252 | False | 0 | c2sohco | t3_lg1xx | null | t1_c2sohco | t1_c2seskc | null | 1427752332 | 1 | t5_2fwo | null | null | null |
True | repsilat | null | For those of you that don't have `gseq`, try `seq` instead. (I guess one might be an alias of the other on some systems?) | null | 0 | 1319014313 | False | 0 | c2sohgy | t3_lgwpf | null | t1_c2sohgy | t1_c2sofdf | null | 1427752334 | 2 | t5_2fwo | null | null | null |
True | kyz | null | Wikipedia also has a good overview:
http://en.wikipedia.org/wiki/64-bit#64-bit_data_models
| null | 0 | 1319014375 | False | 0 | c2sohm1 | t3_lgfp0 | null | t1_c2sohm1 | t1_c2sl206 | null | 1427752333 | 3 | t5_2fwo | null | null | null |
True | eric_t | null | Thanks for the changes, I implemented most of them (the repo is updated, need to update the wiki as well).
* Not sure if I agree about the transposing, it makes more sense to say p[x][y] than
p[y][x]. The only place where this matters is when writing out images by hand in the unittests, normally the pictures would com... | null | 0 | 1319014407 | False | 0 | c2sohoi | t3_lew0f | null | t1_c2sohoi | t1_c2skruz | null | 1427752333 | 1 | t5_2fwo | null | null | null |
True | wolf550e | null | What is valid according to what spec? The C spec only says "sizeof(short) <= sizeof(int) <= sizeof(long)".
The hardware spec allows you to pass arguments to functions in any registers and/or memory locations.
Of course it's "valid".
I never said anything about "invalid". Just "silly" to use two different ABI f... | null | 0 | 1319014421 | False | 0 | c2sohpo | t3_lgjhl | null | t1_c2sohpo | t1_c2sm2uo | null | 1427752335 | 0 | t5_2fwo | null | null | null |
True | repsilat | null | I think it would be a completely different book, but it might still be an interesting one. A few years ago that probably wouldn't have been the case - fancy shader programming has made a lot of clever graphics programming wizardry relevant again (from what I hear - I'm not a graphics programmer). | null | 0 | 1319014536 | False | 0 | c2sohxz | t3_lgwpf | null | t1_c2sohxz | t1_c2snwti | null | 1427752336 | 3 | t5_2fwo | null | null | null |
True | dafragsta | null | FYI, Michael Abrash was also one of the original developers who worked on the original Quake engine, and now works for Valve. | null | 0 | 1319014539 | False | 0 | c2sohy9 | t3_lgwpf | null | t1_c2sohy9 | t3_lgwpf | null | 1427752336 | 7 | t5_2fwo | null | null | null |
True | [deleted] | null | > video_buffer =(unsigned char far *)0xA00000000L;
FFS. It's even more outdated than outdated OpenGL documentation.
| null | 0 | 1319014871 | False | 0 | c2soiln | t3_lh7x0 | null | t1_c2soiln | t3_lh7x0 | null | 1427752342 | 19 | t5_2fwo | null | null | null |
True | kyz | null | LP64 and LLP64 are an extension of [calling conventions](http://en.wikipedia.org/wiki/Calling_convention): it's not that it couldn't be otherwise, but it's incredibly useful that all code in one environment follows a standard so it can interoperate.
So... why not make it a convention that we ban short/int/long from th... | null | 0 | 1319015000 | False | 0 | c2soiuv | t3_lgfp0 | null | t1_c2soiuv | t1_c2so07q | null | 1427752345 | 1 | t5_2fwo | null | null | null |
True | Poddster | null | I thought this was a joke at first, then realised the book is from the 90s. | null | 0 | 1319015025 | False | 0 | c2soiwl | t3_lh7x0 | null | t1_c2soiwl | t3_lh7x0 | null | 1427752347 | 2 | t5_2fwo | null | null | null |
True | aaronla | null | ... and the C++ developer finds this all very surprising, because destruction is dirt-simple in C++ (tricky perhaps, but simple). It's good to call this out!
Good C++ destructor:
~MyClass() { myFoobar.Close(); }
Good C# finalizer:
bool hasDisposedYet = false;
void Dispose(bool disposing) {
// fin... | null | 0 | 1319015191 | False | 0 | c2soj7l | t3_lg1xx | null | t1_c2soj7l | t1_c2sgkgd | null | 1427752347 | 1 | t5_2fwo | null | null | null |
True | mulander | null | > Cave Dog is notable for using a flavor of Scheme in their Jak and Daxter games.
Their name is Naughty Dog not Cave Dog. | null | 0 | 1319015729 | False | 0 | c2sok99 | t3_lgn04 | null | t1_c2sok99 | t1_c2smzsd | null | 1427752361 | 3 | t5_2fwo | null | null | null |
True | last_useful_man | null | I confess I didn't read through your personality-type stuff, but your post reminded me that in Jungian thought, unexpressed, nascent creativity can cause bad moods and depression, even. | null | 0 | 1319015821 | False | 0 | c2sokfg | t3_lh3av | null | t1_c2sokfg | t3_lh3av | null | 1427752364 | 7 | t5_2fwo | null | null | null |
True | TrivialSolutions | null | I'm author of LoseThos -- operating system with graphics library I made-up off the top of my head. This book... can I put all the routines in my OS? Doesn't seem likely. What good is this book, then?
| null | 0 | 1319015939 | False | 0 | c2sokmy | t3_lgwpf | null | t1_c2sokmy | t3_lgwpf | null | 1427752373 | -15 | t5_2fwo | null | null | null |
True | keithb | null | >The main benefit of reasoning in FP is that reasoning is local
But the behaviours we often need to reason about are not local. Has anyone shown that _whole system_ behaviour is easier to reason about when that system is built out of referentially transparent functions than when there is shared mutable state? | null | 0 | 1319015943 | False | 0 | c2sokn9 | t3_lfm1k | null | t1_c2sokn9 | t1_c2sjcqq | null | 1427752371 | 2 | t5_2fwo | null | null | null |
True | optomas | null | >git != github.|
Thank you. I was under the impression that private trees cost money for github. I shall look into git, as you suggested. | null | 0 | 1319016325 | False | 0 | c2solcf | t3_lfblq | null | t1_c2solcf | t1_c2soell | null | 1427752381 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | Hum. I would more say that functional are highly underrated by non-language nerds. | null | 0 | 1319016334 | False | 0 | c2solcy | t3_lh1ly | null | t1_c2solcy | t1_c2smyp3 | null | 1427752381 | 4 | t5_2fwo | null | null | null |
True | AxiomShell | null | Enjoy: http://www.cdecl.org/ | null | 0 | 1319016421 | False | 0 | c2solir | t3_lh8ss | null | t1_c2solir | t3_lh8ss | null | 1427752383 | 4 | t5_2fwo | null | null | null |
True | skew | null | You could go another way and use Data.Bool.T to re-use those predicates. | null | 0 | 1319016441 | False | 0 | c2soljw | t3_lh1ly | null | t1_c2soljw | t1_c2soe3a | null | 1427752384 | 2 | t5_2fwo | null | null | null |
True | kaaskop42 | null | Good question! Why isn't all of Reddit relevant to _you_, the OS author? | null | 0 | 1319016482 | False | 0 | c2solmq | t3_lgwpf | null | t1_c2solmq | t1_c2sokmy | null | 1427752394 | 9 | t5_2fwo | null | null | null |
True | keithb | null | Re: Certified Programming With Dependent Types. The page says
>Due in no small part to some bold but unfulfilled promises in the history of computer science, today most people who write software, practitioners and academics alike, assume that the costs of formal program verification outweigh the benefits.
As a pra... | null | 0 | 1319016844 | False | 0 | c2som9t | t3_lfm1k | null | t1_c2som9t | t1_c2sg8dn | null | 1427752394 | 0 | t5_2fwo | null | null | null |
True | chonglibloodsport | null | Depends on the image format (bit depth, number of channels, palettes, etc). Typically you want to use a regular array of unboxed values.
The problem with the above example is that it involves so many memory dereference operations (slow). On top of that, you're storing far more useless data (memory addresses) than usef... | null | 0 | 1319016933 | True | 0 | c2somfi | t3_lew0f | null | t1_c2somfi | t1_c2scmf7 | null | 1427752396 | 1 | t5_2fwo | null | null | null |
True | Timmmmbob | null | Sounds like it's just wrong, like "could care less"... I mean I can't even work out a plausible way in which it makes sense, given that "I don't use it any more" means .. well... "I don't use it even a little bit (any) again (more)". | null | 0 | 1319017038 | False | 0 | c2somm5 | t3_lgfp0 | null | t1_c2somm5 | t1_c2so6p6 | null | 1427752399 | 1 | t5_2fwo | null | null | null |
True | ivosaurus | null | Actually I think I was wrong. BitBucket allows you to have free private repos, and now supports Git as well as Hg. Gets confusing which is what doing which :) | null | 0 | 1319017184 | False | 0 | c2somve | t3_lfblq | null | t1_c2somve | t1_c2solcf | null | 1427752401 | 2 | t5_2fwo | null | null | null |
True | Software_Engineer | null |
public boolean returnTrue(){
return false;
} | null | 0 | 1319017212 | False | 0 | c2somxd | t3_lg59j | null | t1_c2somxd | t1_c2ski77 | null | 1427752408 | 3 | t5_2fwo | null | null | null |
True | alexs | null | Pretty neat. Kind of jittery and the animations don't generally seem to have anything to do with the music once it goes into coloured mode though. | null | 0 | 1319017405 | False | 0 | c2son9o | t3_lg6zg | null | t1_c2son9o | t3_lg6zg | null | 1428192002 | 1 | t5_2fwo | null | null | null |
True | powerpiglet | null | And probably more commonly, code in signal handlers. | null | 0 | 1319017543 | False | 0 | c2sonik | t3_lgjhl | null | t1_c2sonik | t1_c2snrnr | null | 1427752411 | 3 | t5_2fwo | null | null | null |
True | aaronla | null | >>At sequence points, volatile objects are stable in the sense that previous accesses are complete and subsequent accesses have not yet occurred.
> Do you think this guarantee is completely useless for threaded code?
Yes, because it makes no statement about those accesses which are neither previous nor subse... | null | 0 | 1319017632 | False | 0 | c2sonno | t3_lgjhl | null | t1_c2sonno | t1_c2sof7m | null | 1427752413 | 1 | t5_2fwo | null | null | null |
True | TrivialSolutions | null | What?
People publish stuff to get you so you can't use it, near as I can tell. Publishing stuff is evil unless it's public domain. LoseThos is public domain. http://www.losethos.com
| null | 0 | 1319017920 | False | 0 | c2soo50 | t3_lgwpf | null | t1_c2soo50 | t1_c2solmq | null | 1427752418 | -11 | t5_2fwo | null | null | null |
True | zsakuL | null | I don't know of such languages off the top of my head, if I did I would too create a blog entry such as that.
> I have gone back and forth on including Go into the mix because I have had a strong negative reaction against it so far. However, people seem to be excited about the possibilities of a new systems-level p... | null | 0 | 1319018111 | False | 0 | c2sooh1 | t3_lh1ly | null | t1_c2sooh1 | t1_c2sofvr | null | 1428192001 | 1 | t5_2fwo | null | null | null |
True | keithb | null | > Prolog [...] seems like it was written by a bunch of people who [...] didn't think about using it to make actual applications or interact with anything else on your computer.
They absolutely thought about using it to make actual applications: expert systems for medical, industrial and other domains. But they did ... | null | 0 | 1319018176 | False | 0 | c2sool1 | t3_lfm1k | null | t1_c2sool1 | t1_c2so06s | null | 1427752422 | 1 | t5_2fwo | null | null | null |
True | d_r_benway | null | It mentioned Windows - I lost interest | null | 0 | 1319018233 | False | 0 | c2soooo | t3_lh7x0 | null | t1_c2soooo | t3_lh7x0 | null | 1427752431 | -28 | t5_2fwo | null | null | null |
True | __j_random_hacker | null | Your "implicit futures" idea sounds very much like laziness to me. If you take laziness as far as it can go, you wind up with a language like Haskell where every 3-parameter function is actually a 1-parameter function that returns a 1-parameter function that returns a 1-parameter function, meaning function argument ev... | null | 0 | 1319018614 | False | 0 | c2sopbr | t3_lh1ly | null | t1_c2sopbr | t1_c2sofsv | null | 1427752433 | 7 | t5_2fwo | null | null | null |
True | jib | null | It would be an equally scary thought if they refused to use C because of safety. Safety-critical embedded systems are an area in which the programmers (and code reviewers and testers) should understand exactly what they're doing, not rely on their programming language to protect them.
Also, a car doesn't really have a... | null | 0 | 1319018616 | False | 0 | c2sopbu | t3_lgmfx | null | t1_c2sopbu | t1_c2smdiw | null | 1427752433 | 5 | t5_2fwo | null | null | null |
True | jmtd | null | Why avoid the redirection? It's fewer characters than -O… | null | 0 | 1319018698 | False | 0 | c2sopgp | t3_lgwpf | null | t1_c2sopgp | t1_c2soh22 | null | 1427752435 | 2 | t5_2fwo | null | null | null |
True | leonardo_m | null | Changes: probably even better than my solution is to split the large unittest{} near the end into several smaller separated unittest{}. This is good because the errors you will receive are more focused and there is less risk to use the wrong variable by mistake because the variables scope is smaller.
Transposing: It h... | null | 0 | 1319018825 | False | 0 | c2sopo7 | t3_lew0f | null | t1_c2sopo7 | t1_c2sohoi | null | 1427752437 | 1 | t5_2fwo | null | null | null |
True | julesjacobs | null | With DI I agree. It is basically "pass an object to another object" which is hardly something anybody can object to. What I object to is two things:
1. Injecting a module B into a module A, even though A can currently only uses one module B. YAGNI.
2. Using a framework for something as trivial as passing objects to ot... | null | 0 | 1319019274 | True | 0 | c2soqe7 | t3_lf1px | null | t1_c2soqe7 | t1_c2sl316 | null | 1427752444 | 1 | t5_2fwo | null | null | null |
True | PetalJiggy | null | it's not.
curl -O http://twimgs.com/ddj/abrashblackbook/gpbb$f.pdf
| null | 0 | 1319019357 | False | 0 | c2soqji | t3_lgwpf | null | t1_c2soqji | t1_c2sopgp | null | 1427752446 | 6 | t5_2fwo | null | null | null |
True | Pepparkakan | null | Interesting article, still... fuck Oracle. | null | 0 | 1319019468 | False | 0 | c2soqqm | t3_lgfp0 | null | t1_c2soqqm | t3_lgfp0 | null | 1428191999 | 0 | t5_2fwo | null | null | null |
True | [deleted] | null | >It must be in that list, and for the author to so haphazardly include it and remove it from the list, where all other languages in the list are functional, shows a clear bias of the author.
He didn't do that, did he? I understood that clause so that he was thinking about it a lot while writing the article.
I thin... | null | 0 | 1319019540 | True | 0 | c2soquv | t3_lh1ly | null | t1_c2soquv | t1_c2sooh1 | null | 1427752455 | 3 | t5_2fwo | null | null | null |
Subsets and Splits
Filtered Reddit Uplifting News
The query retrieves specific news articles by their link IDs, providing a basic overview of those particular entries without deeper analysis or insights.
Recent Programming Comments
Returns a limited set of programming records from 2020 to 2023, providing basic filtering with minimal analytical value.