« first day (920 days earlier)      last day (4035 days later) » 

11:03 AM
-3
Q: C compilation errors

user2310758I have to write a program in C which calculates and displays the following expression : P=1*2*(1/3)*4*5*(1/6)...*.... I tried running this code ( this is the whole code) but I cant compile it because it shows errors in the fourth and eleventh row in C++..What am I doing wrong? #include <stdio.h>

^^ ow...
 
@ThePhD Yes. Technically you could use auto_ptr as well.
 
@Xeo what the fuck
 
lol
 
user1357851
11:05 AM
@Mysticial Let me guess at least half of the questions are in one of those areas:(hashtable/hashmap, threading related, pointers manipulations - for speed or space concerns like swaping or rearrange pointers, parsing URL or some question best answered using recursion).
 
@DomagojPandža From the developer which brought us Aliens: Colonial Marines and Duke Nukem Forever
 
Xeo
WTF is this nonsense? — Lightness Races in Orbit 1 min ago
He mad.
 
who's good with memory management who can spot the lines I am being naughty on?
 
April Fools posts get deleted
 
11:06 AM
Borderlands was cool.
 
@Telkitty Your guess is completely wrong. I had only 1 question on speed or space.
 
so why does this bullshit nonsense about "pets" get upvotes
 
No hashing, no threading, not pointers.
 
@NathanDaly The ones with stars, new or delete in them.
Next.
 
@R.MartinhoFernandes On the whole, yes. But they don't have a great track record with, well, anything else
 
11:06 AM
 
user1357851
@Mysticial nothing to do with recursion at all?
 
@Telkitty I had a LOT of math questions shot at me despite my position being completely unrelated to math.
@Telkitty No recursion at all.
 
@jalf Yeah, DNF and A:CM were just garbage.
 
@jalf Borderlands was okay. But seriously, strategy games? I am hopeful, as always, but realistically -- it's not going to end well.
 
user1357851
what kind of maths problem
 
11:08 AM
So every time I use QSpacerItem* horizontalSpacer = new QSpacerItem blah blah I should call delete on it after? (Just started with memory management)
 
@Telkitty I had no basic programming questions, 1 question of speed/space. At least 3 math and numerical questions. Countless people-skills questions. And an algorithm design question.
@Telkitty Mostly numerical stuff.
Any the job I was applying for had nothing to do with numerical computing.
 
@NathanDaly No, every time you use new you should feel bad. Every time you use delete, you should change your code to not do so.
 
@NathanDaly No. If you are calling delete every time "something" you are doing it wrong.
 
With Qt specifically, they've got their own memory management scheme
 
@sehe I read your feedback. I like to experiment with different ideas. I thought it would be cool if pressing ENTER in the command line would invoke the command immediately. This way it acts more like a real console. Maybe I can enable newline with shift-enter.
 
11:09 AM
@NathanDaly Every time you use new QSpacerItem you should pass it immediately to some object that takes ownership of it.
 
The first constructor argument typically specifies a parent, and parents will delete their children when destroyed
If and when you don't use this mechanism, you should either not use new, or if you do, wrap the result in a smart pointer immediately.
 
I'm also considering a toolbar on top so that I have more place for various commands.
 
@jalf How do I create a new instance of an object without new?
@jalf As in it's own garbage management? Hmm I'll look into that thanks
 
In Qt ownership is not always clear in my experience.
 
2 days ago, by Luc Danton
Depends what kind of variable you want. In C++, keep in mind everything works as int does.
 
11:12 AM
@NathanDaly std::vector<int> vec <- creates a vector without using new. QSpacerItem qsi(arg1, arg2, arg3, whatever); creates a QSpacerItem
 
@jalf That is if I'm certain that Qt won't automagically find my object and delete it. I'd rather have a leak than a double delete.
 
@Telkitty The Apple interview I did was a bit different. There were like 7 sections each an hour long. Only the first one had any coding in it. The next few were performance design and debugging questions. Then came management and project strategic planning question. Then at the very end was people-skill questions with the highest-level managers. (by "highest-level", I mean like 2 guys down from Tim Cook)
 
Excuse my ignorance but what is a smart pointer?
 
@NathanDaly It's like those life-pro tips.
 
