« first day (1814 days earlier)      last day (3134 days later) » 

12:00 PM
e.g. all of the people calling mathematics "stupid"
and the like
 
The CppCon2015 slides are finally on GitHub :D
10
 
Hi little fuckers
 
@ʎǝɹɟɟɟǝſ Hi you :3
 
@BartekBanachewicz I'm just saying I would need to read up on Haskell before being able to parse that, and still v0v
 
    pub fn distance_between(&self, a: &Id, b: &Id) -> Option<f64> {
        let ma = self.data.get(a);
        let mb = self.data.get(b);

        match (ma,mb) {
            (Some(a), Some (b)) => Some(distance(&a.position, &a.position)),
            _ => None
        }
    }
buttiful /cc @elyse
I found it more readable than the .iter
 
12:05 PM
Yay Bartek is back :)
 
user1804599
ok
 
Ell
@BartekBanachewicz what is wrong with calling mathematics stupid?
 
Rustek you mean
 
@BartekBanachewicz there's a bug in that code
 
oh right
/Users/bajtek/Projects/rust/src/database.rs:59:29: 59:30 warning: unused variable: `b`, #[warn(unused_variables)] on by default
/Users/bajtek/Projects/rust/src/database.rs:59             (Some(a), Some (b)) => Some(distance(&a.position, &a.position)),
                                                                           ^
 
12:06 PM
Wait
 
lol /Users/bajtek/
 
what about it
 
Looks like that code is doing too much
 
bajtek
 
@ʎǝɹɟɟɟǝſ it's telling you the distance between two IDs
 
12:07 PM
What's an ID?
 
since IDs are introducing reference semantics the whole thing complicates
@ʎǝɹɟɟɟǝſ a primary key
 
And it returns an Option? Why?
 
because the key could be bogus?
 
Because they might not be in data
 
I could make a function ID -> ValidID but what does it buy me
sure, this function skips the check (at a cost of an informal invariant because no dep types but let's leave it for now)
 
12:09 PM
valid_id sounds like a nice type
 
> what does it buy me
the user still has to be notified somehow if his ID was bad
in this case doing "your query failed, fucker" is enough I suppose
it's the fastest I can do to not crash, in other words.
another layer presenting debugging information could be added separately
 
I'm curious, how is the distance between two keys defined?
 
@ʎǝɹɟɟɟǝſ it's a spatial distance
 
@sehe I have it starred but not very active, why do you ask?
 
12:13 PM
^^
 
too ugly, or kinda neat, to use <kbd>...</kbd> inside <pre><code>...</code></pre> to provide clickable links to references?
 
That pic could be more general I guess.
 
0
A: how to assign a value to vector <type*> bar*

Filip Roséen - refpNote: si have better be initialized somewhere prior to trying to access members of the pointed-to container. You will need to either dereference the pointer, or use some of the available member-functions that provide access to the the elements within, and since the elements are of type STARTUP...

 
@sehe Radical Islam to the rescue!
 
@sehe no one can be this fucking stupid
 
12:15 PM
@BartekBanachewicz Never underestimate people.
 
Rustek underestimating the stupidity of Womankind
 
> Never underestimate the power of stupid people in large groups.
@GregorMcGregor it's not about being a woman, you sexist pig
it's about being a fucking dumbass
 
@sehe It can't be true
 
fucking aquatic sex
she does have nice tits though
 
troll
 
12:16 PM
@LightnessRacesinOrbit, I need some vector for my STARTAPINFO handlers, then I can use it for CreateProcess, SuspendProcess, etc. how can I do it correctly? — FAQEnD 13 mins ago
 
@GregorMcGregor no
 
sigh
@BartekBanachewicz read context :) /cc @ʎǝɹɟɟɟǝſ
 
@sehe Well. I guess they could throw her back to drown to undo the damage that man made while touching her?
 
@GregorMcGregor did you really just say that
@FilipRoséen-refp SHATAHPINFO*!
 
12:17 PM
@sehe What context?
 
