« first day (1603 days earlier)      last day (3330 days later) » 

12:12 PM
Is there a function in the STL that works like Pythons map?
 
@MarcelMeißner I don't python but... std::map comes to mind
 
@MarcelMeißner std::transform
 
oh, a function! ^^
yeah, then there's transform :P
 
map is a datastructure, map in python is applying a functor to a series of objects
 
When people ask for functions, usually they mean functions.
 
12:14 PM
@FredOverflow thank you very much
 
yeah, I'm blind
 
maybe new glasses will do the trick ;)
 
@MarcelMeißner Don't let Bartek see your use of the word "functor".
 
@FredOverflow still in academia?
 
@ScarletAmaranth 6 more months to go
 
12:15 PM
Bartek will go berserk and spew nonsense about category theory
 
I already started applying elsewhere, but no luck so far.
 
@FredOverflow any chance of getting tenure?
 
Don't know what that is, so probably no :)
 
@FredOverflow does he prefer the word function object? or object with parenthesis operator?
 
Function object is probably fine, but don't quote me on it.
 
12:18 PM
@FredOverflow "In the United States and Canada, tenure is a teacher or college professor's contractual right not to have his or her position terminated without just cause"
 
@ScarletAmaranth lol no, that happens very rarely in Germany. Almost always, you have to leave University after 6 years tops.
 
@FredOverflow wait what? what sense does it make to terminate someone's research after 6 years?
 
I don't do research, I teach Java.
 
is your job a "teacher"?
most folks in unis here in Slovakia are... "research assistants" who happen to teach
 
12:27 PM
There was no such position available when I applied.
 
Germany doesn't believe in science
 
And after spending 1,5 years on my Diploma, I wasn't too sad about that.
 
reapply for the same position ^^?
 
1) Impossible
2) Don't wanna
3) There won't be such a position
 
ah; so you're looking forward to "entering" industry?
 
12:30 PM
rip
 
@ScarletAmaranth Either that, or become an independent consultant ;)
 
Xeo
 
Ah, buttcoins.
 
anyone tried Vivaldi yet?
 
user1804599
12:49 PM
@ScarletAmaranth Python is sane and calls them dictionaries.
 
user1804599
Fuck calling it "map" in a language that has a map function.
 
@Xeo can we still get old builds a utorrent? from like 5 years ago when it didnt suck?
 
There's a "liquid nitrogen bar" two blocks from my place.
 
Xeo
@Borgleader I'm using another torrent client anyways
 
Btw, this utorrent bullshit is the kind of thing rms is paranoid about.
 
1:00 PM
erm... I am right in thinking C++ has no std::optional yet...
 
@Xeo Which one? I don't torrent often but I would like not to be mining shit when I do
 
Xeo
qBittorrent
 
I use transmission, does the job
 
@Xeo Is my browser failing or is their website incredibly ugly?
nvm, i reloaded and its ok now
 
1:13 PM
@Borgleader your browser sucks man
BorgExplorer 1.0
you need to update
 
It worked when I reloaded D: But it was super long I wouldn't be surprised if something timed out
(I also had a 503 the first time i tried the page)
 
user1804599
Heheh.
 
They didn't like my personal brace style so I just used a comma operator and saved the day http://t.co/BKTdjjC0dd
Good morning.
 
user1804599
1:29 PM
std.conc.spawn = function(fn, __continue) {
    setTimeout(function() { __continue(void 0); }, 0);
    fn(function() { });
};
 
user1804599
This is interesting.
 
@Xeo Mac build fails. Apparently member variables have been renamed, but not inside the #ifdef MAC sections..
And makefiles got corrupted.
Whitespace was replaced with 'n' in some places.
But I still managed to build it!
...and it crashed.
 
I know the guy behind this project.
 
@R.MartinhoFernandes Err... OK. I think I'll stick to beer.
I guess it's better than the liquid helium bar - at least the drinks would not escape over the rims of the glasses.
 
user1804599
 
user1804599
Scala parser combinators are cool.
 
Clang vs GCC output of my checksum routine:
I don't know what xmm0 means which probably means it's faster than the code on the left.
iow Clang is good
 
Xeo
that's SIMD stuff
 
yeah I googled :D
 
Is there some operating system that doesn't have draggable windows?
Like all windows are split like in VIM mode?
 
1:54 PM
OS/400
Actually, that one doesn't really have Vim-like windows either.
@Jefffrey are you aware of xmonad?
 
