« first day (2047 days earlier)      last day (2893 days later) » 

12:01 AM
@StackedCrooked Not always. I set aside 5 minutes each week during which I'm 100% serious. I assure that I'm not joking at the time by scheduling it while I'm asleep.
 
How diligent.
 
@StackedCrooked That's me. Digilent, yet Arty.
 
Very nice :)
 
I have a theory: Cat is really Alan Kay
Think about it. They both hate OOP as it currently is. They both hate the web. They both consider dynamically typed language acceptable, they both talk of how the industry is terrible and everything is complicated.
 
12:40 AM
all you are convincing me of is that someone should put both of them in a room to see what new critiques of programming come of it
 
12:52 AM
https://github.com/IonicaBizau/node.cobol h e l p
> Node.js bridge for COBOL which allows you to run Node.js code from COBOL.
 
@Shoe Nah, @CatPlusPlus isn't really much into smalltalk.
 
Alan Kay arguing with Ted Nelson might be interesting.
 
1:36 AM
Can free function pointers be const volatile ?
Like, the actual type signature of a free function gotten from some decltype(f).
Oh god, can regular member variable pointers be const volatilve && & ?
 
2:15 AM
@ThePhD [ Note: a function type that has a cv-qualifier-seq is not a cv-qualified type; there are no cv-qualified function types. — end note ]
 
@Cubbi Hum.
Guess I'll just do the specializations on MFPs then
 
2:31 AM
Annnd
VC++ is throwing a hissyfit.
This... compiler...
 
@ThePhD Have you tried cooling it down with more ICE?
 
.-.
 
Also, Qt is driving me crazy.
void finished(int exitCode); // ### Qt 6: merge the two signals with a default value
void finished(int exitCode, QProcess::ExitStatus exitStatus);
Is there a way to get a function reference to the second function?
 
@Cubbi I thought those were “abominable” types e.g. open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0172r0.html
 
@Nican static_cast.
static_cast<void(*)(int, QProcess::ExitStatus)>(finished)
 
2:42 AM
Thanks. <3
Aaaww.
/home/nican/git/robot/main.cpp:235: error: invalid static_cast from type '<unresolved overloaded function type>' to type 'void (*)(int, QProcess::ExitStatus)'
^
 
&finished ?
 
