« first day (1867 days earlier)      last day (3074 days later) » 

user406009
3:00 AM
That will probably occur just about when the universe starts to end.
 
Ell
Definitely
 
user406009
Right before the modules TS is published.
 
I'm taking a look at Expression Templates because I'm learning Grammars and Automata
Bad idea
 
user406009
Supposedly the Eigen matrix library was able to use them to great effect.
 
Ell
Boost spirit you can't forget
 
3:10 AM
Anyone here know how to convert a double to a byte array and then back manually?
As in using things like Bitshifting?
 
user406009
@SuperstarGamer-Trent Just cast the pointer to char* or unsigned char*.
 
Ell
You can't use bit shifting for that
 
user406009
It's actually fully legal in the standard.
 
But I want to use bitshifting
 
Ell
You can't
 
3:10 AM
Something like with a long
 
Ell
I dont think
 
Is there a way to convert a double to a long since they are both 8 bytes?
 
Ell
It doesn't make sense really
 
user406009
Yes, you can directly cast the pointer with reinterpret cast.
 
user406009
It's technically illegal C++ though. Undefined behavior.
 
3:11 AM
@Ell I'm doing networking, that's why I want to convert everything to raw bytes
 
Ell
@lala which means you don't tell people to do it :P
 
user406009
@Ell Sometimes you have to do tricks like that.
 
Ell
@Lalaland no you don't
 
user406009
Especially when you want to write fast math functions.
 
I have a method already, but maybe I'm using it wrong. That's why I came here to find another solution that would be better.
 
Ell
3:12 AM
Undefined behavior means anything can happen
 
My current method is converting the double to a long, then writing it, which works fine.
But reading it is the hard part.
I know how to convert longs back to doubles, but for some reason it won't work from my side if I use the buffer.
It's weird too, because if I write a normal long then read it it prints out fine.
Ima try doing the max value and see what happens, maybe something happens with bigger integers.
AHA
SOMETHING IS NOT WRITING
If I do the max value of a long everything breaks.
 
user406009
@SuperstarGamer-Trent Make sure to check the sizeof(long) on your platform.
 
user406009
It could be that sizeof(long) < sizeof(double)
 
Ell
@lala a working programme is better than a fast one
 
It's 8 bytes for me, I already checked.
 
Ell
3:15 AM
Is it 8 bytes for the computer on the other end?
 
user406009
@SuperstarGamer-Trent I would also recommend using a uint64_t.
 
I'm doing it on the same computer
 
user406009
That way you have a guarantee on the size.
 
Ok
But still, something goes wrong when the long gets bigger...
Also @Ell I'm working with buffers right now, these buffers are what convert everything to raw bytes for me for the networking.
 
Is it a decent idea to use Expression Templates to process Natural Language? I mean, grammars are useful to model grammar.
 
3:17 AM
OH god my system is broken
 
user406009
@VillasV I don't think that would help you at all.
 
I did "9999999999" and got "1410065407" when reading it
 
user406009
Anything you can do with expression templates at compile time you can do with a simple parse tree at runtime.
 
Ell
I'd have to see some code
@GregorMcGregor now I don't appreciate that tone, mister
 
3:18 AM
How do I tell VS that I want it to link symbols from another project that isn't a lib? (Test project linking against tested project)
don't tell me I have to add all of them as additional dependencies manually
 
@Lalaland So why would anyone use ETs? Just to try to optimize the expressions before compiling?
 
user406009
@VillasV Yes IIRC.
 
Man, bitshifting times were scary! (Jontron reference)
 
Why would you use ET when you can use accumulators like += etc
 
IT'S ALIVE, THE BITSHIFTING WORKS
TURNS OUT MY BUFFER WAS READING EVERYTHING AS AN INT SO EVERYTHING READ NEEDED TO BE CASTED TO A LONG AND IT FIXED IT
My life is complete
 
3:21 AM
more caps
 
Oh thats right sorry
I'll stop using those
 
@Lalaland that is awesome and lame at the same time
 
user406009
@VillasV Well, more speed is always awesome.
 
user406009
@SuperstarGamer-Trent You might also need to be careful about endiness.
 
@Lalaland It's always big endian
 