My dream OS would be like that. Up to 9 layers of those split windows where I can move between my programming layer with code + compiler + filesystem, to my movie layer with movie directory + downloads directory + VLC, to my X layer and so on.
Switch between layers is Ctrl+tab or Ctrl+n where n is the number of the layer.
@StackedCrooked Nope, let me take a look.
 
It's a tiling window manager.
 
user1804599
> SI-8759 no need to enter almost half the konami code to enter a right square bracket in the REPL (via jline 2.12.1).
 
user1804599
lol changelog
 
@StackedCrooked ..or anything else remotely useful.
 
2:01 PM
we had to use it at school
it was not a pleasant experience
I actually had a COBOL and RPG course.
On that machine.
 
@Jefffrey You mean like Windows already does?
@StackedCrooked OMG... I'm so sorry:((
 
Google is confused.
 
@StackedCrooked lol, RPG 'second most used programming language'
 
@MartinJames OSX too, but the main problem is the missing window tiling system and the fact that I have to pay in terms of performances and space for all of this transparency glowing crap.
 
2:06 PM
IMO it's not possible.
 
@ʎǝʞuoɯɹǝqʎɔ You can cut bits out, if you want to. I don't understand the OP point since crt does not do an awesome amount of stuff and is not all that big. Cutting out bits might allow the OP to compile 'Hello World!' instead of just 'Hel'
 
@Jefffrey The Aero Glass interface is not 'transparency glowing crap' - it's a valuable UI enhancement that improves the UI interac... . nah, you're right, it's annoying shit.
 
> But adding the K in the RAT field for the F description solved the
error. Thank you very much.
lol
I don't remember anything about it.
 
@MartinJames Oh, ok. I can put the pitch fork down now.
lol
 
2:37 PM
I'm gonna pull a lounge newbie: i wanna detect images like this inside images like this. Suggestions?
 
Just found this: Sean Parent Lecture.
 
@Borgleader opencv?
 
d14
Hello Everyone,

Is it a good practice to have a dummy head node that is not NULL, and only points to the next node? What I normally do when I create a list is to have the head node also contain other member data defined in the struct/class?
Are there cases where one is better than the other?
 
user3010322
@Xeo I like how the responses on the forum essentially boil down to "we totally don't install it without your permission" -> "we can't repro it not asking you to install", but the devs won't even show any evidence of the thing asking and tell you to use Add/Remove programs. They also comment that EpicScale does not "uninstall cleanly" contrary to the bullshit they say before. What a train wreck.
 
Xeo
uTorrent really has become a beautiful wreck
I loved it when it was a stand-alone 350kb app :<
 
2:52 PM
uTrojan?
 
@Xeo Yeah.
For a short period I used rTorrent on my VPS because I had no Internet at home.
It was kinda pleasant to use.
 
@Pris More like which technique, cuz Template matching isnt working (probably because the images of the cards i get on the web arent the same size as the cards that appear in the game
 
@Borgleader the obvious solution is to pick a spot, try comparing it to size your image with size of 1 pixel, then 2 pixel, then 3, and so on.
c:
 
@Borgleader SURF
 
@d14 It's good practice to use std::forward_list or std::list or even better just default to std::vector.
 
user3010322
2:57 PM
@Xeo Same. I didn't mind it with the adware because I could just mostly block it all but with their silently-install-bullshit policy for an update.... I guess I have to find a new torrent client. Don't know which one to get, though.
 
Azureus /sarcasm
 
@ThePhD I found that epicscale shit in my quarantine store - AV had moved it.
 
@ScarletAmaranth Oh that looks perfect! :D
 
Now I'm gonna move uTorrent.
 
@Borgleader ye
@Borgleader you can try with SIFT, but I don't recommend
 
3:00 PM
In case you're wondering I'm trying to automate the job of catalogging which cards I have and which cards im missing, i might also use it later to compute a card list from a video
 
@Xeo what's it now, besides torrent client?
 
@Borgleader it's trivial with OpenCV surf (writing SURF, however, is not as trivial ^^)
 
@thecoshman It's the new Java.
 
UTorrent refuses to implement a good generic-collections system?
 
Who cares, now I uninstalled its ass?
lol, qBitTorrent server: 'The site could be temporarily unavailable or too busy. Try again in a few moments.'
 
3:09 PM
Good morning everyone!
 
@MartinJames ITT uTorrent is a programming language
 
@ParkYoung-Bae At least it's lightweight.
 
I've been looking through the Unreal Engine 4 documentation
 
@ParkYoung-Bae still can't understand the choice of 'Trojan' as brand name for comdoms
 
and it kind of strikes me as sad that C++ is only useful once someone has completely re-implemented all its "should-be-standard" types like arrays and strings
 
3:12 PM
@Katana314 ... you mean std::vector and std::string?
 
stringA = "Hello." stringB = "Hello." stringC = "Hello." How many strings do you have in memory
C++: 3. JavaScript, C#, and UE4C++: 1.
 
@ScarletAmaranth Great success! Thank you so much!
 
@Borgleader Awesome - looks like it'll come in handy for Hearthstone commentary
 
lol, I look up a blog reviewing std::string, and it's full of comments from folks from here :P
 
@Borgleader not se problem
 
3:20 PM
Also...there isn't a standard interface for std::vector and std::list, is there?
 
All my git commits start out the same "added x. added y. added z." ... feels so amateur
 
lol, there's an xkcd like that about the decreasing quality of version control commits
 
@Pris that is amateur. Those should be three commits :P
 
at least I don't use emoji I guess
 
@Katana314 what do you mean by "standard interface"?
 
3:22 PM
@Katana314 sort of... I think collections have more uniform access now.
 
@Borgleader he means he's new and he's trying to look as though he knows a lot :)
 
