« first day (1633 days earlier)      last day (3541 days later) » 

12:00
@FilipRoséen-refp Lol "define program"
if I have a question in regards to wildlife, which SE site should I post it on?
I touched HTML when I was like 11. This counts for something, surprisingly.
wtf /r/depression
@Cinch a yatzy implementation (not sure if the game has the same name in english)
it's with people saying they want to kill themselves
and others saying ok
12:00
I've actually been coding seriously for maybe a year or two.
seems to be called "Yahtzee"
@FilipRoséen-refp mmhmm.
@AlexM. I ran into a guy who asked if I knew any "any locations really high up in stockholm" yesterday, we sat down and spoke for a few hours and he shook my hand and said "I'm not going to kill myself today, thank you"
he sure had some stories to tell
12:03
I was not sure whether to try the great outdoors or animals & pets
petting
there's a slight part of me that want to have behavior similar to FORTRAN in C++ when it comes to for-loops (ie. that you can't change how many times a loop will iterate from the body of the loop)
@FilipRoséen-refp wow.
Also you vaguely remind me of my AP Music Theory teacher
for_to_do(1, 20, [](int x){ /* do stuff */ });
@milleniumbug sure, one can mess around with a lambda (or simply name-hiding), but it would be nice to do it some other way
Xeo
Xeo
@FilipRoséen-refp for (auto i : range(1, 10)) ...
12:09
for (int i = 0; i < 10; ++i) {{ auto const _ = i, i = _; ... }}, for (int i = 0; i < 10; ++i) [i = i]{ ... } ();, or any range-implementation
@Xeo sure, but I want a deeper concept - it is of course possible to express it in C++
This question hasn't been touched in 6 years. Does your answer provide anything new that hasn't already been covered by the existing answers? — fredoverflow 26 secs ago
but it would be cool with safe_for (...); that wouldn't allow modification of any variables that are referenced in the condition within the body
@FilipRoséen-refp By the way, what will you answer when Google asks you "Why do you want to work for Google"?
@fredoverflow side-effect of erhm.. whatever-that-twitter-account-is-called linking that question earlier today
Just putting names in a series of sentences does not make an answer. — arithma Nov 18 '13 at 15:00
lol
12:12
I must say outdoors.stackexchange.com is fairly entertaining ...
So I built my survival shelter and I decide a nice fire would really warm things up. Is there a way I can build a fire that would heat the shelter without too much smoke?
working for google sounds like so much work
@AlexM. As much as one work, at the very least!
@fredoverflow I receive emails from recruiters quite often (for some reason), but I haven't found any company that is as up-to-speed and that are actually developing things for the future, instead of maintaining legacy code with a mere "yeah, c++11 is nice but we are using c++03 for <insert bullcrap reasons>". I'm a software engineer, and I want a challenge.
@chmod711telkitty I suggest you use > instead of 4 spaces for quotes.
so the asker built a survival shelter and could not wait to run back to the internet and ask people on SE whether it's possible to build a fire inside the shelter
12:14
that's the gist of it, if you want me to answer it in more detail we can do so (if you buy me a beer)
@FilipRoséen-refp Oh, so Google contacted you? Congratz.
@fredoverflow yeah
user1804599
Alright, I can now extract documentation comments.
user1804599
For all declarations.
@райтфолд what are you working on?
user1804599
12:18
Tool.
@LucDanton it sounds very srs bzns
@райтфолд that's specific enough.
hi
@abhi you already said that.
i hope
G++ hello.cpp -o hello -->compile the source code in to hello
and ./ hello --> linker . m i right ?
12:23
@FilipRoséen-refp If you think Google uses modern C++, you'll be disappointed.
@Mysticial we'll see, at the current time I'm primarily looking forward to the interview process
I don't do C++ at Google, but I know people who do. And they are "very afraid" of modern C++.
They even prefer code-generators over templates.
@Mysticial I know people who do C++ at google, who do write modern C++, so I reckon it depends on where you end up
@райтфолд Let me guess; 5 lines of Perl? ;)
12:26
Judging by Google C++ Style Guide, yes, they're very afraid.
@Mysticial "C with classes without exceptions"
@milleniumbug yeah, that's for sure though
@FilipRoséen-refp Don't go into Google expecting you'll get to do C++. They only hire generalists and they'll throw you on whatever project happens to need people. So be prepared to do Java. (At the very least, they won't make a C++ person do Python unless the person actually knows Python.)
@Mysticial sure, but then again the road doesn't end just around the corner
? any one ./ hello is that a linker ?
12:28
4 mins ago, by milleniumbug
no
0
A: Recursive generation of all “words” of arbitrary length