user1357851
@Mysticial I am not going for any interviews :p
 
user1357851
11:15 AM
@Mysticial I am interested ... what kind of numeric stuff (you do not have to post original question because it is confidential)
 
@StackedCrooked Sure, but as I said, this is if/when you don't use Qt's own memory management stuff
 
QSpacerItem* horizontalSpacer = new QSpacerItem(500, 0, QSizePolicy::Minimum, QSizePolicy::Expanding);

to:

QSpacerItem horizontalSpacer(500, 0, QSizePolicy::Minimum, QSizePolicy::Expanding);
stuff like that?
 
@NathanDaly Better check with the docs.
 
@Telkitty They were kind of like, "Here's math function. How would you implement it - without the help of the internet."
 
@NathanDaly It depends on the semantics you want, but yes, to create a QSpacerItem on the stack, that is what you would do
 
11:16 AM
@StackedCrooked Will do, just Qt and memory management leaves me a little bemused
 
of course, when you do that, it will be destroyed once you leave the scope it is declared in
 
user1357851
@Mysticial Haha, they expect the pi(e) guy to be good with maths :p
 
@NathanDaly sounds like memory management in general, not just in Qt :)
 
@Telkitty So if I didn't remember how to derive Taylor series formulas and Newton iterations, I would've been screwed.
@Telkitty Not necessarily. I just take the formulas from online and use them.
I rarely derive anything myself.
 
@jalf Ok thanks, C# programming at Uni so I missed all the important stuff on memory management :/
 
11:18 AM
@Telkitty And it wasn't just being able to derive the formulas, it was also pointing out all the gotchas and corner cases that would screw up the algorithm. An example being that X algorithm, is numerically unstable. So you need Y transformation to make sure it always works.
 
@NathanDaly int x = 0;
 
Anyways, almost 6:30 AM here. I should get some sleep.
 
@Mysticial Night!
 
When would "new" be appropriate in C++?
 
Gah, wrong quote. Too tired.
 
11:23 AM
@NathanDaly rarely :)
 
user1357851
@Mysticial k, laterZzz
 
@NathanDaly With C++11, almost never, since you have smart pointers, most notably unique_ptr which is gold. In olden C++, in your implementations which reimplement smart pointer functionality (or at least, just implementations of your classes which RAII their way out of the scope, so "user" code doesn't see stars) or really low level stuff where you need lots of unimpeded control over memory, like rendering architectures and the like.
 
When you place an object on the stack, its lifetime is limited by the scope in which it is declared. To get around that, the object must be on the heap, and one way to ensure that is to call new. But usually, you'll want to let some library class do that for you, because it can ensure that the matching delete is also called at the right time. So even then, you'll typically not actually use new directly
 
@StackedCrooked A double delete will usually crash. I find that preferrable to being honest.
2
Failing early in the development cycle is a good thing.
 
11:25 AM
@R.MartinhoFernandes There should be a triple delete, just for safety. :P
 
hahahahhahahahaha
 
@DomagojPandža Thanks you for all the advice @jalf but unique_ptr's are new ground for me so will have to go and do some research
 
Now I sound like an idiot.
 
@R.MartinhoFernandes I believe the starboard was invented to pin self-incriminating statements out of context. :P
 
Wait, why did I edit it to sound like an idiot?
 
Xeo
11:27 AM
lol
That "string::front() and string::back() should be valid for empty strings"-guy is kind of irritating me.
 
Does Qt have functions taking both a sink argument and e.g. QString?
 
@Xeo Some programmers are just flat-out idiots.
 
Thanks guy and especially @jalf @DomagojPandža and @StackedCrooked for your help :)
*guys
 
Xeo
I think we should just let that topic die...
 
I didn't even touch it :P
 
Xeo
11:32 AM
I hope the guy that keeps responding to him also sees it that way.
 
Xeo
@R.MartinhoFernandes I somehow have the urge to yell that into his face.
@R.MartinhoFernandes That corn...@google.com guy
 
It's the kind of people that design the kind of insane "convenient" behaviours people complain about in languages like PHP, Perl, or JavaScript.
 
I feel bad for people who answer a question thinking they got it, then someone tells them "nope, that's wrong", and instead of giving it another thought they just delete their post
 