haha
 
@ScarletAmaranth Actually to clarify, yes I am very new; but I'm hoping that in my criticisms, I will learn something that makes previously frustrating code simple to use
 
knock knock
 
@thecoshman Point being, in C# there's an IEnumerable interface; doesn't care what the implementation type is, just that you can call "foreach" on it. But if vector and list implement anything like that, I don't see it in the documentation sites I look at
 
3:25 PM
You're probably looking for 'container iterators'
 
user1804599
wooo diagnostics
 
user1804599
error: 'io' not in scope
        io.writeln("Hello, world!");
        ^
 
user1804599
warning: 'io' is a module, not a type
    proc g(x: io, y: f, z: Z32) {
              ^
warning: 'f' is a subroutine, not a type
    proc g(x: io, y: f, z: Z32) {
                     ^
 
user1804599
hehehe, fucking awesome
 
3:45 PM
@Pris Sorry, but just been trying that out and having a hard time figuring out what you mean
Can't cast "std::vector::iterator" to "std::iterator" to make it generic
 
The container types in the stl don't derive from a single interface, but if you use container iterators to operate on the container you can often switch out types like std::vector and std::list without changing other parts of your code.
 
how, though? All indications from my compiler, they don't share a common iterator type; unless this is a different STL library I've never even seen
 
for(auto it = my_list.begin(); it != my_list.end(); ++it) { ... } // my_list can be changed without refactoring your code
 
Now, move that to a function that can be called for both lists and vectors.
 
If you're talking about doing this at run time though, no... you'd use templates for that to auto generate functions for both list and vector.
 
3:50 PM
sorry, we'll have to put that on pause - gotta head to a haircut
 
@Katana314 Different containers need different iterator types--but you can write generic algorithms that accept the iterator type as a template parameter, as long as you restrict yourself to operation supported by all the categories of iterators you care about.
@Katana314 Nor should you. std::iterator is intended to be used as a base class, but only for implementation--you shouldn't (ever) cast an object of derived class to the base class. It has no virtual functions, and is only supposed to be an easy way to get some typedefs into your iterator type (and it's largely a failure at that, IMO).
 
4:04 PM
Oh god, what is even going on, help... my eyes
 
user1804599
warning: non-Boolean condition
        if f("x") { } else { };
           ^
 
user1804599
Currently subroutines can only return (), I haven't yet implemented anything else. :P
 
Sean's code sucks. He should just have used copy-swap.
I suppose he wanted to avoid unneeded atomic increment and decrement.
Premature optimization :D
 
"If you ran Photoshop on a machine for about 3 months, it would crash"
3 months, thats pretty good, I'd wager a lot of them would crash way before that
@StackedCrooked Isnt that the same talk he gave at Going Native 2013? I recognize the slides
Longer version is it?
 
Yep. It's an expanded version.
 
4:09 PM
Cool, I'll watch it later
 
@Borgleader Yep!
 
Which basically means "I'll watch it never"
I have a watchlist which is infinite. I keep putting stuff in it, and never remove stuffs.
 
you suck :P
 
It's a first in, never out queue.
 
Unbounded queue.
 
user1804599
4:12 PM
You'll all love Mill.
 
@райтфолд Absolutely, the Mill CPU architecture will be awesome!
 
It's not as long as my readlist, which actually crashes chrome sometimes.
 
^ This is not entirely true.
 
which part?
 
We have boost::asio::io_service and boost::asio::io_service::strand. Which can be ran on a group of threads.
This gives you something useful.
 
4:16 PM
So what's not entirely true about that slide again?
 
I'm starting to panic now
Wanna hear a fun joke?
 
always
 
My therapist says I'm paranoid.
...
He didn't actually say that but I know he was thinking it.
(Thanks reddit.)
 
Missing am there.
 
there's an extra I in the or a missing am
 
4:19 PM
@Katana314 probably not as well documented, but you can do for each loops with all the std containers AFAIK
 
Phew, attention diverted.
 
@thecoshman question was intended for writing a function that works via simplistic, container-neutral interface
 
@StackedCrooked :)
 
