« first day (2055 days earlier)      last day (2885 days later) » 

12:00 AM
@QPaysTaxes yes (at least usually--no guarantee of a non-empty argv[0] though).
@QPaysTaxes It tells you that argv[0] and argv[1] are valid pointers to C-style strings, yes.
Oh, just FWIW, it also tells you that argv[2] is a null pointer.
@QPaysTaxes yes.
 
hello
 
12:26 AM
@QPaysTaxes more correct it would be to say that if it doesn't end in a null character, it's not a C-style string
well okay then
 
@QPaysTaxes To be more precise, the C++ standard doesn't use the word "string" at all. It uses the phrase "nul-terminated byte sequence" (aka "ntbs").
 
I'm not sure about this but IIRC "byte" is not necessarily 8 bits in the C++ standard
yeah
It's phrased as something like "It has to support at least the ASCII charset" or some similar format
 
12:50 AM
What do you intend to do with this piece of information
It can output both, and many more
If you run gcc program_file.cpp, the output is an executable file in the "native format" on the target platform. On Linux, it's an executable in ELF format, on Windows it's a PE executable.
 
Received an automated phone call from a website on land line asking 'if you ended up getting what you wanted from our website, say yes.' I wanted to tell the machine the person who used their service is not around. It wouldn't let me. So I hang up.
 
But this means the preprocessor, compiler, assembler and linker are run
You can make gcc skip several parts of the process by giving appropriate command line options to the gcc
 
@Shoe It's phrased in terms of numeric limits--char must support either 0..255 or -127..127.
 
There was only a robot repeating the question
talking about Artificial Idiots
 
OH FFS, if anyone remembers a few weeks back I had a crash when trying the boost::compute library. Well I got a similar crash following some vulkan tutorials. I looked up the dll that was called by ntdll. I had erroneously assumed it was another Microsoft dll, but no. Lo 'n behold, it's a bitdefender dll. If I add my exe's to the exclusion list, I dont crash anymore
Way to fucking go Bitdefender. Hijacking windows dlls and causing me to crash. Code your shit properly next time would you.
#define EXIT_FAILURE 1
stdlib.h
my cstdlib file includes stdlib.h and then does using xyz; on all the things in it (im using VS on windows, YMMV)
 
1:15 AM
@QPaysTaxes You couldn't really do that, that would be a breaking change
people can do #undef EXIT_FAILURE
 
> The EXIT_SUCCESS and EXIT_FAILURE macros expand into integral expressions that can be used as arguments to the std::exit function (and, therefore, as the values to return from the main function), and indicate program execution status.
 
if it was changed, now they can't
 
It might be specced as being a macro
 
Good evening
 
Also it doesn't hurt that much, it's full uppercase, which is a convention for macros
 
1:18 AM
@QPaysTaxes thats right my man
 
@Funkyguy but are you this funky guy ?
 
@Borgleader Nah man, that guy has some serious groove goin
Truly a master of the funk
 
its mostly english? :P
 
1:51 AM
No, that would try to copy it
You could try to make a pointer to it
No, just raw, unowning pointer
Alternatively, a reference std::istream& os = condition ? file_stream : std::cin;
sure, the only problem would happen if you returned the pointer to the dead variable
Sure
 
2:44 AM
const type& or type const&
you can swap the ordering of the const on the first part of the type
 
2:55 AM
 
3:31 AM
transparent text in list box
I thought fields are empty
but they are not, they are just ... transparent ...
 
"If alcohol is a poison, why do you drink it?"
"Because there are things inside of me I'm trying to kill."
@QPaysTaxes are you confused by pointers?
const int* and int* const are two separate things
but const int* and int const* are the same
 
3:52 AM
@QPaysTaxes functions automatically decay to function pointers
yes
currying doesn't work with regular functions because you need closures for that, which regular functions don't have
 
technically the plain function is syntactic sugar, so just the expression do_a_thing won't have the pointer to function type, though you can use it in most contexts and it'll implicitly convert. Adding an ampersand in front of the function name will make like most objects and give you a pointer to the function though again it's mostly useless since the plain function name will usually get converted anyhow.
 
You can curry using std::function
 
@JamesAdkison how? I'm talking actual currying and not partial application
 
4:11 AM
@orlp Maybe I'm misunderstanding ... Is this what you mean?
 
@JamesAdkison that's C++11's lambda doing the currying for you
not std::function
because C++11 lambdas allow closures
but I specifically mentioned that it's impossible using regular functions
 
