« first day (2209 days earlier)      last day (2740 days later) » 

12:00 AM
@nwp
@nwp asked on the other lounge, would you please try and answer? (If you know how its done)
 
@Xeo That guy is really good lol
I remember reading this answer by him before: stackoverflow.com/a/39396999/1381108
 
12:16 AM
@AlexM. There's also O(N) heap creation--kinda, sorta the same way.
 
did anyone here use brain.fm
I'm thinking about buying it for their focus music
it's basically music that gets played during puzzles in games and sounds very sci-fi
feel like adam jensen when working
(the music is AI generated)
 
nwp
@AlexM. do they basically play this?
 
@nwp it sounds different from the one I reached when seeking randomly in the first vid
in the yt video I'd describe as making me want to sleep
the brain.fm music keeps me alert
 
nwp
well, if it helps you concentrate it is totally worth it
 
you can give it a shot
it has free sessions
 
nwp
12:24 AM
I would be too cheap to pay for anything on the internet that is not delivered to my door
 
gonna use the free stuff until tomorrow evening and then decide if I want it or not
> I've listened to Brain.fm since this past February, and it is truly amazing.
They have Focus, Relax, and Sleep, but I've only ever listened to Focus. It's like this steady stream of some kind of electronically generated music that changes each 30 minutes. I set it to 2 hours, and then I usually take a small break when it ends. I'll turn it on and literally get into the zone immediately; writing line after line of code without even realizing how quickly I'm working. It's like getting on a train to the Matrix or something.
that's pretty much the feeling lol
I'm basically this
 
@AlexM. I'm not entirely convinced this is a good thing. Robert C. Martin has repeatedly expressed the opinion that being in the zone makes you feel productive and infallible, but actually does nearly the opposite. From The Clean Coder: "Avoid the Zone. This state of consciousness is not really hyper-productive and is certainly not infallible. It’s really just a mild meditative state in which certain rational faculties are diminished in favor of a sense of speed."
He goes on to say that you will write more code, but a lot of that is from losing sight of the big picture, so you're more likely to need to throw it away and rewrite completely (and obviously, doing much of that loses more than you could ever hope to gain from being in the zone).
 
Uncle Bob says many things
 
@AlexM. He does. A few of them even have some sense to them. I'm not sure where this falls--from what I've seen, it depends on the code you're writing. If you have to write a bunch of boilerplate, I think it works well. If you're doing real design work where you need to think about overall design...a lot more likely to lead to problems.
 
only one way to find out!
gonna see how it ends
 
nwp
12:43 AM
@JerryCoffin So you are saying Joel's concept of quiet working conditions for programmers so they are not ripped out of the zone every couple of minutes was just a clever trick to get ahead of their competition and cubicles were the way to go all along?
 
@nwp I doubt it. I think there's a big difference between being able to concentrate on what you're doing (definitely good) and being in the zone (might be good, but not nearly so clear).
 
12:55 AM
the whole concept sounds way too specific to each individual, not to mention each type of work done at the moment
to even think about generalizing the way Bob does
 
@AlexM. Probably. But a strong stance against what many others advise tends to sell a lot more books than: "it may or may not work for you."
 
tenant is 4 weeks behind in rent, the house is rented out at $525 per week but current market value is somewhere between $580-$610 per week
no $ in the next 2 days I will start kicking ...
 
nice, I can pick each type of focus music I want
that's the adam jensen focus music
 
@R.MartinhoFernandes Visualizations of data like this are always neat. This kind of stuff interests me a lot: ways to visualize data.
 
1:15 AM
hey TIL I have the same birthday as adam jensen that's cool deusex.wikia.com/wiki/Adam_Jensen
March 9th, 1993
 
1:49 AM
get off my lawn
 
you can only tell that to a person, not a native bird or animal that happens to step on and take a dump on your lawn or else rspca will come & own your butt
 
@jaggedSpire Is somebody here claiming to be old?
 
@JerryCoffin well you see, I couldn't expect to immediately retrieve you so I had to take on the responsibility, despite being less than a year the elder.
why four rows?
 
2:13 AM
the blank line is all incognito mods
 
ah, of course.
and the rest of the fourth row as well I imagine
you need lots of mods to keep a lid on this place
after all, we're only a month away from the anniversary of the Nooble Incident
is that what we're calling it?
I don't know, maybe the Madara Incident
 
<horror>invisible visitors</horror>
 
the Bartek Boondoggle?
 