@Xeo You should just slap him down on the basis of back() being absurd and just forget such douchebags.
 
11:37 AM
@refp Maybe he deleted it while he considers the problem?
 
how can't the author of the above see that all he needs to do is to change - to %?
@R.MartinhoFernandes I didn't even know that you could do that (revive a deleted answer, that is)
 
@refp If I had to guess, I'd say its the bandwagon effect of downvotes.
 
@DomagojPandža it doesn't have any
 
Xeo
> A local class of non-closure type shall not have member templates.
 
@refp Yeah, you can. I have actually done this exact thing before: delete the answer temporarily while I fix some mistake that I really don't want out there in sight.
 
11:39 AM
Precisely, and "Nope, that's wrong" has the tendency to call in the sharks. Bail out and lick your wounds somewhere else, then come back when you fix it.
 
Xeo
keke, if I make my lifting-lambda a closure type...
 
Hmmmm....only 1 point for an upvote?
 
> As for you you may build one template function over another template function. It is you problem. Why are you tryying to force others to write a bad code?!
That is hilarious.
 
It is you problem. You should document yourself about C++ and you will see.
 
Xeo
@R.MartinhoFernandes Ah, "a code" is back...
 
11:42 AM
@R.MartinhoFernandes I will try to reminder that next time I make a brain fart in the rush of writing a good answer, thanks
 
Fixed an optimization bug that reduced the running time from 11hrs to 15 min. lol
 
@TonyTheLion Ahahahah
 
@TonyTheLion What's an "optimization bug"? A pessimization? Or just a bug introduced when optimizing?
 
The ways of doing a lookup was key.
hahaha
@R.MartinhoFernandes No, a bug in writing code that was very slow.
 
11:45 AM
@TonyTheLion what was the fix, removing a bunch of sleeps?
 