ohannesAs I am inspired from @fredoverflow 's answer, I created the following code which can do the same thing at a higher speed relatively. #include <iostream> #include <cstdlib> #include <cstring> #include <ctime> #include <cmath> void printAllPossibleWordsOfLength(char firstChar, char lastChar, int...

Does anyone see how this would be faster than my solution?
@milleniumbug okey so when we are calling linker to execute the program in g++
@abhi You don't "call the linker to execute the program". That's not what linker does. Re-read whatever you were reading.
Or get a different book.
4271
Q: The Definitive C++ Book Guide and List

grepsedawkThis question attempts to collect the few pearls among the dozens of bad C++ books that are published every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a well-written...

user1804599
Fuck it I'll write it in Python.
@fredoverflow the biggest problem with both of those snippets is that they aren't (strictly) portable
12:33
Because A to Z may not be sequential?
@milleniumbug i am refering Programming: Principles and Practice Using C++ (Bjarne Stroustrup)
and in this it's mention like

For example, the "Hello, World! " program consists of the two part ,
** the part we wrote And
** plus part of the C++ standard library.

These separate parts (so metimes called trnslation unit ) must be compiled and
the resulting object code files must be linked together to form an executable program.
@fredoverflow and no, I don't see how that implementation is faster than yours - if anything I think it's slower
@fredoverflow mhm
Fuck non-ASCII alphabets ;)
@fredoverflow you could make your faster if you rewrite the inner loop, though
I don't care, std::cout is probably the bottleneck, anyway.
12:37
@fredoverflow but std::cout isn't part of the algorithm itself
Okay so how would you propose rewriting it?
or wait, it is
I thought it only generated the words, didn't look at the actual interface
@fredoverflow I'll need to reply to some emails, but I can write an implementation of how I'd do it in like half an hour
I don't think it can be done significantly faster, but I'll wait and see.
@abhi Great Lost episode!
"?", typically pronounced "Question Mark" is the 46th episode of Lost and the 21st episode of the second season. The episode was directed by Deran Sarafian, and written by Damon Lindelof and Carlton Cuse. It first aired on May 10, 2006 on ABC. The character of Mr. Eko is featured in the episode's flashbacks. == Plot == === Flashbacks === Eko is a priest in Australia. An associate gives him a counterfeit passport before he is sent to investigate a miracle of a drowned young girl, named Charlotte, coming back to life on the autopsy table. At first, it appears that the miracle is genuine. ...
12:39
@abhi Yes. That's how it works in theory. Now you can find how gcc does all the steps.
What is the most efficient food to take a for a 12-15 day hiking trip? answers (as chosen by the SE users): 1) dehydrated stuff, 2)rice 3)fat
@chmod711telkitty Where are you going?
I am not going anywhere. But I do a lot of multi day hikes/bushwalks in general
normally 2 days
but sometimes 3 days
> What is the most efficient food to take a for a 12-15 day hiking trip?
> It's important that the food is going to last the full two weeks.
lol
Can I say something like the while() > for()?
3
12:46
@Cinch What semantics that code would have?
@milleniumbug No
I mean that the while loop is better than for
because you can make for on top of while
@Cinch And vice versa.
@milleniumbug yeah but for is often longer
not counting range-based fors
while(condition) -> for(;condition;)
12:47
@milleniumbug but there's no point to having the semicolons
@Cinch oh god; you know nothing
@ScarletAmaranth No i know
@ScarletAmaranth Is his name John Snow?
But what I mean is that while loops are best
@milleniumbug You can even shorten while(true) to for(;;)
12:48
You know nothing, Cinch Snow
@fredoverflow yes but for(;;) is not very informational
@Cinch It is if you are not complete beginner.
@Cinch So what is it now? Shorter? Powerful? Informational?
@Cinch But for(;;) contains two happy smileys, namely (; and ;)
9
Like in terms of regular english
for(what what) {}
or while(this is true) {}
12:50
@Cinch Programming languages are not regular English. Geebus.
@wilx Yeah but often less verbose languages are treasured for produtivity
well, it's been a while since my last plonk-list update
@LightningRacisinObrit hello
@ScarletAmaranth inb4 plonks Cinch
Look at how horrible programming languages that try to sound as regular English look like: Cobol
12:51
alright who here uses zsh? Is there any reason why this wouldn't work when put in /.oh-my-zsh/custom/appearance.zsh? echo -ne "\033]0;$(basename $(pwd))\007"
I'm thinking...
@corvid Explain how the not working manifests.
> Can you make me a graphics program? I wanted to make a basic chess game with a timer and stuff
Hm...
@Cinch for is the best thing ever for code golfs in C.
@milleniumbug what is code golf
user1804599
12:53
@AndyProwl the tool works very well!
user1804599
It can list included headers for a header now. :P
@wilx I expect my tab title to be code when in the directory /Users/(me)/Development/code, instead, it's still ..elopment/code
@райтфолд Are you using Clang?
@Cinch Writing the shortest code doing thing X in a language Y using as much obscure tricks as you can.
user1804599
12:54
@AndyProwl Yes.
@milleniumbug oh
but that doesn't always make for good code
"using as much obscure tricks as you can" pretty much never makes for good code
@Cinch It's not supposed to be a good code.
It's code golf.
12:55
Well I'm not talking about Code Golf
I'm trying to conceptually make a programming language
user1804599
And now it lists all entities declared in the header. :)
today I am going to do some gardening
@corvid The part inside $() seems fine.
yeah that part evaluates fine in echo... it just doesn't set the tab title
What does \033]0; do or supposed to do?
12:58
@wilx oo you sexy beast, you have a new profile photo!
@ScarletAmaranth lol, yes. :D
hm...
new byte a;
new int b;
new float c;
new string d;
new obj e;
I wonder if those are enough types
@Xeo Alrighty I'm back in civilization, give me like half an hour and then we can start
13:09
WTF is new int b; supposed to mean?
@fredoverflow I'm thinking about syntax for the language
It would be how you declare variables
you suck tremendously.
why use new?
@Veritas because it makes some sense.
13:10
redundant new specifier, redundant type specification, permitting uninitialized variables
@Puppy it can also be new byte a = 3;
er, no.
"it can also be" is terrible.
you need "it must be".
Well fine:
and furthermore
declaration: new TYPE NAME;
13:11
the new byte is completely redundant since you already have the type.
and you know whether or not a already exists or you can make a syntactic distinction for it.
@Puppy no because I also include copy and move
so your user is just spamming the compiler with information it can figure out for itself.
@Cinch So does C++ and Wide but we still use type inference.
copying and moving does not prevent type inference in the slightest.
It's explicit though
It'd be something like:
new byte b = 0xAB;
and then:
new byte c = copy b;
or new byte c = move b;
@Cinch That's the problem.
it's completely pointless because the compiler already knows whether to copy or move.
the compiler already knows the type.
the compiler already knows whether or not it's a new variable.
there's no benefit to making the user re-state the same information infinity times.
@Puppy I'm saying for a hypothetical new language
13:13
@Cinch I know.
and what I'm saying is that unless you do something batshit insane with your hypothetical new language, all of those things will remain true.
Hm...
new byte b = c;
new byte b = move c;
That way when you read it, a placement of a new will always tell you that you are allocating more memory for a variable
@Puppy It's the trade-off between tersity and resistance to making small syntax mistakes doing the wrong thing
@milleniumbug It has nothing to do with either of those things.
new byte b;
new byte c = 3;
auto is not more terse than float, it has different (better) semantics.
13:16
Perhaps I should put in swap too...
oh gawd no.
new byte b; new byte c; swap: a,c;
I don't generally like new languages unless they bring something new to the table or do certain things better than the current ones,
straw poll: which language is worse, Rightfold's language (Perl) or Cinch's language (Java but even more verbose)?
Hmmm...
perhaps something like
13:18
@Puppy Python knows whether to make a new variable or use existing one in assignment, and that makes small mistakes runtime errors.
Hm...
Other languages make creation of variables more explicit, and these errors don't exist in these languages.
@milleniumbug It does; but that's because they don't make a syntactic distinction, which is trivial to make without requiring a giant keyword.
also Python's problem is compounded because it's pointlessly dynamic instead of static.
Also, variable declarations are more greppable, which is a nice thing.
static variable scope could handle it just fine with suitable warnings or errors depending on how you want to roll with it.
@milleniumbug Which still doesn't require a giant new keyword.
user1804599
13:21
@AndyProwl it's getting neat.
user1804599
user1804599
Template parameters are tricky, though.
user1804599
I don't know where to get them from.
new int a = -9;
new int b = 3;
new int c = a+b;
print(c);
@райтфолд Nice!
13:23
new dragon smaug = new dragon(string, int, byte, func, func);
Man I should learn how to do those things
I say scrap new there is really no point in it. Also I would make the type specifier optional but that may just be me.
new dragon smog = move smaug;
@Veritas Nope, keeping type.
@Cinch No. Please don't make me retype the type.
why do low cost airlines exist and why are they low cost
do they crash more often or sth
13:24
Even C# and C++ don't do this.
do they decrease quality
@milleniumbug hm...
@AlexM. Crashes are expensive, so I doubt it!
Wizz Air Hungary Airlines Ltd., Hungarian: Wizz Air Hungary Légiközlekedési Kft., is a Hungarian low-cost airline with its head office on the property of Budapest Liszt Ferenc International Airport in Budapest. The airline typically uses secondary airports serving many cities across Europe, and Azerbaijan, Egypt, Israel, Turkey and the United Arab Emirates. It has the largest fleet of any Hungarian airline, although it is not a flag carrier, and currently serves 35 countries. == History == The airline was established in September 2003. The lead investor is Indigo Partners, an American pri...
these guys are really cheap
compared to, say, Lufthansa
to get to Germany
yes but why write unnecessarily_long_type_name_here var = new unnecessarily_long_type_name_here(blah)
13:25
@Veritas true
I see no notable incidents, save for two emergency landings
all of them started from Romania tho :D
new dragon smaug = {"Smaug", 0b00001111, -9};
or something like that
Type inferrence is nice, but I don't use it often in C++, because the type is pretty fucking important and can make a difference between life and death valid code and UB.
sure it is, it's just that the compiler already knows what the type is.
I only use type inference when the type is obvious. It also makes things easier when writing templates .
13:31
If you make your language simpler (you definitely should), there is no reason for not including type inferrence.
Oh no. @SciencePorn seems to have been pressured by scolds & grievance activists to remove this amusing cartoon. http://t.co/h8akdDrwiG
Seriously. This is getting fucking retarded.
@AlexM. I bet Germanwings are really cheap, too!
hm....
Cinch what's your reason for using new?
@Veritas association of new with literal allocation
@wilx Germanwings doesn't seem to do flights from Cluj to Koln :(
13:34
i.e. whether there is ANY new there is memory allocated
where there is ANY move there is a move
right now i'm hacking away at the syntax for classes and functions
@AlexM. LMAO. My point was entirely different. More like, cheap is not always good or even acceptable. :D
how was I to know that
Xeo
Xeo
@Puppy I'm also eating right now, so no pressure
that's lucky cause I actually can't quite figure out Starbound's server setup.
they do fun things like 1 copy of each config file for each platform configuration and shit like that.
13:37
@AlexM. Did you not notice that crashed air plane in the Alps?
def class Dragon:
new string s;
new int i;
new byte b;
new ref r;

