« first day (2115 days earlier)      last day (2818 days later) » 

12:36 AM
Coding on a personal computer can be a pain sometimes. Windows doesn't like unsigned installers and pops up a dialog saying it won't run it to 'protect' me (and the option to run it anyways takes 3 clicks). Then my antivirus chooses to intercept it and sandbox it, and after determining there is nothing wrong, gives me a similar dialogue box.
Clicking run anyways returns me to step one; windows obnoxiously intercepts the execution.
 
@thepiercingarrow Don't use rand(). Use std::mt19937_64 (and seed it from std::random_device.
 
@JerryCoffin Okay, I will look up how to do that. Thanks!
@Aaron3468 Do you use windows?
 
Sometimes the worst behaviour is good behaviour
 
user365265
guys, why does this function only show half of the hex string?
 
12:37 AM
@thepiercingarrow Yes, and linux, and mac, as the situation and my resources require and allow
 
user365265
when I put the helper function right into the function in the class, it works
 
user365265
?
 
But my personal computers are all windows due to the wide compatibility with AAA games, indie games, and emulators
 
@Aaron3468 wow thats a lot of games... o.O
I just stick to teeworlds and minetest
I've also been meaning to try Warsow or whatever its called
 
@mate64 I would closely examine the sizes that you pass to the function; they may be incorrect. Why not use an std::vector<uint8_t> as the input to bin2Hex (because size is carried with it and correctly determined)?
@thepiercingarrow Looks like an interesting Unreal-inspired game. Only 17 players online though
 
12:47 AM
@mate64 That sizeof(bin) in bin2Hex doesn't do what you think it does.
 
Oh. Is it good?
Can't be as good as teeworlds :P
 
user365265
I am sorry, it's early in the morning here and I am maybe already out of order
 
user365265
when I replace the bin2Hex call with the actual function, it works
 
/cc @Rapptz ^ Why JSON doesn't have comments
 
@mate64 No worries. Moving from C-style coding to the more class-based C++ code can help remove some of the simpler mistakes like that. If you are ferrying the same pieces of data together all the time (an array and size), you might as well make/use a class
 
12:51 AM
@ThePhD I already know why JSON doesn't have comments. :v
 
Oh. Sorry.
 
@mate64 What do you think using sizeof on a pointer do?
 
user365265
returns me the size of the pointer? :Y pls no bully
 
Right, that's one of the gotchas of C(++); passing something as an argument implicitly turns it into a pointer
 
user365265
157
Q: How to find the 'sizeof'(a pointer pointing to an array)?