tits are universal
 
@ʎǝɹɟɟɟǝſ the relevant context i.imgur.com/p073jQT.png
 
Where is it?
 
@sehe SHATAHPINFO, that's funny!
 
@FilipRoséen-refp That's how I read that
@ʎǝɹɟɟɟǝſ in front of your nose
> The Stately Harold is a satirical website. None of the stories have a grain of truth to them and the opinions do not belong to real people.
 
12:19 PM
phew
3 mins ago, by Bartek Banachewicz
@sehe no one can be this fucking stupid
told ya
 
Thanks God
 
@sehe STAHPINFO*
 
> Him, being a white man, felt he had the right to possess my milky body - to put his rough hands on my innocent flesh and command my body to come with him to the surface.
 
@GregorMcGregor works too
 
@ʎǝɹɟɟɟǝſ here's the whole thing github.com/bananu7/Thermite
 
12:20 PM
@AnalPhabet Are you kidding
 
@sehe IOW The Stately Harold is The Onion, but more believable
@GregorMcGregor nope
 
@AnalPhabet nope
 
BTW @sehe I did take the time to throughly rework my profile and flavor text just for you.
 
> PotatOS is an OS that runs portably across different varieties of potatoes.
Nice
 
no commandline way to install a crate using cargo?
expected cargo install stopwatch to work
 
12:21 PM
@JohanLarsson find / -iname '*rust*' -exec rm -rf {} \;
 
@BartekBanachewicz Maybe distance_between should just receive Entrys
 
Rust is still pretty esoteric
Haskell has much more mature ecosystem and sadly it can be felt when using both
 
@GregorMcGregor joke?
 
Of course not
 
@JohanLarsson good comeback
 
12:22 PM
I don't trust rm :)
 
it's funny to learn some experimental niche languages like Rust to take a break from mainstream Haskell coding though
 
@GregorMcGregor You forgot sudo rm -rf
 
@BartekBanachewicz lol
 
> mainstream Haskell
 
@JohanLarsson :)
 
12:22 PM
So this is what I get :)
 
> industry standard Prolog
 
@AnalPhabet of course not. Installing always requires a root shell. It's irrelevant for the command
 
> production critical JavaScript
 
> fast clojure
 
@GregorMcGregor if Haskell isn't mainstream for you then you're a PHP programmer and I don't care about you
 
12:23 PM
I am a PHP brogrammmer
 
@JohanLarsson I only dabbled short enough in rust to know how to build a package from source with cargo
 
@GregorMcGregor That's sadly true
 
@GregorMcGregor Your last words?
 
The only way to stay sane in programming is to ignore 99% of people, languages, tools and ecosystems
6
 
12:24 PM
@sehe Some "package managers" let you install to ~
 
@AnalPhabet that too. Cargo does IIRC
This gregor guy knows his way around chat. Welcome, brother
 
cargo looks pretty nice thus far, except from the commandline issue
 
have you made a module yet
 
depends on what it means
 
> the commandline issue
depends on what it means
 
12:25 PM
Welp, Factorio time
Maybe I'll get robots working today :)
 
@ʎǝɹɟɟɟǝſ i want to build a rocket
 
@sehe I'm a clicker
 
ITT @ʎǝɹɟɟɟǝſ is suicidally bored
 
@ʎǝɹɟɟɟǝſ oh you already have a map
 
@BartekBanachewicz A what?
 
12:26 PM
there's a rocket at the end of the game right
I'd like to build it
 
Oh the endgame rocket defense?
Yeah, me too
 
massive spoiler alert
 
spoiler alert in a sandbox game
makes sense
 
@JohanLarsson you're in good company with the Rust community, it seems:
there's a pride in the tech world about command line tools, and knowing all of their options. They don't consider the cognitive load of cli
Look at the guy's profile. He's something of a Rust buff
 
12:27 PM
Oh no command lines are hard how do I tar xfhasjagsdjagsdjsahdgajd thing.tar
 
I wish we could get rid of CL already
 