In my line of work, 1/30 of a second is bad. :(
 
Xeo
Taking a few 0 out of the duck-loop.
 
@refp using map.find instead of std::find_if
 
@TonyTheLion hahaha
 
where it went through a map of millions of items
 
Xeo
11:46 AM
woah.
 
> "If you look at our audience, they love pizza. I mean, who doesn't? It has international appeal, and Pizza Hut is a recognised brand that matches up well with the Xbox brand."
 
@TonyTheLion classic, I've seen that in practice as well (inside a template with the argument; "but this will work for all containers foozbarasidjio"#!DAS!"#")
 
Wait, I know that guy -- Vlad from Moscow.
 
@refp made me realize the importance of using the right algorithm for the job
 
11:47 AM
@DomagojPandža You do? How so?
He's hilarious.
 
Someone linked another fail from him, here. I guess it wasn't an isolated incident.
 
I mean, you cannot take what he writes seriously. SAN is too valuable.
 
@TonyTheLion 11 hours to 15 minutes, that sure is one for the books
actually it sounds way better than it is (even though it makes a huge difference, the new code is about 40 times faster) because 11 hours is a really long time, and 15 minutes is more like a bathroom break (after eating mexican food)
 
Xeo
Hmm.. robot? Did you take a look at my updated proposal?
 
Xeo
11:52 AM
Clearer? :P
 
Gander is a Canadian town located in the northeastern part of the island of Newfoundland in the province of Newfoundland and Labrador, approximately south of Gander Bay, south of Twillingate and east of Grand Falls-Windsor. Located on the northeastern shore of Gander Lake, it is the site of Gander International Airport, formerly an important refuelling point for transatlantic aircraft, and, to this day, a preferred stopping point for transatlantic aircraft that need to land because of on-board medical or security emergencies. Most of the streets in Gander are named after famous aviat...
 
I installed ClangVSx, it compiles code, even with Windows.h, but I can't run program from IDE (without building it with VC++) and it doesn't produce debug symbols =(
 
Xeo
hmm... memo: I should not have the [](<operator>) syntax in the technical specification part, if I only introduce the idea a section later...
 
I wonder what will happen first - VC++ with full C++14 support, or usable clang for windows =\
 
Xeo
latter
 
11:58 AM
@Abyx lol
 
@Abyx Ahahah, Clang will spontaneously adapt itself to Windows before VC++ even gets C++11 support. VC++ with #14 support will be a marker and a sign of the end times.
 
I haven't tested latest clang from trunk yet.
> Btw, which Shift-JIS characters were you saying didn't exist in Unicode?
@DeadMG I grepped everywhere but did not find what he is referring to.
Do you have any idea?
 
Also, another question spawns from that... Will MSVC11 C++11 support come before or after Zoidberg finishes a project?
 
does anyone use mingw for development? (anyone except @rubenvb ;)
 
I test ogonek on it.
 
12:04 PM
@R.MartinhoFernandes How's ogonek coming along?
 
by "development" I mean full ALM cycle -- writing code, compiling, debugging (incl. postmortem debugging)
 
Used to be my primary platform, actually.
@Abyx Never needed postmortem, but I did all the rest.
@DomagojPandža I have a lot of stuff implemented already, but I am currently undergoing a major refactoring to add a lot of static checks and to support optimized paths in certain statically-detectable situations.
 
well, maybe it's ok for a library with good unit-test coverage
 
@Abyx You may try CMake + QTCreator + Clang/mingw
 
@DomagojPandža I plan to tag a 0.6 version when I finish this refactoring (I estimate sometime by next month, depending on real life intermissions) and that will be the first time I will have a more or less freezable API. I still plan to release 1.0 sometime around the finalization of Unicode 6.3, which is planned for Q3 this year.
 
12:10 PM
@EvgenyPanasyuk do you use them?
 
@R.MartinhoFernandes Oh, a relatively stable/consistent API sounds nice. IIRC, it's also mostly header-based?
 
@TonyTheLion heh.....
 
@Abyx I use CMake + VS for development. Occasionally I use QTCreator for that project on Linux - it understands CMakeLists.txt stuff OK. I know that QTCreator works OK on Windows, and I heard that it supports CLang too.
 
NIce.
 
@DomagojPandža Yeah. The character data is compiled as a bunch of arrays into a library, but the algorithms are all in headers (most are templates anyway).
 
12:20 PM
Hmm, that has the potential of faster compile times. Don't know why, but I've never opted-in to header-based libs, probably because it doesn't really fit with a bit more complicated rendering architectures.
 
I don't have much choice anyway. The whole motivation for the library is to get the compiler to enforce as much as possible regarding matching encodings, conversions, normalization, etc. That means templates. A few things could be put in a .c++ file, but it feels weird to have two lines of code in a .c++ file and everything else in headers.
If I take away the opportunity for having the compiler enforce that, I am no longer writing the same library.
 
@refp It's one I'll remember, that's for sure.
 
I could get something similar with runtime checks, which is similar to what Ruby does (except IIUC Ruby doesn't actually check anything so all you get is a fucking mess).
But that isn't really as interesting.
 
@R.MartinhoFernandes Sometimes the user of the library can fix this by only including your header files in his cpp files.
 
@StackedCrooked Yeah. ogonek::text is intended to be used in interfaces, but even then you actually avoid this using the type-erased variant, ogonek::any_text.
 
12:42 PM
^ Where's that from?
 
Xeo
@kbok Zack & Cody
 
Thanks :)
 
@isocpp
ISO C++ standards committee - ISO/IEC JTC1/SC22/WG21
321 tweets, 3.4k followers, following 0 users
a whole bunch of the adopted papers listed here
and they're actually publicly available now instead of only to me
 
@DeadMG tl;dr
 
user142019
Now if only the page would load.
 
user142019
12:50 PM
Oh nice.
 
buffed constexpr, generic lambdas, return type deduction for normal functions, those papers are now all available
 
@StackedCrooked can you take a look at a qt file of mine and point out possible memory leaks )
 
@DeadMG Thanks, I probably would have missed that
 
user142019
> Since we moved binary to the compiler, this no longer applies for more than one suffix.
 
user142019
What does that mean? UDL proposal.
 
user1357851
12:54 PM
 
user142019
Does C++ have binary literals? :v
 
it does now
 
user1357851
Someone should have piglets as user's avatar, equally tasty
 
user142019
cooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo‌​oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooool
 
12:56 PM
@Zoidberg operator"" _bit - 10010101_bit
 
@ScottW So readable.
 
user142019
0b1111_1111
 
Binary literals are meh
 
0xC88 and 0xFF are so much beter...
 
Hex wins.
 
user142019
12:57 PM
Duodecimal ftw.
 
user142019
Erlang has arbitrary base literals.
 
And even in the few (nonexistent?) cases when hex is not more readable than binary, this helps where, exactly? Don't tell me you need to use magic binary strings all over your code.
 
0xDEADBEEF
 
0xCAFEBABE
 
@ScottW how remarkably silly
 
user142019
12:58 PM
0xDEADCAFEBABE
 
0b00111000,
0b01000100,
0b00000100,
0b00000100,
0b00001000,
0b00010000,
0b00100000,
0b01111110,
// that's what binary literals are for
3
 
user142019
2!
 
@Zoidberg Overflow error
 
0xDEADBABE
 
user142019
0xBEEFCAFE.
 
12:59 PM
0xBEEFBABE
 
@Abyx Sad it looks so silly on the starboard.
 
0xDEADD00D
 
@R.MartinhoFernandes yep, I wonder who starred that %)
 