jkidvFirst off, here is some code: int main() { int days[] = {1,2,3,4,5}; int *ptr = days; printf("%u\n", sizeof(days)); printf("%u\n", sizeof(ptr)); return 0; } Is there a way to find out the size of the array that ptr is pointing to (instead of just giving its size, which is...

 
user365265
12:53 AM
oh no
 
@mate64 Exactly. But I'm fairly sure that's not really what you want. You want the size of the array, right?
 
user365265
so I should pass the size of the pointer as an argument in the function, right?
 
I mean, you have a size argument, use it.
 
user365265
@EtiennedeMartel it works, stupid me :<
 
user365265
 
user365265
12:55 AM
PLS WAKE ME UP
 
But honestly, class-centric coding helps prevent problems like this. Data can be given metadata, rather than hoping that you don't temporarily forget what the metadata is.
 
user365265
yes, it is a c++ class
 
user365265
but the utility isn't
 
user365265
2:57 AM, time to get /comfy
 
user365265
 
user365265
12:57 AM
n8
 
@thepiercingarrow I don't know, I've played neither. I tend to play a half hour of a game before switching to another because many of them aren't interesting enough on their own to warrant playing for too long at a time.
So at any given time, I'm progressing in about 3 or 4 games. Sometimes I replay the good ones like Final Fantasy Tactics, Dark Cloud 2, or Osu!
 
hmmm
jaja - avoid the closed-source ones - those are never good..
 
I'd say that's more of a predisposition than a fact. Closed-source tends to have much more, and much more polished content. Nonetheless, open-sourced games have merit too, particularly in cough creativity (more of a tendency to give new spins/mods to old games)
 
While in general, close-source games are less polished, some are so polished, that they are considerably more polished than even some of the popular commercial games.
 
Among open-sourced games, one of my favorites is chess
 
1:09 AM
Take teeworlds, for example. To day, I've never seen a more polished game.
@Aaron3468 Oh. I enjoy gnuchess, but I'm still not entirely sure how to play multiplayer :/
 
Well, you call your friend over and put the board on the table first of all
 
lol and periods do not belong together. That's how I know I've annoyed my gf ^^;
I haven't actually played a lot of open source games
The few I have tend to be clones of closed-source games
 
:(. Clones usually are unpolished. Try some of the original ones - the few gems are amazing. (also comment about 'lol' noted.)
 
Gorgeous collisions:
Somewhat plasticky, but definite progress from physics in many driving games
 
1:25 AM
lol
 
1:43 AM
Everytime I see Canada in video games, they've made it look like Winnipeg during the winter
 
lol - so true
 
 
1 hour later…
2:49 AM
Hello
 
ho
 
hl
 
I finally discovered why the lcd screen I'm running with a microcontroller wasn't animating properly; they addressed the cells differently than pretty much every documented unit.
 
3:09 AM
for the glory of satan of course
 
H̞̭͓̱̤͎͙̻̃̋͒ͤ̂̎ͩ̓͂̀ͅa͔͈͓͖̜͖ͮ̅ͪ̐ͥͣ̓ͯ́́ȉ̧̥̦͓̟̳̮̿ͧͨ̓͗́l̸̨͈͙͎̑̎̕ ̮̫̈́͜͟S͒ͭͤͩ͏̼̪a͖̞̩͖̣ͨ̾͜t͚͎͚͍̝̦̓̓̽̽̑͗̚̚ͅȁ̩͙̼̞̹͖̪ͪͬn̶̲͖͔͈͓̠̫͎ͪ̇͑̎͜
 
the real question is would I sell my soul to never have to deal with a shit API again
the answer of course is I can't because I already sold it
 
That would be fantastic, but too bad.
How many jellybeans did you get out of that, again?
 
no jellybeans, just the ability to convince myself I'm enjoying a far wider variety of things
sadly I sold it before I knew how shit APIs could get or I'd have included working with all APIs in the list
curse my youthful folly/exuberance
 
Aside from the selling the soul thing, it's a pretty sweet benefits package though
 
3:20 AM
oooh yeah
I've rarely experienced misery since I did it
and I hated doing all sorts of things before
A+ QoL improvement there
 
Speaking of poor APIs, I'm basically interfacing with the lcd in binary code right now .-. Cleaning it up is next on my todo list now that it works
 
The Great Catface certainly knows where it's at :3 /cc @ThePhD
@Aaron3468 eeeegh
 
Haha, it's slightly better than the arduino standard lib for this particular model (no joke; they do the same but with hex literals which makes the commands harder to interpret). I'll probably bring in programmer equivalents like returnHome(), shiftLeft(), shiftRight(), print(uint8_t shiftJIS_character)
It really does weird me out how arduino hobbyists are happy to copy-paste and repeat themselves while coding
 
shrug
 
> I've been singing it as "Praise you like a shoe" for the last 18 years out-loud un-ironically. Why did No-one tell me!!! /cc @Shoe
 
lol
 
s/arduino hobbyists/people/
 
> implying arduino hobbyists are people
I'm sorry it was just lying there
I couldn't not take it
I'm a terrible person, I know
 
3:46 AM
They're definitely not programmers =.=
For the most part at least
 
Well. Defining programmer is along the lines of emacs vs vim or defining what oop is so.. let them think?
 
I think it's fair to say that you program if you write code on occasion, and that you are a programmer if you write code for a living or hone programming as a primary skill (rather than one auxiliary to other hobbies).
Beyond that, it's a semantic argument. Titles (like salesperson or doctor) are generally reserved for people with some level of specialization in the skill.
 
Indeed
@Aaron3468 you mean ubisoft right?
 
@KretabChabawenizc guild anthems
also notice the SAB decorations in the background
 
4:10 AM
@FélixGagnon-Grenier Maybe. I know one Tony Hawk game and a few older games did. But then again Canada and Canada, The Concept are two very different things
 
4:26 AM
-1
Q: Racist and abusive moderator on Academia Stack Exchange

User001The moderator, ff524, is a racist and abusive moderator on Academia SE. There was a question posted several weeks ago, right around the time of the perceived uptick (yet again) of police brutality in the U.S. and the deaths of innocent black lives and subsequently the deaths of police officers i...

 
4:44 AM
Hmm... usually when people accuse a moderator, it gets downvoted down to -10 in like a minute. I guess it's the wrong time of the day.
 
4:55 AM
if you can only down to -10 obviously you are not doing it right
 
5:10 AM
The most telling feature is the tone of the accusation versus the tone of the original question; the user is clearly the one of the few so offended by what appears to be a rather prudent question.
 
5:31 AM
@Mysticial Jeez.
> My ethical fight with the moderator ff524 earned me a month-long suspension.
"My ethical fight"
 
^^ This guy just answered a question. idgi
 
5:47 AM
maybe he thinks if he geta someone's attention he'll get that information
 
he could just google it
 
I mean, if I have been on SO for more than a year and still can not reach the chat threshold rep, I would want to know how to delete my account too (because with that intelligence, you can't really figure it out by yourself)
 
6:11 AM
@Mysticial Well, he entered some text into the "answer" edit box, anyway. What he entered was a question though (and it's speculation about a possibility that pretty clearly wouldn't accomplish what the OP wants).
 
fuck the fucking question limit
now that i gotta ask important stuff i cant
 
Hmm, there aren't so many questions in my areas of expertise. Many of them are related to web frameworks and gui/visualization. Is there a way to filter out particular tags when looking to answer questions?
The answer to that appears to be very intuitive
 
There should be an ignored tags filter.
 
thanks
 
6:44 AM
^ Is that possible?
 
wut
 
A frying pan causing burned food because it's old..
 
wut
 
a no sticky frying pan can cause food to be burnt if no sticky layer is scratched
 
I suppose you're not the person to ask.
 
6:48 AM
not so much so as old but more like damaged
Ideally if a frying pan transfer the heat to where it should be heating then food should not be burnt given normal circumstance (i.e. not cooking for too long), but if the shape or material is altered then theoretically it could transfer the heat faster to certain areas which it should not be. Then food in those areas would be burnt.
 
 
1 hour later…
7:52 AM
beware of updog
> There is truth to the joke that “once it compiles it works”.
of course there's truth to it, it's not a joke in the first place
it's reality
but people will still ask 'but why not java'
WHY DON'T WE USE HORSES HORSES WERE JUST FINE
except with horses, the 20-year prediction of london showed a 3-meter layer of shit on the streets
which, incidentally, is what I predict with Java as well
 
I would use a hammer
hammer solves a lot of problems
 
8:12 AM
:)
 
Question.
What's the German onomatopeia for the sound a train makes?
In English, it's "Choo Choo", usually.
 
@ThePhD siebenhundertsiebenundsiebzigtausendsiebenhundertsiebenundsiebzig
 
@StackedCrooked It can burn the food to the pan if you don't use it properly and it isn't no stick. It can also burn fats and become a huge mess to clean up if it's stainless steel. The only thing I can think is that it's either one of the fancy pans with a conductive liquid pocketted inside the bottom (which has leaked somewhat), or she doesn't have a clue how to use it
 
@StackedCrooked yeah. The oils and residue accumulate after being burnt down to coal, making the non-stick layer less effective
@Aaron3468 But stainless steel pans can actually live much longer, if you're disciplined in cleaning them.
The pasta place I go to, Vapiano, only uses steel pans - they clean them everyday though, I suppose in a much more aggressive way than you would with a non-stick pan.
 
@BartekBanachewicz That is true. Cleaning them is extremely easy when you can use them properly. My first few attempts left butter burnt deeply into the pan and took a few weeks of baking soda/vinegar solutions and scrubbing to clean. I can use it properly now and I love it :D
I started answering a question and I was on the right track, but I realized that the problem is that neither me nor the asker actually understand how to determine what margin for error to expect from a Poisson Distribution =.=
 
8:22 AM
I personally like ceramic pans the most
I have a steak pan with ceramic coating and it works great
also I forgot!!!!! Primitive tech has a new vid
he's gonna do metals soon I hope! <3
woah, his blower is freaking amazing
 
Haha, yeah, metalwork is a useful skill
 
also Obsidian Shell has a new single I think
it's such a pity they're still not on spotify
 
For now I'm tempted to study my statistics textbook a bit more deeply so that I know about Poisson distributions and their downsides. The annoying thing about statistics is that it's mostly approximations and not facts
 
@Aaron3468 I am looking at it especially comparing it to the other historic smelting methods. So far I watched how they did in Africa and Scotland
this is actually a vastly different setup, although I'm not sure if it will be as efficient
 
The cool thing about modern metallurgy is that you can adopt primitive forms of much more efficient smelting methods than historical ones
 
8:34 AM
yeah, we had that discussion here before
where I was speculating how much time would it take you to make a functioning tech society with modern knowledge, but starting from scratch
like imagine if you were dropped on a planet exactly like earth now, but with no humans
kinda like Factorio :)
 
The hardest part would be rebuilding the tools to improve the processes. That's much much faster than spending a few decades researching how to improve the processes in the first place
 
8:47 AM
I took for granted how most languages treat arrays as first class citizens. Time to pull out an std::array or something
 
@Aaron3468 yep. C arrays are useless in C++
 
=.= wtf Atmel Studio, y no std::vector support?
It's like programming in C++ without all the tools you actually use. 90 different ways to cast and copy? Sure! Data types that don't suck and are worth using casts on? Noooooppppeee
 
9:06 AM
i'm on a cross compiling spree
now downloading mingw 6.1.0
 
First steps into C++17.
Even though the most significant change implemented is probably the filesystem library.
 
@Aaron3468 wat
 
Oh, that one :D
 
well I mean if you have 8kB of ram
it kinda makes sense to not allocate stuff dynamically
 
9:19 AM
@BartekBanachewicz C-and-a-half: All the complexity of C++, none of the benefits.
On the other hand, I am making progress. I've added new functions so that I can delete comments like //Entry Mode (increment after write, don't shift display)
And instead of passing the binary directly, I call HD44780LCD::entryMode(INCREMENT, CURSOR);
 