By std::function I just meant that it's stored in std::function
But I understand now what you're saying
@QPaysTaxes Well you might be able to do what you want. Does the link I posted get you in the right direction?
 
5:13 AM
@milleniumbug look, more (actual) common types!
 
5:35 AM
Damn what happened to @Cicada? What violation?
I feel like I'm behind so many news.
 
@DeanSeo no fun was allowed
 
@LucDanton Oh no..
 
6:00 AM
@QPaysTaxes What does "writing a language" have to do with "getting deeper into C++"?
 
@QPaysTaxes Implement data structures, solve puzzles, make a template library
 
What's your biggest C++ project so far?
Even a minimal compiler for a non-toy language will be several thousand lines of code.
@QPaysTaxes Does it have a type system?
 
user1804599
@fredoverflow I do what I want
 
You can also do an emulator or virtual machine; because it's a lower level implementation of an interpreter/compiler, it's a lot simpler to make.
 
@rightfold It's an interesting article.
> But as of now, there is still no decent web framework for Java that is as easy to use as Ruby on Rails. Why is that? Are Java developers just not as competent as Ruby programmers? If David Hansson could design and develop Rails by himself, why can't a group of programmers just copy the design to Java?
 
6:07 AM
What I really think Java did well was the generic and interface systems. The rest of Java is really inconsistent quality, but those two systems save me headaches.
 
Aren't Java Generics generally considered to be a total trainwreck?
 
Depends on what you're using them for. They are much more intuitive and less prone to bugs in normal use, but I probably haven't pushed them far beyond that
But I'll look it up, see if I can learn anything from the criticisms
 
user1804599
Java generics are shit because they lack higher-kinded types.
 
@rightfold Most Java programmers wouldn't understand them, anyway.
You know, Monads and stuff.
 
Ven
Modaaaaans!!!1
 
6:11 AM
I started with Java and C++ about a year ago. Im no expert at either language but to me it feels like it is "difficult" to revert back to Java if you like C++.
 
user1804599
@fredoverflow uh so what? Most Java programmers don't understand for loops either
 
@quiZ___ Sounds like you started with both at the same time? Why?
 
I didnt, just bad english ; )
 
user1804599
Most people don't understand quantum mechanics, so we might as well abandon the whole theory
 
I started with c++ about a year ago.
 
6:12 AM
@quiZ___ Anyway, I don't feel very productive in C++, mostly due to header files and long compile times and stuff.
 
@rightfold Agreed that higher-kinded types would be useful. I'm not sure about the for loop statement you've made...
 
But aren't header files a really good practice for multiple developers to grasp the overall concept quickly?
 
If header files are so good, how come no modern language uses them?
Header files are an artefact of a 70s compilation model.
 
I guess so
 
Headers are a pain to hook up properly, hence the movement to import management systems with younger languages.
Not quite. Java's an interesting language in that it still has the vestiges of a compiler for its virtual machine, and you still need to direct it to the compiled code. Python, Ruby, and many interpreted languages have systems like pip; systems that allow libraries to be installed in a predictable way; afterward, you import it as normal with no need to fiddle with directories/makefiles
@.@ I'm too tired to think, so take what I say with a grain of salt
 
6:25 AM
@Aaron3468 conflating languages and their ecosystems
 
@LucDanton That sounds about right.
Out of curiosity though, are header files considered a language feature, or an ecosystem feature?
 
language
 
@QPaysTaxes It actually compiles java code into JVM bytecode. The JVM is basically a virtual computer that comes with Java installations. It's a pretty cool concept, because it means all Java code runs on the same operating system. It's just a matter of writing a wrapper between the host OS and the JVM to support a new platform.
 
@QPaysTaxes Java has no import system, but it will come in Java 9.
 
@QPaysTaxes You usually include the libraries as compiled .jar files. Like C++, you need to use compiler arguments to point to the libraries to be included. Otherwise it won't be able to resolve variable names, etc.
 
6:33 AM
-classpath?
 
@Aaron3468 you totally fiddle with PYTHONPATH/sys.path with Python btw
 
yeah, I kinda figured I'd begun to speak about things I didn't know well enough. That's usually how I know it's time to sleep.
 
@sbi I thought if you were insert-sorting a relatively very small list into bigger one, you'd be sorting the relatively small list first.
 
user1804599
@fredoverflow what would that do
 
user1804599
6:43 AM
Scala is the only language that gets modules and imports right.
 