Xeo
@R.MartinhoFernandes The only argument I saw for it was... embedded.
 
0x0B00B1E5
 
1:01 PM
Dead beef is the winner.
 
@Xeo What do you mean? It's ok to use magic strings in embedded? Long strings of zeros and ones are somehow magically easier to read when your code will be run in some weird device?
That's not an argument.
 
@R.MartinhoFernandes It's socially acceptable to write unreadable code on less powerful devices vOv
2
 
Xeo
I didn't make an argument. I just said that that's the only argument I saw someone make
 
Could someone tell me if this example here is UB (Fred's answer)? If I understand correctly, lower_bound (in the hex_to_string function) returns a pointer to the last element+1 if no element is found and that element should be accessed because it isn't really a part of the array.
 
@kbok Exactly: it should not be.
It's still code.
 
user1357851
1:02 PM
More Ghost in the Shell pics:
 
user1357851
 
Would be a great name for a coffee bar for programming geeks: 0xBABECAFE
 
whistles I need to replace this with my bit twiddling templates :S
 
@Neil You get a problem that needs resolving in C++* on the entry terminal which you use as a way of qualifying.
 
Not sure if I want to hang out at a coffee bar for programming geeks
 
1:05 PM
Well, I wouldn't mind a real Lounge<C++>. As long as we get to kick out Telkitty.
 
@kbok If the cool kids hung out there, it wouldn't be a programming geek coffee bar, now would it?
@DomagojPandža Which would be?
 
@Neil Depends on what you call "cool"
 
@Neil It's "Hello, World" but if your program contains using namespace std; you're denied entry.
 
@kbok Not a programming geek.
 
I like to get drunk with a bunch of pretty girls and discuss templates with a bunch of programming geeks. Not the other way around.
 
1:07 PM
user image
5
 
@R.MartinhoFernandes If you're writing perhaps the default values you want to go into some 8-bit micro's control register of all flags, binary is probably more readable than hex
 
user1357851
@DomagojPandža Maybe you should build the first software development monastery - it would be awesome. Hahaha!
 
user1357851
Can monks play computer games?
 
@Collin I'll just ignore the subjective bit, as don't think eight bits are more readable than two hexits (maybe I grew to used to reading hexits) and give a different argument. It doesn't need readability in the first place: it needs a name. The literal itself will only appear in one line of the code.
 
user1357851
Monk-y ... monkey
 
user1357851
1:12 PM
if you are like a monk, then you are monky which sounds exactly like monkey
 
Also, where the fuck did I place my bit twiddling templates :S
I thought gist but seems not.
 
user1357851
Got to take a shower ... 2 sweaty from jogging
 
@Telkitty Not an image we want etched in our heads.
 
ahahahahah
@R.MartinhoFernandes you have templates to do bit twiddling? What's it templated on?
 
@DomagojPandža TBH I wouldn't want anything etched in my head.
 
1:18 PM
@TonyTheLion Dammit, I swear I posted a link to it on some pastebin here before, but can't find it (it appears I use the word "bit" too much on this chat).
@Bartek was it for your benefit that I posted it?
Or was it @ThePhD
 
ah I see
cool
 
Xeo
> closed as not constructive by ben is uǝq backwards, Manishearth, Lightness Races in Orbit, hims056, psubsee2003 2 hours ago
@LightnessRacesinOrbit: You suck.
 
Hmm, I forgot a detail.
 
y'know, robot, I think you might be on the winner here
provide both encoding-erased and encoding-specific versions of string.
 
1:35 PM
^ yet another example of suckage from lack of concepts :/
 
so, out of curiosity, what about concepts lite don't you like?
because here you are complaining about a lack of concepts, but it seems the lite version they want to introduce, isn't good enough or something?!
 
@R.MartinhoFernandes Just read that.
 
@R.MartinhoFernandes "Mit freundlichen Grüßen" lol
 
I was about to ask you about some details of exactly how collation and SWOs interact
 
Both L3 and L4 op< define SWOs. They do, however, define different SWOs.
 
1:38 PM
@Xeo Fuck you.
or something,...
 
presumably, L3 would characterise some strings as equivalent that L4 would not
 
The difference does not matter for some contexts, like sorting, but I don't know if matters in any interesting context in C++.
Maybe map.find and set.find break.
 
@R.MartinhoFernandes Is just what I was thinking.
if the level is not fixed, you can't guarantee given a set of Unicode strings, for some cases (and we don't know how pathological/edge they are), you can't know if another string will be considered to be already in the set.
 
