« first day (2180 days earlier)      last day (2679 days later) » 

8:00 PM
@wizzwizz4 right, but using a dollar sign makes it more explicit
 
@Mego Before nullptr there was &NULL.
 
Anonymous
NULL is 0. nullptr is an object of type nullptr_t that acts like NULL, but can't be converted to an integer.
 
Stars
 
Yeah but NULL is of type char *.
 
Anonymous
@wizzwizz4 Address-of 0 is not going to work
 
8:01 PM
Which means it would cause exactly the same problem.
 
@quartata (void*)NULL; No it isn't!
 
(Granted, this time with a compiler warning but)
 
Anonymous
@wizzwizz4 I'm beginning to think you don't actually know much about C/C++
 
@Mego ... :-/ You might be right.
 
Anonymous
To the person who insists on starring all of my messages: stars mean "this message is useful/important/interesting", not "I agree"
 
8:02 PM
@El'endiaStarman end the stars pls
 
@Mego don't sell yourself short :p
 
that message wasn't starred: they apparently don't agree
 
Something else I really like about D is Range
 
xaxa
 
Anonymous
8:04 PM
@aditsu :P I mean, if I'm going to get starred for something, I'd much rather it be a really bad pun
 
that would be more like a punishment
3
 
@Pavel What does this mean?
 
X is Cyrilic H, hahaha is laughter.
 
Anonymous
Jan 9 at 20:36, by Mego
It says something about me that one of my most prominent qualities is my affinity for bad jokes. It feels like I'm being punished for that.
 
Anonymous
You got sumo'd on that pun
 
Anonymous
8:06 PM
@quartata That's a strange name for an iterable
 
Commonly encountered in dota
 
@Mego I was just about to say that.
 
What is happening with the stars here
 
@Mego It's not just an iterable
 
then what's the difference?
 
8:07 PM
@TuxCopter Somebody set us up the bomb, and it broke the starboard.
 
They can have defined lengths for one
 
Anonymous
An iterable just means "something that can be iterated over"
 
is that another interface on top of Range, or how is that defined?
 
@Pavel The stars here seem reasonable. ¯\_(ツ)_/¯
 
Anonymous
A list is an iterable. A tuple is an iterable. A generator provides an iterable.
 
8:10 PM
Oh, there's more stars than I initially saw.
 
Anonymous
@DigitalTrauma When did you start dressing up like Elendia?
 
There's also some other traits: dlang.org/phobos/std_range_primitives.html
 
@El'endiaStarman Thanks for that.
 
@Mego I mean yes at it's core all ranges are iterable but there's a lot of other properties that they can have
 
Anonymous
 
8:12 PM
Yay! Evil stars are gone now.
 
OK that is familiar
 
@quartata if I have a function, could I require that you pass me a forward range without calling isForwardRange()?
 
@Pavel ... Evil... stars?
That concept is confusing.
 
Anonymous
An iterable is something that supports iterators iterating over it. "Range" isn't a good name for it, because it's easily confused with the mathematical concept of a range (which is a specific type of iterable).
 
Mario Party 9
There are black 'ztars' that cause you to lose points
 
Anonymous
8:14 PM
Or with the range construct in many languages (that is basically the same as std.range.iota in D or std::iota in C++)
 
Anonymous
Wait I was doing something before all of this Discussion...
 
Yeah but TNB is more important
 
Please no let's not have programming language name puns again.
 
I harDly think that a letter counts as a pun
 
I can' think of any good ones.
 
8:17 PM
...at least make them good.
 
The only one I can remember is "Why do programmers wear glasses? So they can C#"
 
Anonymous
Actually, there are no good programming language name puns, so let's seriously not go down this road.
 
Maybe we can save a few pages of transcript with a simple link
2
 
@NathanMerrill Yes, you can use templates or one of these wrapper interfaces: dlang.org/phobos/std_range_interfaces.html
 
@trichoplax Does that link contain Mego's pun? No? Than it is woefully insufficient.
 
8:20 PM
@trichoplax Ah, so many classics.
 
