« first day (856 days earlier)      last day (4306 days later) » 

09:00
like pedantic/standardese stuff
I still don't follow
if you compile a file, you compile it for either C or C++... you can't compile it half and half
well you could... but that would involve dirty tricks
oh, you mean are there things that they do not agree on
yes, C++ being a superset, at what point is C++ "forked" off of C? C++ is a superset of C99? or what
well sure, but that would as amazing as if Java and PHP disagreed on something, they are different languages, so why should they treat everything the same
@doug65536 C++ is not a superset. It has a few examples of C things that have been removed/broken/changed
it's wrong to think of it like that, it's like asking on what version of Java is C# based
user142019
09:06
Hi.
Xeo
Xeo
@sehe Ryan Higa. :D
user142019
Erlang is awesome.
user142019
Why not.
user142019
xD
user142019
You have >= and =<.
user142019
09:09
Seems logical to me.
user142019
>= is the other way around of =<
@Zoidberg because you say "less then or equal too" no "equal to or less then"
user142019
@thecoshman Why not?
@ScottW Except for floats.
user142019
lol
user142019
09:11
Floats aren't numbers.
user142019
They're objects from hell.
user142019
IMO Float and Double shouldn't be instances of Num in Haskell.
@ScottW They sound like the Nanny?
performance doesn't matter in haskell?
user142019
How is performance related to this.
09:13
@Zoidberg because 'less than' is a more inclusive group and thus take precedence
Performance matters for artists.
you seem to want arbitrary precision instead of floats
user142019
No.
user142019
Where the fuck did you get that from.
@Zoidberg From your mom.
user142019
09:13
I'm saying that floats shouldn't be instances of Num.
Haskell is a solution to problems that do not need solving
ok, forget my comment then
@Zoidberg The whole Num and Fractional and so on typeclass hierarchy sucks.
user142019
Ah well, Num is kinda pointless anyway.
(he he he, that'll get the fan boys going)
that probably goes for all functional languages really :P
09:14
you suck
@thecoshman But, but fibonacci!
@ScottW concurrent programming done more easily
cause side effects
user142019
@ScottW it was made for telecom, mainly.
@ScottW idk squat about erlang but I read you can make incredibly reliable programs in erlang
user142019
Erlang is awesome.
user142019
09:15
lol Telnet.
@ScottW fault tolerance
functional languages are like primitive life, they server no obvious purpose, and seem to do nothing but service
user142019
Fault tolerance? Perl!
@ScottW telecoms is not telnet...
@ScottW ooh, you where trying to be funny
@doug65536 perhaps
@thecoshman Now, now.
user142019
09:17
hahahaha in 13 minutes I have class.
user142019
Time not to go to class.
@StackedCrooked ah now, I genuanly did not realise that was even supposed to be funny
Old here? Do us a favour and don't bore us with "I'm too cool fro school" crap.
@thecoshman I concur
-8
Q: Best programmer

user2082619I want to ask, how to be the best programmer?, I know, I need many practice, but if someone can give me a list of good practice of software engineering and a list of books to improve my skills in programming. Thanks

FTL: good fun, worth getting, damn hard
@TonyTheLion nothing says agreement quite like a star :P
09:20
:)
posted on February 18, 2013 by R. Martinho Fernandes

Now that we can map all indices back and forth between the interface and the storage we can start fleshing out the interface of our tuple. A worthy goal is to provide exactly the same interface as the standard tuple class, so that we can use ours as a drop-in replacement. To member or not to member As planned, our tuple will just delegate the actual storage to a standard tuple. That will be