4:26 PM
@thecoshman but it sounds like virtual functions are poison in C++, especially for base types, so nothing in STL really follows interface design. (Reminder; still a newbie, just attempting to understand C++ design vs high-level design)
 
Templates take that role.
Can you guys solve Rubik's cubes?
 
@R.MartinhoFernandes I had one when I was a kid. I think I only solved it once.
Have you seen those robots that solve em all quick like
 
I can do 50s now.
 
Oh, the things where the goal is to get all sides to be one color?
Sure - you just need a paintbrush and 6 different paint sample cups.
 
So slow.
I wanted to know if someone here could help me out. I wanna get <30s but there's some stuff I don't quite grasp.
 
user1804599
4:32 PM
@StackedCrooked s/My the/The /
 
user1804599
OK the diagnostic now shows the actual type of the condition.
 
I think it was @Bartek that mentioned something before.
 
@Katana314 I haven't heard that about v-functions
yes there is some overhead with them...
but that's only a problem when you start really optimising stuff.
 
var sr = new StreamReader("CardList.json");
var se = new Newtonsoft.Json.JsonSerializer();
var cardlist = se.Deserialize<List<Models.Card>>(new Newtonsoft.Json.JsonTextReader(sr));

var groups = from c in cardlist group c by c.Group into g
             select new Models.CardGroup { Name = g.Key, Cards = g.ToList() };

Groups = groups.ToList();
yesss
yesssssssssssssssssssssssssss
 
4:48 PM
Whatcha making?
 
An application to keep track of which cards I have in Hearthstone. I'll grab the list of cards from a website (along with images of each card) and then scan my card library using OpenCV/Emgu to find which I have and how many of those I have
It's also helping me practice making stuff in WPF
2 hours ago, by Borgleader
user image
 
5:04 PM
@Pris "crazy"?
 
@Pris Did you ever see boost::spirit ?
 