@JohanLarsson wait so you'd rather install modules by dragging the big colourful icon to your big modules folder
maybe you should buy a mac
 
guess it is a matter of what one is used to
 
It's the most underdeveloped tool in the whole CS history
 
@BartekBanachewicz I wanted to do cargo install stopwatch and have it fetch the current version
finding version and adding dependency feels like it should be automated
 
12:28 PM
@GregorMcGregor tar -xaf thing.anysupportedalgorithmextension
-xaf is love, -xaf is life
 
user1804599
src\value.rs:54:17: 54:27 warning: literal out of range for i32, #[warn(overflowing_literals)] on by default
src\value.rs:54                 0xcafebabe.hash(state),
                                ^~~~~~~~~~
 
user1804599
lololol
 
-?
 
so how does SQL deal with bad IDs
 
Shoots 'em in the head
 
user1804599
12:29 PM
@BartekBanachewicz What are bad IDs?
 
@elyse nonexisting ones
 
user1804599
When?
 
imagine I insert entities (1, 'foo') and (2, 'bar')
 
closed as: too broad
 
what happens when I make a query that says "fetch entity with fst == 3"
 
12:30 PM
empty set
 
user1804599
You'll get an empty result bag.
 
what if my query is more complex?
 
Why does that change anything?
 
user1804599
Iff you mean SELECT * FROM entities WHERE id = 3, because what you showed isn't SQL.
 
Either the result set is empty or it's not
 
user1804599
12:31 PM
@BartekBanachewicz Please be specific.
 
user1804599
SELECT * FROM entities WHERE id = 3 AND name = 'foo' is more complex, and also results in an empty bag.
 
Independently from how complex the query is
 
@elyse what if wanted to concatenate the other field of entities with keys 1 and 3 but 3 was nonexistent?
 
AFAIK the relational model only deals with result sets
 
and the return was supposed to be a string
 
user1804599
12:32 PM
????
 
user1804599
SELECT id || name FROM entities WHERE id = 3 also results in the empty bag.
 
@ʎǝɹɟɟɟǝſ hmmm
 
user1804599
SELECT SUM(id) FROM entities WHERE id IN (2, 3) results in a single-row result containing 2.
 
The relational model is pretty slick
10/10 would date again
 
12:34 PM
I don't think it would work for my purposes
I need to look at NoSQL dbs instead
3
 
what's funny in that?
 
everything
 
@GregorMcGregor That's silly, -delete exists (and will be faster :P).
 
@GregorMcGregor like what?
 
12:36 PM
@Griwes I didn't know!
 
> Get the value of key. If the key does not exist the special value nil is returned. An error is returned if the value stored at key is not a string, because GET only handles string values.
hm
> the special value nil
 
user1804599
SQL queries always return lists of rows (aka records aka tuples).
 
user1804599
They're actually ordered, I forgot.
 
Hahahahahaha an IP of 0,0,0,0
 
12:41 PM
That's just the sequence operator :)
@JohanLarsson Could not resist:
in HTML / CSS / Web Development, 1 min ago, by sehe
@Rvervuurt https://onzetaal.nl/taaladvies/advies/mannelijk-vrouwelijk-woord
 
I'm impressed by MS Edge, it's really fast
Or at least feels fast
 
They cut down on misfeatures
Oh this is great :(
"Abusing Network Surveillance Cameras" talk of @GianniGnesa cancelled https://twitter.com/HITBGSEC/status/650606272027332608 http://t.co/C7IOlyb36i
 
*arrives home* ahh good, now i can be ugly in peace
(you can see the generation gap in twitter interests :P)
 
@Borgleader That gets old soon. Allready unfollowed
 
12:45 PM
that might be so
i may have followed him after you which might explained why i havent done it yet
 
Imagine your 16-year-old daughter telling you she got Windows 10. https://twitter.com/JaromirHorejsi/status/650551722142756864
That is humor
 
hmmm wut
> error: expected one of ), +, or ,, found ->
 
cargo new benchmark --bin
 