I still believe op< should provide the strongest collation the implementation has at hand.
If you need less strong collation, use a named algorithm.
 
hmm
my instinct is certainly to provide the strongest collation possible
but I'm not sure if it is going to be feasible to permit differences between implementations
 
1:40 PM
Yeah.
 
I mean
 
Well, I gave the facts. Let's see what they think.
 
frankly, it's a very subtle case, and I'm not feeling hot on asking the user to know about it and deal with it
 
I forgot to mention my 6MB figure is not compressed.
 
another thing I'd like to ask about that figure; do any operating systems provide codepoint property APIs?
it'd be a waste to store 6MB of UCD in the program if it ships with Windows/Linux/etc
 
1:43 PM
If someone can worsify it, be my guest. :$
 
Not that thing again!
1 message moved to bin
 
beat me to it
 
For DeadMG's challenge of Hello world. :D
 
Room policy. No cowboy_casts. (ask @ThePhD, he knows about it)
 
Xeo
Aw c'mon, I wanted to move it to the real C++ room!
 
1:43 PM
haha
 
Xeo
That's where you move all the cowboy_casts
 
Damn, I constructed a beautiful UB town.
 
lol cowboy_cast
 
It really takes effort to write bad code. :D
 
So is there any rational rationale for the committee's "one implementation-defined encoding to rule them all" idea? Seems very inconsistent with pretty much... everything else in C++
 
1:45 PM
@DeadMG Maybe you can get something for the ones you have exposed in the API (after all C has those isdigit things and so on), but I doubt they give you the grapheme break properties and others necessary to implement the algorithms but not really usable by clients.
 
user1357851
write bad code is easy
 
user1357851
bad code works
 
What the fuck happened here? @Zoidberg
 
If you want I could measure the size of those.
 
Nobody noticed the malloc(2500) and return 0xDEADBEEF. :(
 
1:46 PM
@R.MartinhoFernandes Arguably, Microsoft (say) already has to provide these properties for .NET.
 
@DeadMG They have to be somewhere because the algorithms are implemented, but they are not exposed AFAIK.
 
user1357851
but bad code 1)uses more memory || 2) hard to read || 3)hard coding a lot of stuff || 4) doing simple stuff the hard way || 5) ) not logically structured || all the above, etc etc etc ... give me enough time I can list 100+ ways to write bad code
 
yeah
by the way, did you know the answer to the shift-JIS thing?
 
Jeffrey has a point about sort keys, btw.
@DeadMG I don't even know what it is about.
 
How many ways can you write a crappy novel? More than one way, that's for sure
 
1:49 PM
I find no previous mention of it.
 
user1357851
user image
2
 
@R.MartinhoFernandes We were discussing in LEWG about the fact that I did not support encodings that were not Unicode or a subset and shift-JIS came up as an example.
 
I suspect it may be something about Han unification, which is a hot topic.
 
@Telkitty dat pun
 
user1357851
LOL, yeah
 