nwp
yay for zero-cost abstractions
 
@Aaron3468 Frankly I'm kinda rediscovering C++ lately
 
How so?
 
I couldn't stop thinking how beginners and beginner tutorials can look not half-bad
 
Aaaaah, Hilight Tribe, Hallucinogen, Shpongle, Astral Projection, 1200 Micrograms, Juno Reactor, Astrix, Ace Ventura and Talpa, all in the same festival and I'm not there ç_____ç
 
9:25 AM
And I came to the conclusion that you simply have to approach C++ like Javascript
Use only the simplest features
 
nwp
aka C with iostream
 
It's still a horrible language, don't get me wrong
@nwp well, I don't have a list, but mostly stronger type system, static polymorphism, namespaces
Very very careful use of templates
Being overly generic is a problem because templates are too bad to support it
Don't use references either
 
I think with only the basics, C++ is without a doubt one of the most obtuse languages I've used (classes are a necessity for any expressiveness). With the std containers and classes, it's actually nice.
 
Maybe I should actually compile such a list
 
Anything with templates, macros, and pointers/references is broken as far as I'm concerned :laugh:
 
9:28 AM
@Aaron3468 the standard library is about halfway there
I need, as a minimum, range support, optional and variant.
Also perhaps expected
IOW maybe C++17, right.
 