Wow. Is that libclang's lexer
Or perl
 
can't believe im typing this
 
12:48 PM
Or ... wait. It's Haskell
@JohanLarsson You didn't :) You copy/pasted it!
 
I'm sure the lounge will be delighted:
Cinder's biggest release to date is out, 0.9. Complete OpenGL rewrite, GLM for math, new samples, new docs, new site https://libcinder.org/notes/v0.9.0
 
do people actually use cinder
 
@sehe I actually wrote it, twice, once in the comandline and once in chat
 
23 mins ago, by Johan Larsson
@sehe I'm a clicker
you suck
 
12:49 PM
yes
 
> Cinder is available for OS X and Windows under the BSD License. The latest version is 0.9.0.
 
of course not. That was the joke
 
ah
i find it odd that it would run on only 2 of the three platforms
 
uh okey so
 
It's a meme "doesXdoYyet.com" is always a statically served HTML page saying "No"
 
12:50 PM
soooo how do i write a signature for a function taking a function in rust
 
You head to the docs, find the tutorial and grep for HOF
 
their examples are shitty
they don't show anything important and circlejerk on syntax
 
Ahahaha. First google hit:
 
12:52 PM
> I don't mean this to be disrespectful to him, but RMS is clearly somewhere high up on the autism spectrum
 
should cargo.lock be gitignored?
 
IT'S IN CLOSURES
WHY ISN'T IT IN HOFs
 
Because capslock
 
i'm getting tired with this language
 
12:53 PM
I would assume it's irrelevant (advisory file locks etc.).
However, ignore it, of course
 
@BartekBanachewicz lemme read the book and get back to you
 
I think I'll leave it for another year and let it mature
because it doesn't really seem ready to be used at all
 
Hehehe.
 
@BartekBanachewicz Already? :D
 
Brateks gonna bratek
A good Bratek always blames his tools
 
12:54 PM
@BartekBanachewicz But isn't 1.0 and hence stability and backwards compat out already? :P
 
@Griwes you mean "only now"?
@Griwes doesn't mean it's actually usable yet
 
If you ask your classroom to paint the flame of the candle, you're going to get a wall of a whole lotta somethin else http://t.co/mDTp1R6JJ0
 
why did i post this... only LRiO would have gotten the reference -.-;
 
@sehe le source, gonna compare some stuff vs linq
 
12:55 PM
@sbi at it :)
 
Haskell is much more usable than Rust ATM
 
@BartekBanachewicz I mean, it doesn't seem like some stuff you just disliked will go away :P
 
@Griwes shitty examples?
well syntax for HOFs sucks but syntax is irrelevant
fn liftFromIds2<T>(&self, f: Fn(&Entry, &Entry) -> T) -> Fn(&Id, &Id) -> Option<T> {
 
@BartekBanachewicz picturing bartek with fingers in both ears while saying this
 
compare to
 
12:57 PM
comparing.....
 
inb4 haskell
 
liftFromIds2 :: ((Entry, Entry) -> a) -> MonadDB ((Id -> Id) -> Maybe a)
 
Haskell is so superior, it takes a mere 5 minutes to compose the equivalent
1 min ago, by Bartek Banachewicz
well syntax for HOFs sucks but syntax is irrelevant
 
@sehe this was supposed to back the former, not the latter part
 
How noble of you to back up claims that you announced "irrelevant"
 
12:58 PM
@sehe there's no direct equivalent of (&self) in haskell
 
Somehow I prefer the Rust syntax for function types... hides
The Haskell syntax makes sense only as long as all functions are curried.
 
Haskell is self-less. That's a good thing
@Griwes Which ... they are
 
inb4 "non-curried-by-default functions suck"
@sehe In Haskell, yes. Not in Rust.
 
@Griwes maybe not suck, but I don't see a reason to not have them
 
i fell like trying haskell again... ima go play vidya games
 
12:59 PM
@Griwes I kinda agree. For pure FP languages
 

« first day (1814 days earlier)      last day (3134 days later) »