oh robot has been active
god damn you @feeds (╯°□°)╯︵ ┻━┻
you flip too many damn tables boi
¬_¬ autohot-key... where are you?
09:21
saw that
@TonyTheLion (click my name to being up that thingy)
It's brilliance
an unflipped table ZOMG
@TonyTheLion no, just getting ready to flip :P
@Feeds interesting. never considered that public inheritance enables implicit conversion to the base. obvious now that he mentioned it but good thing to be aware of
09:26
has anyone used ToUnicode before? how large should the out buffer be? 2 wchars? 3? 4?
lol y messed up :p
I know >_>
I always do >_>
@thecoshman MSVC
hmm...
09:27
you messed up :D
@thecoshman Nothing about virtual keys there.
have I got them the wrong way around?
(Also, I'm moving to GitHub.)
@thecoshman yep
apparently so...
09:28
finally
@R.MartinhoFernandes how come?
I swear every month the swap the brackets
so, any idea? how long a WCHAR string could one virtual key possibly translate to? :S
@thecoshman BitBucket wikis suck. Either they are invisible or everyone can edit them. Not very good for putting docs there.
@TonyTheLion CRAP DAMN YOU WHY DIDN'T YOU POINT OUT THE TYPO!
@R.MartinhoFernandes really?
@melak47 Lots. Consider dead keys.
09:29
@thecoshman We've become desensitized to your typos.
2
@R.MartinhoFernandes but can you stack up lots of dead keys? I mean...like ^? I thought only one
Dunno, but people in Asia have weird typing methods. I am not very familiar with them.
@thecoshman what typo?
09:31
@R.MartinhoFernandes why doesn't the msdn page tell me how to use the stupid function ._.
"The parameters supplied to the ToUnicode function might not be sufficient to translate the virtual-key code because a previous dead key is stored in the keyboard layout."
gee, well thanks very much
@R.MartinhoFernandes "typing methods"?
Do you mean how they produce the characters on the screen?
Japanese is phonetic typing with IME and you select a Kanji by pressing space/down, Korean has sections of the keyboard separated by consonant or vowel.
and the function doesn't appear to have a return value for "buffer was not long enough to store the translation" ...blergh
In Vietnam, some keyboard layouts produce stuff in NFC, while others produce stuff in NFD. The latter will need longer buffers.
@melak47 Does it work if you use that convention of passing a null buffer first to get the size?
09:35
@R.MartinhoFernandes that's a convention?
@melak47 Some WinAPI functions I've seen do that.
But it is usually documented.
the msdn page says the function returns the number of chars written to the buffer - if the buffer is a nullptr, how can it write anything
@melak47 It takes a pointer to a size, no?
@R.MartinhoFernandes you should learn Japanese in and use it for testing your unicode library.
@R.MartinhoFernandes ?
it takes an LPWSTR, and a size for that string
09:36
Oh, it takes an int size. Nevermind then.
I'm screwed? or what
I'll give it a nullptr buffer and see what happens :3
Well, 640k should be enough.
for everyone
09:38
@StackedCrooked haha.
@R.MartinhoFernandes >_>
I only want to translate a single stupid key
@TonyTheLion fro rather the for :(
yeah, nullptr is not a good idea
@R.MartinhoFernandes NFC? NFD?
@thecoshman I missed that
09:40
@thecoshman Unicode normal forms.
right
elevated liver function (again)
but no sign of infection
which is nice
@melak47 they are all smart, and all have friends
gallbladder scan on Thursday, and apparently, "gallbladder" means "gallbladder, liver, and pancreas, and a "general look around""
09:41
@DeadMG finger up the bum
not with an ultrasound probe
@DeadMG those things are massive yokes
nice. the virtual key code resulting from pressing "ä" gets ToUnicode'd to a captial sigma. wtf
@thecoshman So I'm pretty sure that they won't be sticking it up my bum
09:43
@DeadMG got to check the prostate
@StackedCrooked filtered
@StackedCrooked No.
a yoke is like a joystick.
@thecoshman "Irish slang for ecstasy tablets."
@DeadMG not in this instance
@DeadMG Does it deliver joy?
@R.MartinhoFernandes TIL, but not in this instance
09:44
@melak47 Bad locale?
@StackedCrooked it will do if it shows a curable disease which causes my symptoms.
Irish coloquism for 'thing' usage, "can I have that yoke for the internet"
@R.MartinhoFernandes it's possible. locale as in C++ output locale?
or windows somethingy or other
may or may not be related: my language bar goes AWOL when I enter my window...
Whatever Windows uses for keyboard layout stuff.
Ell
Ell
I'm alive!
09:48
hm, using "GetKeyboardLayout" to get the current locale thingy doesn't change anything
Don't ask me then. I know nothing about the WinAPI.
if that doesn't work, then how am I supposed to find the currently used layout ._.
Ell
Ell
Oh I was using that the other day
@Ell ? :o
Ell
Ell
For my Keylogger :L
09:50
any idea what I'm doing wrong? :D
Ell
Ell
Nope haha, I just used getkeybiardlayout then
getkeyname or something like that, idk
Xeo
Xeo
The fuck. Why can't I do the following in C#?
Ell
Ell
I can check later but I'm helping to move the fridge out of the kitchen atm
Xeo
Xeo
if(stuff){
  var something = ...;
}
var something = ...;
is there like...an easier way to let a user input unicode text than parsing and translating WM_KEYDOWN messages? I tried just using whatever you get from WM_CHAR messages, but that also gets me a sigma instead of an ä
09:51
Variable names have function scope.
Xeo
Xeo
ew
Ell
Ell
^
I think there is a better way, I just can't remember what it is
No, not quite that.
Something like that.
?
any way to use std::wcin to get text input...without having a console?
@melak47 What exactly do you mean by unicode text?
09:54
@jalf I want the user to be able to enter text. but I have a windowed application, not a console one
so (I think?) I can't use std::wcin? :S
@melak47 but what do you mean by "unicode text"?
@melak47 Correct
You should be able to use WM_CHAR. It should tell you which UTF-16 codepoints have been received
@jalf yes
@melak47 The OS-level stream it represents doesn't exist.
@jalf but I get for example a captical sigma when I enter an "ä"
@melak47 and how do you determine that?
09:56
by printing it to std::wcout :3
(I do have a console window, for debugging)
Ell
Ell
Ooh
@melak47 you mean by going through a couple of semi-random encoding conversions?
yeah, that's reliable
That's wrong.
user142019
09:57
Hi.
Look at the integer value you get out of the WM_CHAR message, and check if that is what you expect
Ell
Ell
Ho
The numbers are all that matters.
Don't print stuff out.
Ell
Ell
Hi ho its of to work we go
Xeo
Xeo
Dafuq
09:58
@R.MartinhoFernandes but..ultimately I need to print stuff out
You're shit out of luck
@melak47 Unicode in the Windows console?
Ahahahahhaa.
@R.MartinhoFernandes not the console
@melak47 yes, but if you look at the input you get from Windows separately, then you can at least check if thati s correct
@melak47 Well, forget the console, then.
09:58
once you know that your input is received correctly, then you can look into why your output is wrong
Just check that the numbers are right.
user142019
Today is almost a wonderful day.
don't take input and immediately forward it to output without looking at the intermediate value
user142019
The "almost" is due to the fact that it's Monday.
@jalf I actually want to print it by drawing it with DirectDraw, eventually. :D
09:59
ä is U+00E4, btw.
every one break fro b'fast
If it is, you can forward that to any place that can actually handle Unicode output and have it work.
@melak47 ... is that relevant? The point we are making is that until you've checked that you receive the right integer value from WM_CHAR, you can't assume that WM_CHAR is broken (which it isn't)

« first day (856 days earlier)      last day (4306 days later) »