@Pavel Did Mego really make a language called woefully? I'm out of touch
 
No, that was Destructible Watermelon iirc
BUT STILL
 
Anonymous
Unoriginal copycats :P
 
To be fair, the only part even slightly related to Actually/Seriously is the name.
 
Anonymous
I mean I made it pretty clear that I claimed all adverbs for use as programming language names :P
 
8:23 PM
Seriously???
 
Evidently
 
Laughably.
 
Anonymous
@trichoplax Ooh, that's a good one. I'll have to remember that one.
 
Remember?? Don't you have a list of all English adverbs...?
I assumed that was what you were working through ;)
 
can we just appreciate for a second how consistent english is in the fact that 99% of all adverbs end in ly?
like, where did that come from?
 
8:25 PM
Now I'm curious about the 1%
 
here,everywhere ,somewhere,in,inside,out,outside,early,now, there ,rather ,almost , so ,also ,very ,never,often, seldom
 
Anonymous
@NathanMerrill "fast" is an adjective - "quickly" would be an adverb
 
fast? Fast is an adjective, the adverb is quickly
 
I'm not convinced those are all adverbs...
 
Ninja'd
 
8:26 PM
oh, yeah
not sure what I was thinking
I had a good verb, but I can't think of it now
 
I think fast is used more often than quickly, even if incorrect.
 
actually, maybe it is?
 
@trichoplax They are. Try putting them into the model "I [adverb] ran" or "I ran [adverb]", if either work it's an adverb.
 
I ran fast
 
Anonymous
@NathanMerrill You're right. It follows that rule often.
 
8:28 PM
@NathanMerrill Yeah but that's wrong.
 
Anonymous
@Pavel Exactly
 
@Pavel Those sentences work for all adverbs, but not every word that fits is an adverb - it only works one way
 
> early
 
ooh, like "John"
 
Wat
 
8:28 PM
"I ran, John"
 
I ran python
 
Good point.
 
An adverb describes how the verb was performed
 
0
Q: Code Challenge Help

Jessica Rivas - GarayIn this assignment you will draw a student schedule by using a while loop. You will ask the user for their first and last names, and then a list of their classes and room numbers. The loop should stop when they enter STOP for their next class. Print the schedule in the same format as the exampl...

 
The reason other words fit into the pattern is just that English is very flexible
 
8:29 PM
@NewMainPosts Judging by the title, VTC?
 
0
A: Sandbox for Proposed Challenges

Hristiyan DodovPascal's Pyramid I searched for a similar challenge. I found only this, which only mentions it. Goal So the task is to print the first 25 or more rows of Pascal's pyramid. Scoring Shortest program wins.

 
Anonymous
@Pavel It already got closed
 
Ok, by the time I sent that message there was only one close vote on it.
 
there should be a separate close reason "go do your own homework"
 
I don't mind homework as long as there's an objective winning criterion
 
8:34 PM
@Pavel All adverbs fit at least *both*
 
No..?
 
the objective criterion could be "first correct answer in this language, using these coding conventions"
 
Wait, coding conventions?
 
Coding conventions have no place on this site
 
@BusinessCat Not true.
 
8:38 PM
@Pavel so that they can submit it to the teacher as is, without getting in trouble
 
> In this assignment you will...
 
we totally have coding conventions. I see ones like "Don't use the letter 'A' " all the time
9
 
If the conventions are clear and correctly worded, you can abuse them without the OP editing.
 
It's the least effort to hide an HW question I have seen
 
@TuxCopter Do you think this is OK:?
In future, please put challenge ideas in the sandbox. Note that we're not having a go at you just because we think it's homework; if you fix the problems outlined in the off-topic reasons it'll probably be reopened. — wizzwizz4 4 mins ago
 
8:40 PM
What is OK?
 
My CS teacher is of the philosophy "If it works, it gets an A"
 
@wizzwizz4 At least 3 separate close reasons were given, so fixing just one won't be enough. Also the sandbox isn't the best place if they actually want SO
 
@Pavel That's pretty bad if he's not enforcing indenting, commenting, etc
 