user406009
3:25 AM
Depending on the platforms that you are trying to communicate between, you might need to swap the bytes.
 
If you do top to bottom it's big
If you do it from bottom to top its little
For example, if you encoded a short as such
 
user406009
Oh, you are manually shifting out each byte?
 
(byte) (s << 8); (byte) (s << 0);
Then thats big
 
Ell
@VillasV you can do more than that
 
(byte) (s << 0); (byte) (s << 8);
Then thats little :)
 
Ell
3:26 AM
You can write DSLs
 
But Minecraft: Pocket Edition reads everything in Big endian.
 
Ell
Sleep time though
Night all
 
@Ell good night
Don't let the C++ bugs bite
 
@Ell Write a DSL processor? How? Compile the input using the DSL grammar as headers?
 
nite @Ell
 
3:46 AM
Guh
I wrote something wrong in the protocol I think
If I write a ping Id of 666
It'll return 249857409735623409732973-49759346432-9653
Or something stupid (without the dashes of course)
If I read more than one byte (The packet ID) there is no EOF strangely, maybe because the buffer is just returning -1
Wait wrong chat
This is java I'm talking about now
k bye
 
4:37 AM
> The processor in the charger is a MSP430F2003 ultra low power microcontroller with 1kB of flash and just 128 bytes of RAM
128 bytes of RAM omg
 
:P /cc @Borgleader @TonyTheLion @ThePhD @ScottW
@Borgleader :3
 
5:25 AM
> efficient way of using temoprary array in CUDA kernels
temoprary
 
@GregorMcGregor excellent word choice. Original, 10/10
 
the question is actually interesting
I mean it could be worse
 
5:39 AM
This 3rd party store keeps on wanting to see my data @ app store & google play. I have revoked their rights long time again, but they refuse to let me remove connections on their own site. Oh well, if they insist on seeing 0/rejected, they are free to do so.
 
6:02 AM
temoprary arrya in cuad kenrels
 
@chmod666telkitty in android 6.0 you can allow/deny specific app permissions which is a welcome change IMO
@GregorMcGregor just push/pop to the gpu heap
 
@GregorMcGregor .. and it's 16-bit, so that's 64 words.
 
@nick not as a user :p as a publisher ... the site wants to see my download/financial data
 
@chmod666telkitty lol
why not just stick with google play?
unless maybe you're trying to sell on amazon's app store thing
 
Hi Chat, small question: I wanted to include the LDAP to my Qt project. I found these microsoft sources (msdn.microsoft.com/en-us/library/windows/desktop/…), how do I use them?
 
6:14 AM
I have had apps on apple apps store/google play & windows store for years
too lazy 2 change
Also ...
Onion is all about recursion:
 
that was deep :P
 
you peel the outside of onion, you get a smaller onion, then you keep on peeling until you reach the inner most ...
yes, onions can be very deep ~_~
 
@buffo Like any other source? ._. Include, compile, link?
 
hey babe
 
@GregorMcGregor Wrong question :} where do I get the sources
?*
 
6:23 AM
do you read documentations often?
 
@buffo What sources
It's the documentation for the LDAP lib that ships with windows
 
@GregorMcGregor I want to include a LDAP lib in my qt project to connect to a server
so I need at least a header, don't I?
 
Yeah, the docs says it's Winldap.h
So that's likely in the windows sdk or windows itself
Docs says it ships with the Platform Software Development Kit
I have no idea, perhaps yes
 
@ScottW A+ for effort
 
Ah thanks a lot, I didnt know it was that easy
 
6:27 AM
always here for you buddy
scott it looks like I'll pass you in rep within a month or two
 
> can anyone let me know why this question was voted down? I was so polite to ask, does it look stupid?
 
step up your game
 
> it's hideous
LOL
 
ouch
 
I am calculating the time ... maybe within 15 minutes from now on ...
 
6:48 AM
NSW motorists could be fined if their phones aren't charged - digital license! (now we know how fast you are going ...)
 
7:36 AM
@Morwenn which one?
 
Chat is cached, and lounge is cached to this:
 
oh wow, November slipped me by real fast
 
I am constantly reminded how much you guys love me ;)
 