1:50 PM
Ruby does crazy stupid crap because Matz is Japanese and doesn't like Han unification but that's just stupid and messy, and Ruby is only language stupid enough for that.
 
user1357851
I wish Ghost in the Shell would have new seasons
 
user1357851
Such a popular show :/
 
what is Han unification?
 
@Borgleader malapropism
 
@DeadMG Ok, do you know how latin capital A and greek capital alpha look the same?
 
1:51 PM
ye
 
@R.MartinhoFernandes TIL
 
actually, no, maybe cyrillic would have been a better example
 
I remember going to a Anime & Foreign Film Festival to see the first episode of GitS:SAC 2nd gig. 'twas awesome
 
And cyrillic too, btw.
@DeadMG All three.
 
I probably couldn't even recognize a regular greek alpha
but yes, I get the general idea
 
1:52 PM
@thecoshman no that's definitely intentional
 
Back in the beginning there was discussion of whether all those three should be encoded in the same code point.
 
user1357851
@Borgleader I watched both the original and the 2nd gig and all the movies
 
unless you meant my use of pun
 
how would that even work? you couldn't lowercase them since you don't know whether to lowercase into a latin a or a lowercase greek alpha
 
1:52 PM
It's a bit messy but eventually it was decided against doing that because all three behave differently.
@DeadMG Exactly, lowercasing was one argument against it.
 
user142019
@TonyTheLion it got binned.
 
Now, CJK have a similar thing.
 
@Telkitty So did my friend and I. He sorta had an obsession for the laughing man at some point.
 
do CJK even have cases?
 
But in the case of CJK, they decide to unify the ideographs, contrary to what they did with the latin/cyrillic/greek blocks.
@DeadMG No.
 
1:54 PM
@DomagojPandža So you're saing "basic" deferred lighting doesn't suffer from light leakage?
 
@Borgleader ¬_¬ as are most malaptopisms
 
@Borgleader Yup, but light leakage is basically a fact of life with non-shadowing lights. They are cheap and basically used by most for ambient lighting. And since they don't register occluders, they throw their shit all around. But that's why you a few "main" lights that cast shadows. The user doesn't really notice it. ^^
 
So, that's Han unification: the UTC decided that effectively CJK all share the same set of ideographs, even if they give them different interpretations, and use different subsets of it.
 
@thecoshman i looked up the definition of that word and it specifically said unintentional misuse. therefore if its intentional it is not malapropism
 
I can only assume that whoever mentioned that Shift-JIS is not a subset of Unicode was thinking of that.
 
1:56 PM
I'm curious, guys. What is the worst piece of code you've ever run in? Bonus points if it's wide spread nowadays. :D
 
FWIW, Shift-JIS is not an accurate term anyway.
 
@R.MartinhoFernandes Uh, I said that. Because I seemed to remember that you said it to me.
 
@DomagojPandža At my previous company we had an OO C framework made out of macros and code generators
 
There's a bunch of different Shift-JISes.
 
user1357851
@Borgleader kind of reminds me of wikileak ... :x
 
1:57 PM
I never saw anything worse in my life
 
@R.MartinhoFernandes You have got to be kidding me.
 
@DeadMG Hmm, you must have misremembered then.
 
user142019
@kbok Cfront!
 
And as a programmer in France, I can tell you I've seen things
 
1:58 PM
 
user142019
LOL TONY
 
@Zoidberg 30 years later.
@TonyTheLion awwww
 
ok
 
@DomagojPandža habib.wikidot.com/projected-grid-ocean-shader-full-html-version The source code for this is absolutely abysmal. It's hard to come across though, my friend found it and we tried to understand it to replicate for a project. It made me wish I had a goa'uld sarcophagus to repeatedly murder the guy who wrote it :P
 
let me re-phrase the question
 
1:59 PM
:)
 
@TonyTheLion d'awwwwwww
 
Lounge <3
 
Lounge<Love++>
 
user1357851
@Borgleader I can't believe we are the only two saw Ghost in The Shell here, that anime is so totally create for geeks (full of hacking/cyborg references)
 
if I create a proposal assuming that every encoding ever is going to be roundtrippable from Unicode, and have every codepoint representable in Unicode, am I kicking out support for Shift-JIS.
 

« first day (920 days earlier)      last day (4035 days later) »