She'll get pissed if you do those wrong, but you'll still get your grade.
 
one teacher saw a program I wrote in high school, he said he would fail me because I put multiple instructions on the same line (with semicolons), kinda filling a big rectangular block of code
 
8:41 PM
@Pavel I hope there's a time constraint specified or that's going to take a long time to test...
 
(I happen to really like my CS teacher, so I try to make my homework readable)
 
(he wasn't my teacher, I didn't have CS classes in high school)
 
Besides, it's not like anyone submits PPCG submissions.
 
@trichoplax Do I still get an A at the end of the universe?
 
You'll be fine - it's the poor teacher I'm worried about :P
 
8:44 PM
@NathanMerrill If there's still anyone to give you one.
Ninja'd.
 
Like I said, she'll get really angry if your code is unreadable, and will make you wish you put a little more effort into it, but you'll still get the grade.
Nobody in the class is so bad as to indent wrong, especially since the IDE does that for you.
 
give her some heavily golfed or obfuscated code - it involves putting a lot of effort into it :)
 
I wouldn't do that, she's an awesome teacher.
 
What about if you handed in a program that could brute force the assignment
 
@BusinessCat Or perhaps a program that used ML to teach itself how to write the assignment in a simple language?
 
8:49 PM
The time requirement is "It's a trivial enough task that it should be over in a second, it's been 30, something's wrong".
It's not intro CS but it's the next level up.
 
@Pavel What about if you print debugging info to stderr?
Something like "I'm working on it, get off my back!"?
 
I don't think anyone has tried that. Can't say.
 
wat
i made a thing check it out
 
Uhh... what is it?
 
wat
That was the wrong thing sorry.
There
 
8:52 PM
You made it?
Woah... Windows 10 Home operating system?
Why would anyone bundle with that?
It's cheaper to buy a computer OS-fr... ah.
 
wat
Yeah I made it.
This is for the general consumer
Also take a look at my actual website inexpensivecomputers.net
That computer isn't on there yet but it will be soon
 
"fast Intel Celeron" are three words I have never expected to see together.
2
 
@wizzwizz4 I don't think that is true. I've tried buying a computer with linux, or no OS, and a windows machine has always proved to be cheaper.
 
wat
I used to have one of those. It's fast enough
 
its a totally different story if you are building a computer though
 
wat
8:55 PM
I played TF2 on its integrated graphics...
 
Wait, the description says Celeron but the specs say Pentium?
 
wat
Got 45 FPS on medium
 
New Windows 10 systems aren't required to have Secure Boot disableable.
 
wat
Specs are wrong, let me fix them
 
It's basically OS DRM, stopping you using open stuff.
 
8:56 PM
You can kill Secure Boot
 
It does mean that you don't get bootable-USB viruses as easily though.
@Pavel How?
 
I don't remember, but I had to so I could dual-boot Ubuntu.
 
@wat minor nitpick about your website: is that a stock image of a guy in a server room, or something that actually has to do with your company?
 
wat
Secure boot will be on but BIOS will be completely stock, so it will be controllable and disableable
@PhiNotPi stock image.
 
@wat Yaay!
 
wat
8:57 PM
also it's a supercomputer.
 
clearly
 
> At your request we can ship computers with custom software pre-installed, or none at all.
You are why we can have nice things.
 
wat
Yeah I tried to make it as consumer friendly as possible
Warranty is if a part breaks, it's covered under the part warranty
If it's a user fault then the user is responsible
 
Cool
Wait, how do you prove user fault?
 
wat
If it's a shipping issue, shipping insurance will cover it
@Pavel give me an example of when you would need to prove it
 
9:00 PM
User demands a refund because the hard drive is broken.
 
0
Q: Overflow-Proof Buffer

turbulencetooBackground Programmers these days can't seem to keep their buffers straight! A common source of error is trying to use an array index that is too large for the buffer. Your task is to implement a buffer where large indices are reduced to a size that the buffer can handle. Because I decide exactl...

 
@Pavel If you sold it to one of us and something exploded, it's user fault.
 