user1804599
Well, and many untyped languages, such as ECMAScript 5 and Lua, but they are unusable due to their lack of types
 
Okay folks, so we know the best spot to parallel a code is at the highest level. For example, if you need to modify one thousand images, its best to put the parallel construct for each image rather than for each pixel (or row). But is this really the best strategy if you consider IO? For example, if you are sending parallel write requests to each image you might fragment the data on the disk, similar thing for reading.
 
6:59 AM
@rightfold What about the Scala binary incompatibility desaster?
 
that's a feature
 
It will fragment
IT WILL FRAGMENT MY DISK
 
user1804599
@fredoverflow it is irrelevant?
 
I feel a proper module system should prevent this...
 
user1804599
No, a proper system of type erasure should
 
7:12 AM
Why type erasure, isn't that when you substitute things into a template? If the ABI changes you can still be messed up...
 
@fredoverflow What's that/
 
Ven
:<
random answer
@QPaysTaxes single-line
 
7:36 AM
yeah single line
 
Xeo
aaaaaaaaaaaaaaah, fuck you youtube. It doesn't let me change to list display of subscriptions.
 
user1804599
7:49 AM
@sehe No, it's fucking terrible
 
user1804599
I hate my job
 
user1804599
I spend most of my time explaining basic concepts to stubborn incompetent coworkers and I hate those people
 
user1804599
I can't write good code because it requires concepts those morons are not familiar with
 
Ven
come write c++ for us!
 
user1804599
I am now removing all composite primary keys from the database, introducing surrogate keys, and rewriting all SQL code, because one fucking moron decided to use a tool that doesn't support composite primary keys
 
user1804599
7:57 AM
Whereas perfectly fine alternatives that do support composite primary keys exist.
 
user1804599
but no I'm familiar with this and I refuse to learn anything and I prefer to stay in the same old shithole forever and ever
 
> internal compiler error: Segmentation fault (program cc1plus)
fresh compiler, fresh ICEs
no stacktrace of course
 
@QPaysTaxes what are you ultimately trying to do?
yeah, sure. but I mean...are you writing a parser or something?
I found it very comfortable to just read in everything, and then use random access iterators on a string :)
can peek ahead as much as you like :p
 
user1804599
8:12 AM
Whistleblower published that the Dutch state asylum business organisation bribes shopkeepers if they keep silent about goods stolen by asylum seekers.
 
user1804599
how fucked up is that
 
user1804599
to keep the fairytale of them all being wonderful promising people alive
 
@LucDanton whehee
6.1?
 
Ven
8:32 AM
sleep tite
@LucDanton enable kernel debug
 
8:46 AM
@LucDanton nICE
 
8:57 AM
gonna take a break before reducing it further
 
Ven
did anyone start implementing concepts for clang?
 
there’s a ConceptClang around but I don’t know for sure if it’s supposed to be the eventual implementation or how it’s connected to LLVM/Clang in general
> That was adapted by Björn Buckwalter for Pearlmutter and Siskind's fad library which is a precursor to my ad library.
it was just a fad before the real thing
@Dmitri I’m getting my pun game up for Sunday
> The rad package
> Deprecated: Use ad instead.
these things write themselves
 
that's rad
 
Ven
once deprecated, it'll be dad
 
user1804599
use Rust
 
Classes in D are reference types
 
Rust sounds so derelict. Why would anyone name a programming language like that is beyond me.
 
user1804599
@wilx It's not named after the oxide, it's named after the fungus.
 
@rightfold Is that better how?
 
user1804599
9:15 AM
And because it's like "robust".
 
user1804599
Apparently.
 
user1804599
Nobody really knows where the name comes from.
 
user1804599
> TL;DR: Rust is named after a fungus that is robust, distributed, and parallel. And, Graydon is a biology nerd.
 
user1804599
Everybody planning to use C++ at any future point in time should not give Rust a try, for they will eternally envy.
 
9:20 AM
> D is designed with lessons learned from practical C++ usage
> D has however been constrained in its design by the rule that any code that is legal in both C and D should behave the same.
So... no lessons learned?
 
:D
 
user1804599
@Shoe that is not the case
 
I think I’ll submit this one
 
9:38 AM
Hey folks!
 
the good news is that this bug aside, everything compiles again
 
user1804599
9:55 AM
I wish I were an applicative functor.
 
user1804599
What does salmon taste like?
 
does Luc have Griwes in his plonk list?
 
I'm half sure he does.
 

« first day (2055 days earlier)      last day (2885 days later) »