connect(purpleRock, static_cast<void(*)(int, QProcess::ExitStatus)>(&QProcess::finished), this, [](int exitCode, QProcess::ExitStatus exitStatus){
 
Hum...
It's not a member function, right?
Okay, so it IS a member function
@Nican static_cast<void(QProcess::*)(int, QProcess::ExitStatus)>
 
Let me try
It worked. TIL. Thanks!
 
F4z
hello!
regarding this code: pastebin.com/eM0EU0rC I keep getting two different values when I print the output
pretty much the correct output is 17664 but I keep getting 37504
All im doing is trying to make the code from here cquestions.com/2010/06/write-c-program-to-convert-binary.html work inside a function
but i get the incorrect value
 
2:53 AM
@F4z Explicitly initialize remainder maybe?
 
F4z
didn't work
 
Wait so is it nondeterministic, or the two copypasta-ed versions are not consistent?
ideone that biznass
 
F4z
i just want to convert that code into a function like bin_to_num
pretty much a copy paste from that source but i isolated the problem
so if i remove the scanf and just have binaryNumber = ...
it wouldn't work
so im guessing it has something to do with the address and pointer being incorrect
 
Remove the leading 0
bin_to_num(100010100000000);
 
F4z
oh wow that worked, but how come?
 
2:59 AM
0
Q: How to work with Base 8 (Octal) numbers?

ShadowIn C++, an octal number is defined by preceeding it with a 0, example: 01 = 1 010 = 8 014 = 12 So I was experimenting how working with Base 8 in c++ works, and tried adding to it with a loop, like so: int base8Number = 00; for (int i = 01; i < 011; i+=01) { base8Number += i; cout << b...

 
F4z
is there a way to just leave it as is and still give me the correct ouput? i want it exactly 16 bits
 
Leading zeros make it octal
Good catch
 
I can not think of any ways. Possibly store it as a string, and then convert it to a number?
It is a compiler level construct.
 
F4z
maybe i can bitshit it all to the left by one?
 
You could pass it as a char const* and use sscanf(), reduplicating the original input heuristic
like e.g. bin_to_num("0100010100000000")
or something like std::bitset<16>
@F4z lol @ “bitshit”
 
F4z
3:04 AM
yea that didnt work
 
@F4z No. The compiler is compiling the number in base 8. It is stored in the binary after the conversion.
 
@Nican hey out of curiosity, can you do like long long wat = 012341234LL; – to mess with the number parsing mode with suffixes?
 
No idea. :o
 
@fish2000 abominables are a different thing: using abomination = void() const; but using f = void(); using not_const_at_all = const f;
 
Oh, hi, Cubbi.
 
3:15 AM
@Cubbi oho word nice example – I have been bitten by the latter
@Nican every so often I imagine I found a use for those new custom suffix-operator overloads
 
VC++ won't let me stick va_arg ... after a fucking Args... pack expansion.
It's driving me up the goddamn wall.
 
How did they do std::is_function then?
 
question for all of you
 
I don't know!
> struct _Is_function<_Ret (_Types..., ...) CV_REF_OPT>
I need a comma and a space.... ?!
 
@Cubbi Something like this I would wager – github.com/matt-42/iod/blob/master/iod/callable_traits.hh
 
3:24 AM
@ThePhD don't let Bjarne know! He hates C for introducing that comma before the ellipsis.
 
@ThePhD Well, did it work?
 
Trying.
 
@Cubbi may I ask, is that portable?
 
@fish2000 what is?
 
the va_arg-after-parameter-pack ellipses KFC-double-down
 
3:29 AM
@fish2000 it's in the grammar.
stackoverflow.com/questions/5625600 was when I first saw it
 
@Cubbi oh lord OK that is indeed confusing
I was already confused about va_arg non-portable ABI stuff
 
Fuck, its been 12 years since 64bit and python still doesn't have 64bit shared memory objects.
 
4:00 AM
yet again I lost my lighter WAIT NO THERE IT IS
smoke break o'clock
 
smoking is for foreigners
 
@Mikhail s/foreigners/stinking idiots/
 
@Mikhail Are you good at languages grammars?
 
@VermillionAzure I'm not trying very hard, although I got a perfect on my GRE essay (once)
 
Well my question to you is whether a usual arithmetic expression grammar is guaranteed to terminate in interpretation
of a string
that satisfies the langauge
because it appears to be that if you give it an infinite string, it should never stop
 
4:10 AM
Sorry, not my thing
Wave equations, random processes or numerical methods. I don't want to give you the wrong answer on CS stuff.
 
@VermillionAzure If the string fits the grammar, then parsing shouldn't ever stop.
 
@JerryCoffin right... Now is that a bad thing or a good thing for compiler runtime?
Hypothetically you can break a compiler by giving it a string that is too large
Does this occur?
 
@VermillionAzure Irrelevant to compiler runtime. You don't have any infinite inputs to feed the compiler, and even if you did, the parser will have a finite parse stack, so an infinite input of a+a+a+a+... will all fit the grammar, but will still terminate fairly quickly.
 
@JerryCoffin What do you mean by parse stack? And how would an infinite string parse quickly?
shunting?
@JerryCoffin You mean shunting-yard's stack?
 
@VermillionAzure A parser (typically) uses a stack. For recursive descent, that's the normal runtime stack. For others, it's (typically) separate, but still thoroughly finite. When you overflow the stack, the parser will (or certainly should, anyway) terminate.
 
4:15 AM
@JerryCoffin What do you mean by "should?" Doesn't overflow result in an error, usually? Or an undefined definition or impossible by definition etc.
 
@VermillionAzure I mean a well-written parser should check the stack, and terminate if it's about to overflow. Others that aren't so well written could just overflow and have UB. They'll probably terminate fairly soon after that, but with UB, it's hard to be sure.
 
@JerryCoffin But we can generally assume that infinite strings will eventually overflow the compiler if the compiler is some realistic implementation?
 
@VermillionAzure Yes, generally. Write a little program that generates a program like: int a = 1; int b = a+a+a+a+a... for a hundred megabytes, then (try to) compile that and see what happens.
 
@JerryCoffin I wonder if GCC would break if I did that up to a 10GB file
 
@VermillionAzure Do you want some templated code that kills MSVC?
 
4:21 AM
@VermillionAzure Try it. My guess is that it'll break long before that.
 
@Mikhail No, I'm just trying to think about compilers and languages in general
I'm going through a textbook myself and trying to teach myself since my school doesn't offer a compilers class
I just hit the part for arithmetic operators
 
If it makes you feel better, our school's compiler class was known to be a joke
 
What school is that?
 
UIUC
 
@Mikhail Isn't that a good one?
 
4:24 AM
But not that class
 
That's really strange
Isn't UI the academic home of LLVM?
 
kinda, but that graduate school
was the hardest and only CS class I took
 
Oh hey
I just finished that class
It's a junior level class for us
 
@VermillionAzure A quick check shows that VC++ and g++ both crash and burn on a mere 512 K of b = a+a+a+a+a...;. VC++ at least checks its stack, so it gives a meaningful error message: fatal error C1063: compiler limit : compiler stack overflow. g++, by contrast, pops up the standard dialog: cc1plus has stopped working.
 
@JerryCoffin interesting
 
4:39 AM
@VermillionAzure A bit more testing shows that with either vc++ or g++, 32K repetitions doesn't compile, but 16K does.
 
cc1plus has given up and needs a new outlook on life
and they say I torture compilers
 
For fun, MATLAB can evaluate 2^16 operations, but its takes forever.
 
@LucDanton Your tortures are more creative. This is just putting them on a medieval rack to see how far we can stretch them.
 
C macros suck
 
4:59 AM
@JerryCoffin That's extreme.
 
5:16 AM
@wilx Indeed it is (but if you read the transcript, you'll notice he was talking about 10 gig, and this is a lot less extreme than that).
 
Sunburn on my neck is more severe than I expected. so I decided to wear Shemagh whenevrer I'm going outside
http://i.imgur.com/fYcJN1W.jpg
 
@JerryCoffin Yeah, I was not reading the context. :)
 
Good morning, non-deaf people.
 
@R.MartinhoFernandes Good morning, half-deaf-man.
 
@R.MartinhoFernandes If I could hear you, I'd feel at least half left-out.
 
5:31 AM
Ooops.
 
5:41 AM
Do you need to support Unicode internally in a compiler if you want to be able to have Unicode-compatible identifiers?
 
Is that a question
 
Interesting
 
Like, for example, I want to be able to handle UTF-8 encoding for a compiler or perhaps even translate the programming language syntax into a different language so that we can have a foreign analog to, say, C
 
6:01 AM
Just as an example, D mandates source files to be UTF-8-encoded.
 
@VermillionAzure Depends on how much you expect from it. To really work well, yes, it would need a fair amount of Unicode awareness. For example, to recognize equality of identifiers correctly, it'd probably want to do something like NFC on each identifier before doing much else with it.
 
@JerryCoffin NFC?
mmm i see
@JerryCoffin It's just that I figure that given a character type and standard delimiters for tokens, it might be trivial to store the identifier names and still not have to change a lot of things
I suppose a proper thing would do such a thing
 
7:00 AM
lol, so MSVC excepts the following, function prototype and then crashes:
void interpolateSurface(std::vector<std::pair<std::pair<int, int>, ScopeLoc>>& dst, const const std::vector<ScopeLoc>& __restrict src)`
also how do I post code in the chat
 
@VermillionAzure the gist of it is that you probably want "é" and "é" to be handled the same
 
nwp
@Mikhail you can use backticks just like on SO to get monospace font
@Mikhail did you update to the latest version?
 
No, I'm still using MSVC2013. It actually gives a warning for "anachronism" something and then burns, including the GUI
 
nwp
that also has a couple of updates
 
Yeah I'm using the latest update for 2013
 
7:06 AM
@Mikhail maybe the message is 'this compiler version is an anachronism'
 
This is absurd, I have two consts, one for my protection and a second for the compiler's
 
better const-safe than const-sorry
 
Question: does a model of computation require a notion of time?
 
Does time complexity count? There certainly are 'events'.
 
I mean, it's more of a philosophical question
 
7:15 AM
Yes, it does
 
I would assume computation needs time because computation requires change in something
 
every state transition
Also times moves at one second per second
 
Better question: is observation an action?
 
In modern physics yes
 
In computation?
 
7:16 AM
no
 
because you can observe without perturbing the system
 
What constitutes an action?
 
state transition
 
Now the question is: does observation imply transfer of information?
 
7:17 AM
You can observe a turning machine without the Turing machine (or Turing) knowing you are observing it.
 
Suppose I am a computer that has only two binary registers where the only two possible values are 1 and 0
There exists two actions: observe an external system that maps onto register 0 as either value 0 or 1
and get: observe register 0 and output its value as either 0 or 1
If I invoke observe, does that mean that the observation into the system requires a transfer or writing of information into that register?
Like wise, get is an operation that, when invoked, "observes" a place in space internal to our system
And yet, we know that performing get prior and after to invoking observe may result in different answers depending on the external system
@Mikhail Can you compute values without place in which to hold them?
 
@VermillionAzure is /dev/null a place? Kinda, the state can be muddled in a Mealy style machine.
 
sup guise
 
Suffering slow python runtimes
 
@Mikhail But I'm talking about a really really basic system
I literally have only four combinations of place and value identifiable
Can you hold information without a capacity to hold it?
 
7:27 AM
kinda
 
Suppose we have no registers. Now how do we compute anything?
 
Yes, but the state transitions are a bitch
 
@Mikhail what do you mean?
 
Foremost there is the difference between stack and register machines, but in my case I'm talking about a computer without a clock
Instead of a register you can also have a stochastic state where each register is a device that generates an instance of a random variable.
Also dealing with big data that you can't in principle work with is the topic of compressive sensing.
 
@Mikhail But the notion itself of a variable--is it not connected to a notion of information storage?
 
7:33 AM
These things wouldn't be complete Turing machines (NTM)
anyways, I need to get back to watching python dry
 
@Mikhail ???
what do you mean?
 
user1804599
7:49 AM
Why is freedom of religion explicit in the constitution? It's already a subset of the freedom of speech.
 
Thank you Bartek
 
i hate websites that tamper with my clipboard
 
@BartekBanachewicz ...Is that what them kids are calling it now?
 

« first day (2047 days earlier)      last day (2893 days later) »