@jaggedSpire It's halloween
Please don't use unnecessary things like Google Test or dozens of includes in your minimal code. — sehe 55 secs ago
 
@sehe ...is that a Star Trek reference?
 
2:25 AM
I dunno. Never watched it
 
One difference between a newbie & a vet when posting code: knowing which #includes are needed for the code posted :p
 
@sehe I thought you might be obliquely mentioning the "There are FOUR lights!" scene with Picard, which I'd only heard about
 
It's easy to know ":p". Just delete the lines and see whether it compiles
@jaggedSpire Sounds like an obscure reference. I would never be
And with that, I'll have to lie down
It can't be all lies up :)
n.n.
 
@sehe heh
night
 
 
2 hours later…
4:42 AM
cute fluff 2 the rescue
 
 
1 hour later…
6:05 AM
> Pesticides are toxic by design — weaponized versions, like sarin, were developed in Nazi Germany — and have been linked to developmental delays and cancer.
Author goes full Godwin in a NYT article on genetically engineered crops.
 
But muh RuBisCO!
lol, it catalyzes like 3 molecules per second
 
(Going full Godwin is not all that is bad in the article, but it's the most obviously silly part)
 
Sam
6:27 AM
Hello Lounge!
 
I want to be generically modified to be fit, intelligent and live forever </day_dream>
 
6:50 AM
@Telkitty Even if scientists discover a theoretical way to do this, achieving immortality in practice would be impossible because genetic programs would have bugs too.
 
thus the day_dream tag
also, I wouldn't mind cloning myself a couple million times :p
 
7:03 AM
@R.MartinhoFernandes oh cool, if I memorise that I can guess where some news take place
 
Did they outsource tech support to India?
 
> Status: The default behaviour is malicious.
B: You can change the default.
C: Closed.
Status: The default behaviour is malicious.
We can still edit audit messages.
I also love how the same idiot goes "Docker uses the iptables rules to provide isolation across networks, masquerading, ICC etc. So by default we can't disable iptables" and later on the recommended solution is "you should disable iptables" without considering that maybe I want "isolation across networks, masquerading, ICC etc" without the security holes.
 
@R.MartinhoFernandes So in essence, they gave you a solution to your problem, but leave the bigger problem alone. I guess they learned how to keep their jobs by looking busy
 
@Aaron3468 It's not a solution to my problem.
I don't want to disable "isolation across networks, masquerading, ICC etc".
 
sup guise
 
Hacking my way around broken OEM drivers/sdks for really expensive equipment, while procrastinating on writing a thesis...
 
sounds like a busy schedule
 
7:37 AM
smoke C++ everyday
 
@R.MartinhoFernandes They didn't mean "we cannot" or "your problem is solved". They meant "we're not competent to change it"
 
Almost tempted to open a separate bug titled "Add iptables=file_not_found flag for isolation across networks, masquerading, ICC etc without security holes".
 
Xeo
lol
 
8:02 AM
Haha, that sounds like a better solution ^^
Communicating with devs is not always easy because it's common to assume code is okay if it compiles
 
8:13 AM
@Aaron3468 Automated tests were invented by an angry customer who faced with this issue once too often. True story :)
 
This is also why dynamically typed languages are never okay
 
> For publishing the ports you can restrict the IPs with the format ip:hostPort:containerPort so that the external IPs are not open.
Does that hold any water?
 
Ven
why can't I print $es in lldb :(
 
did you try $ex
 
8:29 AM
try register read
 
Ven
nope.
it's not there..
 
register read -all
 
Ven
@Mikhail I'm retarded. Thank you!
 
@LucDanton $ex is only for mult, no?
 
Ven
@sehe innuendo.
 
8:31 AM
It wasn't mine
 
Ven
that's what she said
 
@sehe not in protected mode
 
Ven
@Mikhail ... nope, still doesn't show es
 
9
Q: Why 64 bit mode ( Long mode ) doesn't use segment registers?

HenrikI'm a beginner level of student :) I'm studying about intel architecture, and I'm studying a memory management such as a segmentation and paging. I'm reading Intel's manual and it's pretty nice to understand intel's architectures. However I'm still curious about something fundamental. Why in th...

 
Ven
cmpsb uses %es
Or at least lldb shows me cmpsb %es:(%rdi), (%rsi)
 
8:38 AM
Yes, so it looks like they didn't fully disable them. I believe thread local storage uses GS, so maybe you can grab that...
 
