« first day (2229 days earlier)      last day (2947 days later) » 

00:00
hmngn
i can't get rid of those small labels
mnmnmmmmmmmmhmmhhmgggggmrrrn
what am I doing wrong
too many connections probably, by the look of it
Ell
Ell
I agree, far too much connections.
;)
00:37
Hey everyone, I have a question.
What's the call in C on Linux to load a shared / static library?
@набиячлэвэли Oh. That was easy to find once I stopped looking for LLVM load in Shared Library.
I guess if I have LLVM Bitcode but call dlopen on a shared library LLVM won't complain about symbols it can't resolve.... maybe.
I'll have to write a test program and see.
@jaggedSpire blushes I didnt know I had that effect on you
@Borgleader Oh, you
Swoon, Borgleader. ♥
00:47
@ThePhD ♥
@jaggedSpire ♥
everyone gets ♥
@jaggedSpire I want a kitten :(
they are indeed adorable
01:42
So, I have a profile on OKCupid. My profile is obviously set up to look for women. Lately, the "browse matches" feed has been giving me people who are obviously men because they claim to be women in their profile. I wonder if they are that stupid, the men, that they cannot setup their profile right or a consequence of the ideology that recognizes 74 genders...
Ell
Ell
interesting
google just guessed "birthday cake" for "cake" and got it wrong
@wilx no idea
#include <dlncf.h> is not found... greeat.
@ThePhD It's <dlfcn.h>
01:58
So just calling dlopen( "libexternal.so", RTLD_NOW | RTLD_GLOBAL ); is not enough to get LLVM's LLI to notice the library.
I have to use LD_PRELOAD
Or, I have to make all external function calls loaded through a dlsym proxy...
Well. At least I know what I need to do.
02:20
@Telkitty you mean vicious
@jaggedSpire oh you meant the kitten ._.
@doug65536 so are kitties :p
those cute looking little bastards >_< we still <3 them 💗
02:54
knowyourmeme.com is such an awesome resource. I hope it never goes away. :D
 
2 hours later…
04:30
Loool
https://twitter.com/4Clearsky/status/800855430100418560
04:44
> We’re investigating the trades that led to the price spike, and in the meantime, we removed the recipes that would have used this item from today’s launch.
@GundolfGundelfinger anet financial regulatory cops are on the move!
...
welcome to last century
Market manipulation groups and financial regulatory committees have been playing the cat vs mouse game for tens of years now ...
all to keep economy at full employment
first, we introduce criminals, then we introduce the cops
then we throw in a couple of innocent civilians in between
05:16
> One day you'll be old. unless you keep bad mouthing the elderly like that.
05:31
hi anyone here familiar with c? the c lounge group is frozen so I went here instead
I have a question about enum though
Jan 30 '15 at 2:30, by Borgleader
"Hi I have a question about my retirement fund"
"Sir this is a convenience store..."
"I know but it's the only thing open at this hour"
... shudders
lol
there's a C lounge too?!?!
ok I think I got the point
thanks guys
05:33
in your defence I suppose activity is fairly low to non-existent just now so it’s not like your question would be disrupting anybody
@LucDanton so you C their side of things, then? :D
there's a room for questions tho
man wish we just got that bot going
I'msorryIcouldn'tstopit
05:35
I mean Luc seems to be ok as a bot
but he can't scale
yes I always take the stairs
05:48
my phone is ... broken, kinda
like 1% of the chance, it's acting retarded, totally not doing what it's supposed to do
Sam
Sam
Good Morning mates!
I'm not your mate, friend
06:22
I'm not your friend, buddy
I'm not your buddy, pal
I'm not your pal, guy
I'm not your guy, bro
I'm not your bro, friend
you just activated my trap card
cycle detection
07:03
new C# IDE by the resharper guys blog.jetbrains.com/dotnet/2016/11/21/…
Lol.
Is it gonna be like CLion?
I don't know
but I'm glad VS is getting some competition
after they gobbled up Xamarin
and rebranded Xamarin Studio to VS For Mac(tm)
fun fact: one of the reasons MS started adding more fancy features to C# in VS (ref counting, refactoring tools etc)
is because they don't want to pay JetBrains for resharper licenses within MS
:P
anymore
07:22
> I think all programmers are generally terrible people.
> I prefer waterfall to scrum.
Ven
Ven
Hi
Lol, those confessions.
@Ven Do you know of an algorithm in haskell that lets you skip over elements in a fold_left or an iteration?
Ven
Ven
@ThePhD using filter beforehand
@Ven maybe the condition for skipping relies on the accumulated val
skipping in that context means not participating to the accumulated val
Right, that's exactly what's going on.
07:33
right, you keep folding but you don't alter the acc
it's a skip
Ven
Ven
Then if...
Right now I just if (earlyreturn) then ( values... ) else
I don't know what that syntax is
you don't earlyreturn from a fold
But it feels not-as-efficient? Like, I know how many iterations I want to skip and everything.
I don't know...
Ven
Ven
Ah, you want a break. Not just skip a single iteration...
07:35
methinks your approach here doesnt ask for folding
Well. For loops and while loops are evil, so.
Trying to clean up my code.
you can always just write recursion but I don't care either way
@ThePhD lots of nuggets there
> Sometimes I wish the world would run out of electricity so I don't have to deal with users anymore. Why is it I can create a complex set of logical operations to make their life easier and all they can do is complain that it is too hard to create a password strong enough to satisfy the login process.
Ven
Ven
You're still not giving enough context :c
myFun collection acc = if condition then acc else myFun (rest (collection)) (acc + value)
or sth
@Ven if the context is that huge mess of a program from yesterday
it's better he doesn't
Ven
Ven
07:38
True...
@ThePhD you might be looking for guard
You just need to use the Maybe monad (as a return type) and then you can foldM
careful ur getting into sorcery land
if u do that
it looks like sorcery to me
Ven
Ven
(You need a MonadPlus). Code would look like foldM (\acc value -> guard (value /= 0) $> (acc / value) ) 100
ven has a point tho
not a lot of context
and my gut feeling is you wanna fold because you have no idea what to do
Ven
Ven
I have so many points I'm basically a code giraffe
Note to remove the "wtf" factor from my last example. guard (here for Maybe) returns Nothing (no value) if it got false, and Just () if true. (The value unit) Then $> fmaps: if Nothing, does not update, if Just, sets the value.
sometimes dropping the pile of code is best
I saw this happen a bunch of times around here
ppl ask for help
but instead of showing the actual code they begin with a bunch of sentences describing some abstract way in which they interpreted the problem and what they need help with
Ven
Ven
07:49
Yeah you can't tell if there's a XY issue without code
heaven forbid someone thought them not intelligent enough
gotta ask for help but gotta also not look dumb in the process
the end result is a string of sentences that don't make much sense and are just asking for help sideways kinda
I can't find the word didn't sleep at all
Ven
Ven
Also @ThePhD your initial version wasn't inefficient because haskell is lazy.
like language, like programmer
COWABUNGA
I keed phd he's not lazy
Ven
Ven
alex DeepM.
if anything he's too eager
DeepMonad
Ven
Ven
07:53
or DeepMind
I'll go eat two eggs
TWO. EGGS.
let the badassery sink in
I bet you eat at most one
@Ven Which version?
I'm not convinced the new functional version is better than the old imperative version, @Griwes @Ven
foldi basically does a for loop inside, so the code is near-identical...
the one with the smallest amount of code
take that one
If OCaml had laziness or iterators built in, I could easily see the win of the functional version over the old imperative version.
But it doesn't. The moment I generate a list that things in memory and its fucking everything.
Ven
Ven
08:11
@ThePhD you linked twice to the same
What is up
Ven
Ven
Ah, no, you just still use refs and all.
@ThePhD You lucky bastard
What.
08:15
@ThePhD Nothing it's just you probably have a lot of support for your studies and now project
Kind of jelly
... Support...?
Lol. Are you kidding me. I try to talk to my TA about what good code entails and he's just not at all interested in actually physically looking at the code.
@ThePhD Dude i bet you guys have a compilers class
WE DUN
You'd probably be better off learning it by yourself. =/
I really dunno
...I feel like I've wasted so much time already
Ven
Ven
The only thing you're trying to do here is split a string into a list right?
Fucking subway.
08:22
Yeah.
Ven
Ven
And you stole those search_forward from the recent stdlib?
No, I wrote that myself.
Ven
Ven
Ok. Why not use Str.split?
String.split_on_char is only available in a version fo OCaml the class is not using.
It also only takes a char, and not a string, to split on.
Ven
Ven
Do you not have that?
I said Str.split, not String.split_on_char.
08:28
> Error: No implementations provided for the following modules:
Str referenced from driver.cmx
¯\_(ツ)_/¯
How does your gravatar change every day.
Ven
Ven
I'm kinda tired of explaining that one...
Str is not in the stdlib, you need to add it
Maybe I'll find Str in Batteries.
Ven
Ven
You have batteries included?!
I don't.
Ven
Ven
It's an inria module, but no in the stdlib
user1804599
08:43
@ThePhD Something that can be parsed back into the same AST. For example, pretty printing the AST of f(a, b + (c * d)) may result in f(a, b + c * d).
I finished eating two eggs
that's TWO
Ven
Ven
who only eats a single egg
user1804599
who eats eggs at all
user1804599
they're fucking disgusting
user1804599
the only thing vegans got right
08:51
has anyone tried Jet brains Rider? I guess it's gonna be better than clion
Why would you compare those. AFAICT Rider doesn't C++
@AlexM. I bet you bully that chicken so it'll lay two eggs each day,.
no I don't
partly because chickens don't lay eggs :P
(hens do)
user1804599
so wtf is .NET Core?
Hi lounge
user1804599
08:53
its website does not list as the very first thing on the page what it is
user1804599
i.e. it's a worthless website that they could just as well have not made
you wouldn't like it anyway
it's not pure
@rightfold neither does your mom
Ven
Ven
@rightfold ASP.Net 2.0
user1804599
Right, my mom does not list what .NET Core is.
user1804599
08:55
@Ven cancer
user1804599
@AlexM. ew bugs
Morning every one :D
Ven
Ven
o/
user1804599
TIL "priority" has "prior" as a substring
user1804599
-1
Q: How to fill my matrix with numbers in C#

Stefan GanevI have a task to fill a matrix with numbers like this 4 7 9 2 5 8 1 3 6 and like this 1 8 7 2 9 6 3 4 5

user1804599
09:00
WTF
user1804599
Also probably six characters in APL.
Strictly speaking, every data collection is already always filled with numbers... just maybe not the ones you are wanting
However, it is made of atoms you are wanting.
Nobody ever thinks of the atoms.
user1804599
Atoms are dangerous, don't you know?
user1804599
Like dihydrogen monoxide.
Ven
Ven
09:08
@rightfold Did we already name it "The Lounge<C++> effect"?
user1804599
Atoms are a major component of most toxic substances.
user1804599
@Ven "it got lounged"
@rightfold and 1 and nil
github.com/louisdx/secretsexchange that project name sounds so rightfoldesque
user1804599
@Ven They made a change to PHP so that you can't do indirect calls to functions that inspect the caller's scope. XD
Ven
Ven
09:14
what where
user1804599
Ven
Ven
hhahahaha
user1804599
Now you no longer get segfaults when doing this with opcache. :P
Ven
Ven
better.
user1804599
$i = 0;
call_user_func('extract', ['i' => new stdClass()]);
++$i; // segfault because $i is assumed to be integer
Ven
Ven
09:17
:|
user1804599
:P
Ven
Ven
TIL PHP's developers are fucking awful at this JIT stuff
but did you really?
Ven
Ven
nah I mean it was pretty obvious that people who think strlen is a correct hash algorithm suck at programming.
8
user1804599
@Ven were
Ven
Ven
09:29
@rightfold they still don't have a JIT
user1804599
Writing a JIT is very difficult.
user1804599
However, they are doing things that make writing a JIT actually possible.
user1804599
Unlike Python which still has monkey patching lol.
@Ven A coworker of mine compiled PHP with UBSan.
It vomits errors even when you are just trying to get into REPL. :D
Ven
Ven
how about "I'm not surprised"
09:35
@Ven some people think strlen is a hash?
It is. Just not a very good one.
Understatement of the century.
Ven
Ven
;-)
Though I could probably think of contrived applications in which that particular hash could lead to good performance (where you'd use fixed-size pool allocators)
user1804599
The hash algorithm used for PHP arrays and objects must be good for general purpose.
10:02
@orlp I just found that title in unclassified documents, and the PDQ sort part made me giggle.
Ven
Ven
allons allons
@Ven wait... they don't do they?
Ven
Ven
@thecoshman They did for a long time.
They used it to hash function names. Hence why php's function names are so inconsistent: the author was trying to have as many different lengths as possible.
user1804599
I want to write a PHP interpreter in Haskell.
10:18
@rightfold just swan dive of your bed, it'll be less painful
Ven
Ven
@rightfold fun fact: the Language.PHP module has a <> that's Perl's <> instead of PHP's <> (which is just SQL's <>, that is, !=, or /= in haskell)
Is that confusing enough
user1804599
Yeah but was an acme package right?
Only confusing part is what you are saying is like the examples int eh brackets
Ven
Ven
@rightfold yea
user1804599
"Which is faster: != or <>? They have the same behavior." would be quite a nice interview question to weed out the people who have no understanding whatsoever of how programming languages work.
Ven
Ven
10:22
if you were to ask me that question I'd just get up and leave :P
user1804599
Exactly :trollface:
Ven
Ven
I remember when PHP developers used to argue about ' ' vs " " performance.
user1804599
> You can weed out unlucky applicants by throwing away 50% of the CVs unread.
@Ven what happened to you on Discord
Ven
Ven
it's been a month or so
@GundolfGundelfinger even asked me here vOv
10:27
I've noticed now that I've started scrolling back on #griwesware.
user1804599
no you talked on discord yesterday
user1804599
about some module system you didn't mention which
Ven
Ven
...no
he's talking about the lounge discord server
user1804599
:'(
user1804599
meany
user1804599
10:31
Your mom belongs in the bitchen.
Ven
Ven
don't talk about puppy like that
I instantly got 5 flags for that.
Ven
Ven
a bit expected?
not really
10:52
Eh, I missed it :(
Ven
Ven
...
wat
or rather why
@rightfold well... I'm sure there are some bad languages out there where != and <> don't function the same.
Plus you could argue about semantics
user1804599
/= and <> don't function the same in PureScript.
Ven
Ven
@thecoshman Perl.
@rightfold != is not /= ;P
user1804599
10:59
/= is the opposite of == and <> is semigroup append.
@thecoshman and D at one point (in terms of NaN)
@Ven the spec for range-for works in terms of declarations, whereas a constrained declaration is always a declaration. e.g. try removing all the begin/end members and you get the trivially empty int range behaviour again
@LucDanton Do you get paid for this?
gj merkdown
I decided to review the answer—thankfully the range-for spec is short enough
Ven
Ven
@LucDanton can't tag tehre
11:03
I’m curious
aw, can’t Unicode that away :(
RASPBERRY Pi 3 official Starter Kit is less than CZK 4000. Maybe I should try it finally.
gotem
I don’t question why there is a letter apostrophe to begin with (cc @R.MartinhoFernandes), I just roll with it
@LucDanton I want one (too bad it's probably small-ish on Asura)
@LucDanton Is it asparagus
we were told at least one case was thyme so… maybe?
(I’m not sure if it was just thyme or more than that)
Ven
Ven
why does git add -p drink so much vodka and tell me "no previous hunk" when I just fucking added one
11:08
@LucDanton In thyme we will know
@Ven that sounds like another of Gundolf’s specialties
oh, added
Ven
Ven
what the heck
@fredoverflow This is pretty awesome. :D
> Motivation
misguided
@Griwes indeed
> I write most comments in limerick. It makes all my coworkers sick. My comments are fine, (and mostly they rhyme!) but my scrum master thinks I'm a dick.
lol
@GundolfGundelfinger lol
"Unbound module option"
I fucking hate OCaml's build system. =/
Ven
Ven
11:56
:>
At least it's working
Now
this world is sad
Ven
Ven
you're sad
oh ffs
the next one is on a blog called "Stupid Python Ideas"

« first day (2229 days earlier)      last day (2947 days later) »