def func Dragon(string a, int b, float c):
s = a;
b = b;
r = ref c;
;

def func blow_fire():
return s + " blew fire!";
;
;
I just want to not pay a shitload of money for this 2 hour flight
Well?
@Cinch Lack of formatting etc.
13:38
@Cinch Terrible in every way imaginable.
@milleniumbug oh yeah sorry.
The type hierarchy goes:
bool -> byte -> int -> float -> string -> ref
right
figured it out.
@Cinch a.) Why inconsistent ending markers? Why does first function have end; and the second just a semicolon? b.) dafuq is ref? Is it void*? If so, it's as horrible as it can get.
> French and German prosecutors investigating the crash have confirmed that Lubitz had been treated for suicidal tendencies and believe that he intentionally crashed the plane.
@milleniumbug I'm not sure about this yet
I think I'll just use end;
13:41
tbh, I'd have been more worried about the crash if it were because of bad plane maintenance
not because of a pilot with hidden mental issues
perhaps a newline would be better
i think end would be better, though
But ref would be a general reference type
@Xeo when you're ready give me your email or something and I'll mail you the server details
Xeo
Xeo
@AlexM. But here's the thing: If it's technical issues, you can just throw "more eyes" at it. For psychological issues? Good luck.
@AlexM. Actually, I was thinking the same when it crashed. I was thinking "I hope it is not Airbus issue that downed it."
@Cinch Has your language dynamic or static typing?
13:43
@milleniumbug static
Xeo
Xeo
@Puppy You have my contact in Steam. Also, unstable branch or normal?
ah yeah I do
@wilx from what I see this incident made all companies change their policies
Additionally, we'd be able to do linked lists and the sort in the language.
currently stable but we can take unstable if you want any of the unstable changes, I reckon
13:43
so any other company would have been affected
which kinda makes your original point invalid
@Cinch Then you really need to think about semantics of ref
Xeo
Xeo
@Puppy I dunno what changes there are in unstable - haven't followed the updates at all, really
(that Germanwings had a mentally unstable pilot because they're cheap)
@milleniumbug I really do.
@Xeo There's some nice changes in unstable but nothing incredibly huge right now.
we can stick to stable for a while
13:45
> Following the incident, EASA (European Aviation Safety Agency) made a recommendation to airlines that two authorized persons must be present in the cockpit at all times. [34] In coordination with the German aviation authority, other German airlines and the German aviation industry association, the airlines of the Lufthansa Group adopted a flightdeck occupancy procedure meaning that two authorized persons must be present on the flightdeck at all times during flight.
@AlexM. Well, not entirely. Given the nature of the job, they should be undergoing some testing.
there would be a general obj type for handling objects as well
@wilx and you can be sure they did tests
aah Cinch
Not sure.
13:45
they only discovered his issues after going through his apartment
I'm thinking about the C++ integration as well.
do you ever make a mistake that other people haven't already made that you could have learned from the easy way?
Xeo
Xeo
@Puppy k
Are we doing this like Terraria without voip?
user1804599
Woo, my documentation extractor works!
we can voip if you want
I don't have a voip server on hand
is the Lounge mumble server still up?
13:47
what are you guys playing
@AlexM. They, the employers, should have discovered it before it happened. I think due diligence has not been performed.
Xeo
Xeo
let's see how it's going without first. if we need quick communication we can still get on one
@wilx how do you discover something like this lol
Xeo
Xeo
Friend of mine has a teamspeak server
sure
Xeo
Xeo
13:47
@melak47 Starbound
you talk as if people with spontaneous depression and suicidal tendencies are really easy to spot
hint: they're not
it's not like they're broken away from reality
@AlexM. You mandate your pilots to be psycho tested by their contract?
you're a waste of time, sorry
@wilx Which they already are. But it's not foolproof and people's conditions can change or be missed.
I'll stop here
Xeo
Xeo
13:49
Okay, I think I'm ready. Water, check. Empty bladder, check. Full stomach, check.
@Xeo closed blinds? :p
IMO there's nothing clear that the airline could have done to prevent this from occurring except the 2-person rule that they have now adopted.
Xeo
Xeo
@Puppy "always two people in the cockpit"?
the real question is why this guy did not end up back in mental health after he relapsed- he was already known to them.
@Xeo yep.
@AlexM. But he has been diagnosed and treated. The point is he was able to hide it from his employer. It does not matter that I have a depression or suicidal tendencies to my employer. But being an air plane pilot, it should matter to Germanwings.
13:50
@wilx He has a right to doctor-patient confidentiality.
well yeah he was able to hide it, that's the point
and from memory, his clinicians cleared him.
@Puppy Given the nature of the job, I think he should be able to forfeit it in this regard.
I dunno
Me neither.
But I think the company screenings could have been better.
13:52
this is a pretty exceptional event and making regular life much more invasive for every single pilot going forward is not necessarily a good tradeoff.
Well, they certainly will be better now.
obviously, pilots should live in supervised housing, so this cannot be missed!
why forfeit it, the official stance was that he was treated
@melak47 Strawman, red herring or something.
People who want to pass the screening are likely to pass the screening
13:53
@wilx red strawthing? :)
"oh I'm sorry, you had this depression issue before, I know you've been treated but you just can't be a pilot anymore. go back to burger king."
@melak47 Yes. :)
@AlexM. that should help with the depression :p
@melak47 Actually just implement total mind control and all of the problems are solved!
13:54
we need unmanned aircraft
@AlexM. Tough life. Not everybody can be a pilot.
@AlexM. that doesn't help passenger aircraft ;)
unmanned passenger flights :A
@wilx lol ok
Pilots are very special and should require more screening than military, a fact
Good morning.
13:56
You're doing the panicy "OMG WE HAVE TO DO SOMETHING PERMANENT ABOUT THIS" idiotic thinking over an anomaly
also wtf this guy was just 5 years older than me
actually the real wtf is that people born in 2000 are now 15 O_o
I'm 14 and I was born in 2000.
Your statement is false mwahahahaha.
@AlexM. You're really good at arithmetic
@CatPlusPlus Probably true.

« first day (1633 days earlier)      last day (3541 days later) »