@Borgleader nope. how horrifying
@LightnessRacesinOrbit Yeah dude. Doesn't this code look crazy? :
// Add a new section for static meshes
ContextualEditingWidget->AddSlot()
.Padding( 2.0f )
[
    SNew( SDetailSection )
    .SectionName("StaticMeshSection")
    .SectionTitle( LOCTEXT("StaticMeshSection", "Static Mesh").ToString() )
    .Content()
    [
        SNew( SVerticalBox )
        + SVerticalBox::Slot()
        .Padding( 3.0f, 1.0f )
        [
            SNew( SHorizontalBox )
            + SHorizontalBox::Slot()
            .Padding( 2.0f )
            [
 
is [ defined as {? :|
 
@Pris Oh, you linked to the wrong section
@Blob Overloaded [] more likely
 
@Blob No I think overloaded [] adds a child widget (the code is defining UI stuff)
 
user1804599
5:08 PM
 
@Pris Terrible.
 
@Puppy it seems kind of clever in that you can define UI layout really quickly with it. I want to see more examples of code like that
 
@Pris It's overly clever and that's why it's terrible.
 
here is a grid layout
 
this kind of code is what makes people want to ban operator overloading.
holy fuck dude stop spamming up the chat with your crappy code samples
learn to pastebin
 
5:13 PM
Yeah I'm not feeling it tbh
lol "spamming up the chat"
two code samples to which SO applies a scrollbar
quit your whining
 
my bad... examples are here if anyone cares: docs.unrealengine.com/latest/INT/Programming/Slate/Widgets/…
 
user3010322
To be honest, that's the only part of UE4 that I could immediately grok and made sense.
 
user3010322
Everything else was fuck-all hard to understand.
 
got no food. need to go shopping. cba. bleh.
 
what it really sums up as is "I wish we had named arguments, but we don't, so let's just hack them in a shitty way"
I sympathise with not having named arguments but if you're so desperate to hack them you could at least do a better job of it
 
|◔◡◉|
 
@StackedCrooked I think @LucDanton has a similar implementation in his library.
 
chocolate is good
 
I remember around 2006 when my colleague first told me about uTorrent. It was so much better than the other software torrent clients at that time.
 
damnit, i don't understand anything people do with templates.
 
5:29 PM
Kinda like how Google was so much better than the other search sites back in the early 2000s.
 
@Blob Welcome to my world \o/
@StackedCrooked Difference is, google is still the best search engine :P
 
Agreed.
 
I finaly managed to d/l qBitTorrent
 
@StackedCrooked I often ask myself if Google's gotten worse or if my expectation of getting information fast has just gone through the roof
 
@MartinJames Use Transmission
 
5:31 PM
@Jefffrey qbittorrent is fine too.
i prefer transmission, though
 
@Pris Google used to have a lot of fun "lab" projects like "Google Sets". I think it's a pity they stopped all that.
Especially Google Code Search.
That used to be one of my top visited sites.
Anytime I had trouble figuring out some arcane api I was able to find the code sample that did more or less what I wanted to achieve.
Like embedding a GStreamer video in a XUL document.
Or NSIS installer routines.
Etc...
 
@StackedCrooked I tried to make GStreamer work on windows, I wanted to be able to a) save hearthstone twitch streams b) compile deck lists from them
 
GStreamer can be a real pain. Anytime you want to do anything useful you have to rely on the "bad" or "ugly" plugins.
Maybe things have improved.
 
@StackedCrooked add task dependency :]
 
A task can call post() during it's invocation.
@Pris You mean like a flow-graph?
 
5:41 PM
@StackedCrooked We should make good plugins :P
(not that im capable of this, so by we i mean you)
 
@StackedCrooked yeah. task C depends on task A and B to complete
 
@Pris Erm ...I'll leave that as an exercise to the reader :P
 
user1804599
This is nice.
 
user1804599
Static type checks are good.
 
5:46 PM
@LightnessRacesinOrbit
 
I don't get it
 
Meh - qBitTorrent UI status = 'Ugly'
Listview column header text left-justified, column data rt-justified equals way fugly:(
Looks like fucking Qt shite.
 
cough Transmission cough
 
@Jefffrey OK, yes I heard:) One pile of crap at a time...
 
5:52 PM
Transmission is best torrent client on Mac.
Haven't seen windows version yet.
 
TransmissionQt or something should exists for Windows
 
2 mins ago, by Martin James
Looks like fucking Qt shite.
 
Deluge is nice
 
user1804599
Mill is so awesome.
 
user1804599
This is the best compiler I've ever written.
 
5:54 PM
GPSL is better
 
@райтфолд isnt it the only compiler youve ever written?
 
Is 'functional', 'malware-free' and 'not fugly' possible on Windows BitTorrent clients?
 
@Borgleader only compiler this week*
3
 
@MartinJames Are you going to write one yourself
seems to me quite clear that torrent client developers need money and time to make it functional and not fugly, so they need to get paid by malware makers
 
user1804599
@Borgleader no
 
user1804599
5:57 PM
But it's the only one that statically checks data types.
 
@Puppy I would be happy to design a 'real' Windows UI, (ie. not Qt).
@Puppy lol - no escape:(
 
user1804599
I came to the point where I want to find the most specific common supertype of a set of types.
 
you need similar functionality anyway.
 
Xeo
@MartinJames qbittorrent is fine, so far
 
user1804599
Currently it always resolves to the top type in that case.
 
Xeo
5:59 PM
deluge is also good, but has a gnome-y look to it, which you may or may not like
 
@Xeo Maybe on Mac/Linux it can be looked at without projectile vomiting.
 
A web interface on top of rtorrent would be nice.
 
@райтфолд Ok, I bite. What's Mill?
 

« first day (1603 days earlier)      last day (3330 days later) »