nwp
@BartekBanachewicz you don't need to, go with the handmade community, they already stripped C++ of everything that can be considered slightly complicated
like the STL for example
 
My list is a bit higher level (assuming good implementations): generics, ranges/iteration, first-class user-defined types, anonymous types, numeric literals, std gui/file/http interfaces, utf-8/unicode support
Aside from that, I'd prefer if it could easily be compiled to C because I code on just about any platform I have access to
 
nwp
13 hours ago, by Lalaland
> Why don't you like the Standard C++ Library / Standard Template Library / Boost / etc.
Because they're extremely low quality code and I don't want them in my codebase.
 
@nwp this is retarded
 
nwp
@BartekBanachewicz so is this
it fits
 
9:35 AM
@nwp It's true. C++ as a syntax is absolutely horrendous. As a compiler/code organizer, it is laughably primitive. As an ecosystem of strongly-typed classes, it is a very pleasant language
 
@nwp but is it, really? std::sort is just a sorting algorithm. Better, worse, w/e it sorts things, you can replace it with something else easily enough. But references will get into your whole design. You can't easily replace them. You can't easily simplify code that uses them.
They introduce a lot of pitfalls, and the gain they bring is IMHO questionable.
 
nwp
@BartekBanachewicz well thats because you need them for sane design. You can replace them with pointers easily enough, but that is strictly worse. That's like "I don't use characters because I cannot easily replace them".
 
@nwp So when you're saying "sane" you mean "the one I can construct"?
 
nwp
the one that can express the intend
 
@nwp so there can be only one design that expresses the intent?
 
nwp
9:39 AM
and the intend "here is an object" is fairly common
 
@nwp so what?
 
nwp
@BartekBanachewicz no, obviously you can use pointers or global arrays with ints as indexes as well, I'm saying those are worse
 
@nwp That's still the same design.
 
nwp
@BartekBanachewicz so you need to be able to express that
 
@nwp Do I?
 
9:40 AM
Java is nice, although it has a very poor ecosystem of binary primitives and binary operations which I frankly can't do without. The enforced objects can sometimes be excessive
 
I write programs without references and mutable state quite often.
 