this year slipped real fast
 
Yeah... wasted :\
 
7:57 AM
you know what coshman
what you gotta do
is
fuck it, I'm too sleepy to write anything inspiring
 
5
A: Dividing by zero in a constant expression

user2357112The compiler is not allowed to crash. At most, it is permitted to assume that the expression will never be evaluated, and thus, that execution will never reach the given line. 1 / 0 is only UB if evaluated. The C11 standard gives an explicit example of 1 / 0 being defined behavior when unevalua...

interesting
 
8:17 AM
as you age, years will go pass by even faster - you know relativity, since you slow down, same duration seems to be quicker
 
Grammar is also relative
 
@sehe Depends
 
@chmod666telkitty cool
 
> I’m writing to extend to you an apology; please permit me to explain.

I am the author of “TransformationTraits Redux”, published as WG21 document N3546 (http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2013/n3546.pdf), which was (with a technical correction) adopted into C++14. I also contributed to two related successor papers that were adopted for C++17:
• “Consistent Metafunction Aliases” (N3887) by Michael Park, and
• “Variable Templates For Type Traits” (N3854) by Stephan T. Lavavej.
Woah.
 
8:34 AM
send back an inflammatory email threatening of legal pursuits
 
user1804599
Hello.
 
@R.MartinhoFernandes you got this apology?
 
user1804599
Amulet of Vendor.
 
@TonyTheLion Yeah. From Walter Brown.
 
@R.MartinhoFernandes Amazing
 
8:40 AM
He'll be promoted to Walter Gray and later White when he becomes a better C++ wizard
 
user1804599
 
@GregorMcGregor yj#16F w7yH5
Oh, lol
I'm an idiot.
 
@R.MartinhoFernandes Pretty coolio :D
 
8:43 AM
Does that say Walter Brown
I can't read Arabic
 
@GregorMcGregor I am dissapoint
 
@GregorMcGregor It's Tengwar.
 
Is it a dialect of Urdu
 
> makefile:17: *** missing separator. Stop.
:(
 
8:46 AM
@R.MartinhoFernandes who is walter brown?
 
that guy?
 
@Dean yes
 
cool
 
I like the bias:
> The western world can't find anyone to support in Syria who isn't an asshole
 
Maybe the western world is the asshole?
 
Phonemically correct transcription.
Way too much time on my hands.
 
Wait you drew that?
 
No.
Typed "oj^1O6 w7yM5" and used a special font.
 
8:54 AM
wouldn't mind using some of that time to head to post office would you?
 
oh wow
 
don't donate reddit gold
it's meaningless and money is spent for their servers
 
@Dean ... that's what it is for
"Don't give people money for X, they use it for X"
 
@thecoshman yes but reddit produces crap
so you're basically founding a shitfactory
 
@Dean no, reddit produces nothing, it simply hosts content and links to content that users produce
 
8:56 AM
my grandfather uses shit to fertilize his fields and grow crops, give your money to him instead
crops > craps
 
user1804599
You don't give someone reddit gold because then your money goes to reddit servers.
 
user1804599
You do it because you like the receiver of reddit gold.
 
@Elyse ... how nsfw is this?
 
fat person nsfw
 
user1804599
8:57 AM
@thecoshman naked cat
 
oh I get it, very 'funny'
@GregorMcGregor not sure what to make of it really
 
user1804599
Giving your grandfather money does not help the person who posted a funny reddit comment.
 
@thecoshman So many things!
 
@GregorMcGregor curious about power consumption...
I think I saw that it has a SATA port now
which really is cool
 
We used Raspberry Pis attached to HD cameras for streaming at a LAN party
these things are super powerful
 
8:59 AM
:)
 
user1804599
@thecoshman yes funny indeed :D
 
user1804599
I had a dream about French kissing last night.
 
getting old sucks but at least the more I get old the less I care for girls and people's admiration. I simply don't give a fuck anymore.
 
It is adorably small now
8
 
@Dean have some love <3
 
user1804599
9:00 AM
ugh, Python name mangling is broken
 
user1804599
If you have two classes with the same name but in different modules, and one inherits from the other one, you can still have name conflicts with names starting with but not ending with __.
 
@ScottW and optimism
 