Ven
:[
CS FS and GS are printed indeed.
I'm not on windows btw. Only windows 64 uses GS or TLS
 
GS for TLS
Anyways, in MSVC you can go to the revisers panel and marvel at them: CS = 0033 DS = 002B ES = 002B SS = 002B FS = 0053 GS = 002B.
 
user1804599
CS:GO
 
user1804599
7
Q: are they adding copy_if to c++0x?

rlbondIt's very annoying that copy_if is not in C++. Does anyone know if it will be in C++0x?

 
user1804599
Why not a function that wraps an iterator in an iterator that skips some elements?
 
Ven
8:50 AM
@Mikhail lldb on mac :/
 
user1804599
NSPredicate is cool.
 
user1804599
Defunctionalization is cool.
 
@LucDanton brilliant
@rightfold Making programs more defunct
 
user1804599
Making programs more portable. :D
 
user1804599
Functions are opaque, defunctionalization solves that.
 
user1804599
9:02 AM
Get rid of functions, thus get rid of opacity.
 
Many languages prove that functions need not be opaque. Not even in C linkage model or with impure functions
What you seem to be after is "declarative program specification is cool".
 
user1804599
Opaque means can't inspect their structure.
 
user1804599
You can't take them apart and look inside.
 
user1804599
You can only call them and observe their output.
 
Who cannot.
 
user1804599
9:05 AM
The program.
 
Wait. Are the objective C attributes (?) runtime reflectable?
 
user1804599
NSPredicate doesn't use functions, is the point. :P
 
Seems to be your non-point yes.
 
user1804599
You could do a predicate as a function T => bool.
 
user1804599
But then all you can do is apply the predicate to a value.
 
user1804599
9:07 AM
@sehe Objective-C has reflection for class properties and methods.
 
That is nice. That's arguably the key ingredient here. What's making things transparent is the reflectability.
 
user1804599
You don't need reflection for inspectable predicates.
 
And even then I maintain functions aren't opaque to the compiler in many languages
@rightfold How do you inspect them without reflection?
 
@sehe transparent mirrors are the worst though
 
user1804599
@sehe You just need a Predicate data structure that tells you how it works (i.e. AST), and a function Predicate => (T => bool) to convert the predicate to a function.
 
9:09 AM
@LucDanton I make mine wear clothes so I can see them
IRTA "minors" // FML
 
user1804599
Or a function Predicate => String to convert it to a SQL where clause. Or a REST API query string. Etc.
 
well
 
Fucking hell. Just broke a glass. Glass everywhere.
 
user1804599
You don't need reflection to read a field from a struct in C++ either. :V
 
@rightfold Tell me how having an AST is not reflection (on steroids)
 
user1804599
9:11 AM
It's not the AST of the host language.
 
user1804599
It's specific to predicates.
 
You keep moving the context.
What host language. I thought we were talking about NSPredicate, which kinda implies Objective-C(++?)
 
user1804599
Albeit NSPredicate does use reflection to evaluate the predicate on objects, so it can read fields from objects by name, but that's only necessary because Objective-C has a shitty type system.
 
Ven
how dare you :o
 
9:24 AM
Sigh. I think I got all (most?) of the glass.
Worst of all: the coffee is undrinkable for some reason.
 
user1804599
 
user1804599
C# is a little cooler by providing typed quotations obscured as lambda expressions of type Expression<T>, but the example doesn't use that. You can do it without quotations.
 
I love C# for those. Expression<T> used to be a little rough around the edges. I should revisit with Roslyn
 
user1804599
It's a killer feature.
 
@sehe that only binds to a specific interface
it will still trample the firewall on that interface.
 
9:31 AM
Hahaha. I didn't even want to assume that much level-headedness
 
user1804599
But if just delegate bool Predicate<T>(T x), then you couldn't write ToSQL, or an optimizer, or etc.
 
Here you just wrote your own AST. Obviously, you have access to your domain objects at runtime
 
user1804599
Yeah.
 
user1804599
Can't wait for C# 7 records and pattern matching.
 
user1804599
No exhaustiveness check though.
 
Xeo
9:34 AM
if (p is AndPredicate) {
    var p_ = p as AndPredicate;
For some reason I thought C# had this thing where the type of p changes inside the scope.
 
user1804599
Nope, but it will be possible with pattern matching.
 
user1804599
switch (p) {
  case AndPredicate:
}
 
user1804599
or something like that
 
user1804599
You could see ImmutableDictionary<K, V> as a sort of defunctionalized Func<K, Optional<V>>.
 
user1804599
Though necessarily finite.
 
9:48 AM
IRTA Fuck, Optional<V>
 
user1804599
XD
 
Ven
@Xeo C#7
@Xeo that'll be if (p is AndPredicate andp)
 
nwp
I wish people would associate race conditions with UB and not with bad interleavings.
 
Xeo
@Ven i.e. if (auto* andp = dynamic_cast<AndPredicate*>(p))?
 
user1804599
switch (p) {
  case ConstPredicate(value):
    return (x) => value;
  case AndPredicate(a, b):
    return (x) => ...;
}
 
user1804599
9:55 AM
More like this ;p
 
Ven
@Xeo yeah
 
user1804599
records ftw
 
Xeo
I know some language has it where you don't need to create a new variable
and the type inside the scope simply changes
 
user1804599
Flow, TypeScript, Hack
 
user1804599
// I've seen many people use the following code:
Type t = typeof(obj1);
if (t == typeof(int))
    // Some code here
 
user1804599
9:56 AM
lol ITT many people suck
 
shouldn't typeof(int) be Type
 
user1804599
typeof(obj1) is only equal to typeof(int) if using obj1 = int; lol
 
@rightfold Why not use F# instead of waiting for C# to catch up
 
user1804599
No, typeof is typeid on types.
 
user1804599
@sehe :O
 
9:58 AM
@rightfold terribad
 
user1804599
Yeah it's a horrible name for this operator.
 
also lol not first-class types
Last week-ish I accidentally implemented typedef in Vapor when I introduced type variables.
Oh wait, Type t implies types are somewhat first-class.
But having some operations on them behave differently is... badbadbad.
 
Ergh... theses deployment scripts are lest predictable than Shrodinger's cat
 
That's a common property of all deployment scripts. :D
 
lest best
 
user1804599
10:12 AM
I don't know if dependent types work well with side-effects.
 
user1804599
2 days ago, by Tony The Lion
user image
 
user1804599
I still don't get this.
 
user1804599
Can somebody explain it to me?
 
"No homo" meme, followed by someone implying they found it extremely funny.
 
user1804599
Is the joke in the fact that the guy found it funny?
 
10:16 AM
I don't think so, no.
 
user1804599
Hmm.
 
@Griwes worse still... it's a maven based project... so all these concepts of compiling, packaging, deploying exist :'(
@rightfold It's ironic if you perceive anal sex to be an exclusively homophobic activity
 
user1804599
I don't.
 
user1804599
Anal sex occurs between people of different sexes.
 
user1804599
wait
 
user1804599
10:21 AM
why would anal sex be homophobic?
 
user1804599
is this some kind of "erasers are misogynistic" kind of bullshit?
 
user1804599
guys I am so confused
 
user1804599
let's not talk about this facebook post anymore :(
 
people are strange
he he he, I still have part of my Halloween costume on, my delightfully colourful nails :D
 
10:23 AM
That's all there is to the joke.
 
Took me long enough to paint them, I'm not going to just take it off ¬_¬ as it would take too long for that too
 
user1804599
I know the meme but I don't see how it is funny in relation to the rest of the text.
 
user1804599
@thecoshman rule 34 32
 
... the perceived idea that entering a man's rectum makes one gay
@rightfold relevance?
 
user1804599
@thecoshman That's not funny, that's silly.
 
10:26 AM
@rightfold Not as häufig. I'd go as far as to say other than male homosexual intercourse have more options in this regard
 
user1804599
And your local strapon retailer would be disappointed.
 
@rightfold I agree
 
It is a silly notion, but if one were to agree with it, or at least accept it momentarily, then you could be amused by the irony of the statment
@rightfold That's not very imaginative
 
@rightfold You missed the point. Strapons make /even more/ options.
 
10:33 AM
loungescussion
 
user1804599
Classic Office Space.
 
Classic Maaskantje Moustache
 
user1804599
XD
 
user1804599
SO EIN FEUERBAL JUNGE
 
@rightfold Well I'm sure that's funny somehow...
 
10:38 AM
it looks like Boost.Context has an apply helper to invoke a functor over tuple elements as an implementation detail
unfortunately, using it with std::tuple triggers an ambiguity with std::apply found via ADL
 

« first day (2209 days earlier)      last day (2740 days later) »