nwp
well you can write haskell in C++ and copy everything, then you can get rid of references all together
 
it's not about writing "haskell" in C++
it's about other paradigms and other approaches.
Whatever you write in C++ is still gonna be C++
Saying that just because a program doesn't use references is not "C++" is a no-true-scotsman
inb4 "idiomatic", which I'm increasingly seeing to be harmful
 
nwp
@BartekBanachewicz I disagree. If you ban references from your codebase you trying to make C++ into something it is not and very quickly find limitations originating from a difference between what C++ is and what you are using it as.
 
@BartekBanachewicz To be fair, C++ is basically a set of interfaces built on C, so by that definition whatever you write in C++ is C
@nwp e.g Atmel Studio neglecting the useful half of the std because it doesn't play nice with tiny runtimes
 
nwp
9:44 AM
but I suppose then the "STL is very low quality" holds, because it uses references all over. And then you can complain that there are no standard libs for anything and conclude that C++ is shit.
 
@nwp It's standard library, not STL. And it actually doesn't use references all that often; it's mostly iterators. And my argument against the standard library it's that it's still not range-based.
@nwp And who is to tell what C++ "is" or "is not"? You?
@Aaron3468 no, absolutely not.
 
@BartekBanachewicz That's because they're a core language feature where basically the whole language is designed around using them.
 
how the fuck do you support threads in the mingw w64 cross compiler? my brain is about to explode
 
@Puppy There are many more other core language features, which doesn't mean you have to use all of them.
C++ has been designed, yes, but it also has been designed badly.
 
yeah there are plenty of core language features that suck
2
references aren't one of them, though, and they're necessary in a great many places.
 
9:47 AM
And it also accumulated all the bad design over the years
@Puppy Like what?
 
copy and move constructors?
 
@ChemiCalChems Don't know about the cross-compiler, but IME only POSIX threads actually work.
 
I actually use references very, very rarely.
 
operator overloads?
 
nwp
@BartekBanachewicz if you disagree with the core design of a language you should probably not use it, because it will almost inevitably lead to frustration
 
9:48 AM
all iterator and container designs?
 
@nwp wow it's almost like I didn't figure it out years ago.
 
@Morwenn yeah, how the fuck do you support them? i'm trying to cross compile sfnul and fucking std::mutex doesn't exist
 
Ven
Hi
 
@Puppy I think we should draw the line between low-level tools for libraries and usable application code.
 
@ChemiCalChems Download the right one with threads-posix.
 
9:50 AM
if you don't use mutating operators, you can express them with values, no?
 
@Morwenn that one isn't a cross compiler, its a native compiler
unless i can just copy everything except the exes
wait
i fucked up
 
@ChemiCalChems Oh, then I don't know. I guess I don't give enough of a fuck about cross-compilers right now .______.
 
@Morwenn yeah, i get you
 
One thing that always struck me was that C++ being such a low-overhead language, always focuses on efficiency
If you have a performance advantage, why not use that to write clearer programs?
 
it's really an attitude problem
 
9:54 AM
Well the language is problematic as well obviously.
Like pretty much everyone on the planet could improve C++.
It's not hard. You just need to not have a committee that keeps crap in it for ages
 
committee can't remove the crap
would break too many programs
 
Still, IME people who write C++ generally spend more time micro-optimizing stuff than people who write Python where the philosophy is more « try to speed up that stuff if it feels too slow ».
 
@Puppy which means new programs have to deal with legacy crap
 
yes, it does.
that's what you get for dealing with a mature language.
 
okay, I've changed my mind
you convinced me
nevermind
 
9:56 AM
I find that Java is pretty much the only language with a good balance of abstraction and performance I've mastered so far. I hit Python's performance limits very easily with the code I write. Golang would be nice if it had gui, and Rust is what I'm in the process of learning
 
Java has neither good abstraction nor good performance.
Golang is a pile of utter shite.
 
Ven
Java has very okay performance. But terrible abstractions
 
Wide is the worst though ;)
it combines bad features and legacy of C++ with utter uselessness of a hipster language
 
Java's caught up to C++ in the last few years. The abstractions are good enough, but enforcing them is the terrible part (and lacking some primitives). Usually a 25% performance penalty, which is barely noticeable compared to Pythons up to 10000% penalty. Golang looks like shit and has shitty support
 
@Aaron3468 No, they're not good enough.
 
9:59 AM
Why?
 
eh
 
@Aaron3468 I don't understand the question
 
there's nobody other than me who has the slightest idea what Wide even is really
 

« first day (2115 days earlier)      last day (2818 days later) »