Oh, I'll have to see if I can pick up that mag on the way home
free computer!
 
@Dean Man, you're sour like vinegar
@Elyse You need to get laid, bby
@TonyTheLion Here's your today's recommended dosage: <3 <3 <3 <3
 
@ElimGarak elim pls demonstrate
 
9:05 AM
@ElimGarak <3 <3 <3 <3
 
@GregorMcGregor It is known that I am against coitus. :P
 
@Elyse which one?
 
@Mr.kbok The one where she sticks her tongue in your mouth and you pretend to like it.
 
French kissing is amazing :)
 
lol /cc @Bartek
 
9:07 AM
Personally I had a dream about metro train derailing and climbing the stairs
@ElimGarak well, that... answers the question
 
Personally I had a dream about being loved by Loungers
:D
 
@R.MartinhoFernandes what funny?
 
@thecoshman "Your app will be packed with features that no one can use!"
 
@GregorMcGregor wow
 
@R.MartinhoFernandes vOv meh
 
9:11 AM
2015, people still sour over USS Enterprise-D getting rekt in Generations.
 
Worse thing about android is that I don't think there's an easy way to have degrading apps. You can't write something that can take use of a new feature, but can fall back if installed on an earlier phone that doesn't have that.
 
Worst thing about Android is Android :/
 
@ElimGarak StarTruck sucks, move on
 
@Mr.kbok so amaze
@TonyTheLion thanks
 
@GregorMcGregor not sure if sarcasm...
 
9:17 AM
> I started learning programming without syntax highlighting (on a monochromatic display), and actually find it distracting to read multiply-coloured text. In fact I tend to close my eyes whenever I "mentally execute" code, as then I'm visualising variable values and output instead of the code itself.
:set trippy
 
@TonyTheLion probably a safe bet
 
@GregorMcGregor Can that guy imagine how much he sucks or does he require visual aids?
 
Visual AIDS
3
 
Hepatitis C++
2
 
Hi guise
 
9:26 AM
hi pepito
 
sup chiquito
 
hello homo sapiens
 
gawd, I hate deliveries on Friday, they always miss.
 
Just did the leg workout B)
 
Me too, walked over to the coffee machine
Unfortunately, it cannot be accessed over the network.
 
9:31 AM
Someday it will... Someday
 
@ElimGarak ... It's Thursday
 
you are not a vegetable, your brain is designed for movements
 
user1804599
@thecoshman So?
 
@thecoshman I know, but my delivery is slated for Friday... Which in my country is usually a miss until Monday. :(
 
whoever set you that deadline expected you to work over the weekend
so easy to see
 
9:36 AM
Stupid exchange rates.
 
Looking forward to write speeds of 1.25 GB/s and reads up to 2 GB/s. :D
Should help immensely with 4K porn.
 
@ElimGarak Obviously
 
"You can not star your own messages" well that's just a flat out lie. I can, and I did, but you came along and took it away from me like the big fat bully you are.
 
Make a star sock puppet
 
thestarman
owners can actually star their own messages if they want
By pinning, they put a star on it them selves, they can then unpin, and it will leave their star
 
user1804599
9:45 AM
lol
 
Yeah, more drinking, less soldiering <3
 
What country is this
I want names
I'm kinda guessing though
 
It sure isn't france though
 
inb4 USA
 
@TonyTheLion That's one, yeah.
 
9:58 AM
alcohol should be available to child soldiers
 
Any muslim country as well, coz you know, driinking alcohol is always forbidden there :)
 
Nah, in the UK you can
 
The legal drinking age is the age at which a person can consume or purchase alcoholic beverages. These laws cover a wide range of issues and behaviors, addressing when and where alcohol can be consumed. The minimum age alcohol can be legally consumed can be different from the age when it can be purchased in some countries. These laws vary among different countries and many laws have exemptions or special circumstances. Most laws apply only to drinking alcohol in public places, with alcohol consumption in the home being mostly unregulated (an exception being the UK, which has a minimum legal age...
 
(Also that's not true, Turkish people are known to drink a lot, same for Indonesia, biggest Muslim country, and others)
 

« first day (1867 days earlier)      last day (3074 days later) »