wat
@Pavel first of all, if the hard drive worked when I had it, I would investigate with shipping.
If it's clearly user fault (like hammer dents) the user doesn't get anything
 
@wat so you test all the parts before you ship?
 
@wat Also if it is unscrewed?
 
wat
9:02 PM
@NathanMerrill yes
@wizzwizz4 by what?
vibration?
 
@wat Presumably by users.
 
wat
@wizzwizz4 Wouldn't it be user fault then?
 
how intense of a test are we talking about? like, for a bad sector?
 
@wat Yes. I replied to the second message in the block, not the first.
 
A large dent. Could be shipping, could be user hit it with a hammer.
 
wat
9:03 PM
@wizzwizz4 ok, sorry, did not see that.
 
Shipping doesn't really keep track of that, right?
 
@wat Have you sold very many?
 
wat
@Pavel If the hard drive was properly secured, and the case was filled with foam padding, there would be almost zero chance that something like that happened with shipping
@DJMcMayhem a couple
 
Can it come with Linux?
 
wat
There would be basically one of those expanding shipping foam things inside the computer, and printed notes in large red Impact saying "DO NOT POWER ON / READ THIS"
and then instructions to open the case and pull out the foam
@Pavel yeah
The ones I have sold didn't need the foam because they were in a small form factor
 
9:06 PM
Wait, you have to open the case? Isn't your target audience people who don't mess around with the internals?
At all?
 
wat
The case would open with a thumbscrew, the instructions would literally be this:
 
Also, can you really trust the end user to not power it on before reading the warning?
 
wat
1. Turn screw to the left. 2. Pull case side panel off the case. 3. Grab the foam and pull it out. 4. Line up the side panel and push it back in. 5. Turn the screw to the right until it is tight.
Says celeron in seller central
 
wat
9:23 PM
Badly photoshopped(gimped?) example
Sorry for the bad perspective transforms
Hey guys? Check out this cool link I found dk0.us/3
 
@wat this link looks like a virus
just my 2 cents
 
wat
@Poke Why?
It's my URL shortener.
It has my initials in it. Also, my email address is me@dk0.us
 
if i got that url in an email
i'd report it as spam
 
@MartinEnder old q but yes
 
wat
By the way does my email address look spammy?
 
9:32 PM
Because short domains with numerals are really uncommon outside of shady businesses.
 
@wat Booklet is taped over the power button.
 
wat
@wizzwizz4 well, the sign is
Huh.
That was the shortest domain I could get that had my initials in it, mostly for the purpose of having a really short email address.
It's 9 characters
 
@wat Also, DO NOT POWER ON is taped over the power socket.
 
wat
@wizzwizz4 sure
 
@wat Oh... Those were supposed to be suggestions... :-/
 
wat
9:40 PM
@wizzwizz4 wat? I was accepting the suggestions
 
Woah. Message ~3484000 already? :-O
 
users be like "I just threw away those pesky stickers and powered it on"
 
@wat Oh. Ok. :-//
 
wat
@wizzwizz4 ok
@aditsu If they over heat it, it is user fault
 
@aditsu Users be like "It made strange noises then stopped working, I want my money back" and @wat be like "nope".
 
9:42 PM
0
Q: Print a word clock

Olivier GrégoireSince I saw the first one a few years ago, I always was subjugated by this kind of word clock where the time is actually spelled out by words being lit up or not into a meaningful sentence. The text displayed on that clock is the following. IT IS HALF TEN QUARTER TWENTY FIVE MINUTES TO PAST T...

 
I just wanted to submit an Octave bug:
 
wat
what are the main differences between matlab and octave?
 
price
 
@aditsu @wat should save this link for sending it to future customers that complain about their computer overheating.
 
9:52 PM
The aim is to have no differences
 
Aside from some obscure differences the core languages are pretty similar. But MATLAB usually comes with some toolkits that aren't available on Octave
There's a package manager for Octave though that cn help you find replacements
 
'night
 

« first day (2180 days earlier)      last day (2679 days later) »