« first day (927 days earlier)      last day (4036 days later) » 

user1357851
11:00 AM
I would like to see jelly barbie dolls, & cat++ chew on them :p
 
is my newest code sample
 
Code dump!
 
man, these are getting a bit big to just dump in chat.
 
Still testing manually?
 
user1357851
t(){returnx;} // Something like that if you really want to paste on the chat
 
11:05 AM
hell, I need to re-implement practically every component, so whatever :P
besides
there has always got to be a first test.
 
Still sucking, then. (Tests are the most useful when you need to re-implement/refactor stuff)
 
:=, huh
 
I need to implement it before I can re-implement it :P
also
do you or Xeo have a move-aware optional implementation?
 
I have a minimalist implementation on a detail namespace in ogonek. Luc has a fancy one, too.
 
maybe I should stop implementing new features for a while and clean up my codebase
 
11:11 AM
template<class T> struct optional : unique_ptr<T> { optional() {} optional(T&& t) : unique_ptr<T>(new T(t)) {} };
 
room topic changed to Lounge<C++>: Its the wrong time of the month. [c++] [c++11] [no-helpdesk]
 
Also mine is buggy.
 
also
 
for some WTF reason, VS won't let me use the in-built unit tests.
 
11:12 AM
because suckage
 
@DeadMG they suck
 
I have to deal with raw arrays, shoot me
 
@R.MartinhoFernandes I don't see it.
 
I don't like the semantics of leaving the RHS non-empty with a moved-out shell.
 
11:14 AM
ahhh
 
there was some debate in the Committee IIRC whether a moved-from optional should be empty or non-empty with a moved-out value.
 
I think I prefer o1 = std::move(o2); having !o2 as postcondition.
 
eh
 
@LucDanton What does yours do?
 
IYAM there's no need to destroy it
 
11:16 AM
any Lua users here? is it ok that Lua has one big global namespace and all "modules" just dump their stuff there?
 
I have used Lua in the past, but only very little
 
I'm pretty sure that actually, you can use require(...) to put it in a table.
 
I don't know therefore, the answer your question
 
user1357851
I like people who think they write the best code - it is so generic, it is absolutely useless :x
 
@Abyx Plink @Bartek.
 
11:17 AM
@Abyx hi there
typical module usage is module = require"module"
but good libraries are written so that plain require works too
point is module.foo is the syntax.
how you achieve it it's up to you.
 
@R.MartinhoFernandes Same thing.
 
besides, in Lua _G is always a total mess, so it's really not a smart move to start shoving random things in there
 
not always.
Think sandboxed Rings for example
their _Gs are perfectly clean
 
Hmmm Lua reminds me somewhat of Python
 
not exactly unlike, but still a lot different
 
11:24 AM
yea I'm sure
 
No namespacing is never a good idea
You just end up reinventing it
See C libraries with function name prefixes
 
hmm unique_ptr<const T> funky
 
well, an embedded scripting language probably can live without namespaces
 
um, have you read what I wrote?
 
It's a plain bad idea from language design standpoint
I surely wouldn't touch a ~scripting~ language with no namespacing
 
user1357851
11:29 AM
you don't use shell, like ever?
 
You seem to love the ~ symbol Cat
 
Dammit. Dessert was strawberries :(
 
@R.MartinhoFernandes You don't like them?
 
Code organisation is good regardless of whether the code executes standalone or embedded in a host
 
@TonyTheLion he's a robot
 
Xeo
11:30 AM
@R.MartinhoFernandes Yum
 
Any popular language will be used to create complex systems, later or sooner... See STALKER mods for example.
 
@CatPlusPlus True
@StackedCrooked He still eats
he's a special type of Robot. :P
 
@CatPlusPlus Lua makes namespacing possible.
 
user1357851
like the one who curses a lot, a dirty mouthed robor
 
@TonyTheLion How can such a terrible thing make such good derivative products?
 
11:31 AM
@R.MartinhoFernandes :(
 
@BartekBanachewicz I know, I'm talking about language design not Lua specifically
 
Strawberries are the awesomes
what's wrong with you Robot?
 
I like their taste.
 
but you don't like their shape, color?
odor?
 
But the texture... Gosh.
 
user1357851
11:31 AM
strawberry flavoured butter cream cake is awesome
 
I knew it was going to be something like that
 
user1357851
back to scripting language, sometimes it is better to even write the webpage in html. Like I always said, you have to know when to use a batter axe and when to use a curving knife
 
what is the most reasonable way of adding deleter to unique_ptr that is a C function?
 
Xeo
unique_ptr<T, decltype(fun)> u(..., fun)?
 
ah that pesky decltype
 
Xeo
11:33 AM
decltype ♥
 
make_deleter_unique with inference :v:
 
@TonyTheLion So I'll eat anything strawberry-flavoured, but not the real things.
 
If you ever want to see happy crowds of people, I've found the place to look.
 
Fuck the real things.
 
@R.MartinhoFernandes right
 
Xeo
11:34 AM
@R.MartinhoFernandes But but... fresh strawberries! So yummy!
 
@R.MartinhoFernandes That was somehow strangely funny statement, so I starred it.
 
@CatPlusPlus make_unique<T>(std::forward_as_tuple(..blargs..), deleter = fun)
 
I have wondered, on occasion, if some of you don't have a tuple fetish?
 
Xeo
Tuples are awesome
 
^ fetish detected :P
 
user1357851
11:35 AM
^2nd that
 
Tuples are everywhere
 
I breathe tuples.
 
It's one of the most basic things
 
user1357851
not in the strawberry flavoured butter cream cake
 
I suppose. I guess I haven't discovered the Tuple enough yet.
 
Xeo
11:36 AM
@LucDanton I wonder if I'd like forward_as_tuple more if I didn't need to std::forward everything explicitly, like... std::forward_as_tuple<Ts...>(vs...)
Instead of std::forward_as_tuple(std::forward<Ts>(vs)...)
 
error : a reference of type "void (&)(const aiScene *)" (not const-qualified) cannot be initialized with a value of type "void (const aiScene *)"
 
Why are you making a reference to a function
 
Why do you have a reference to a function pointer?
 
I still haven't written my own. The Standard one is verbose, but not to the point that there's redundant information.
 
Xeo
lvalue reference to function, rvalue function pointer, not compatible
 
11:37 AM
@R.MartinhoFernandes I don't! :/ cc @Cat
 
    std::unique_ptr<const aiScene, decltype(aiReleaseImport)> scene;

public:
    Model(std::string const& path) :
        scene(aiImportFile(path.c_str(),aiProcessPreset_TargetRealtime_MaxQuality), aiReleaseImport)
 
inb4 decaying
 
That pointer probably shouldn't be <const T> btw
 
11:38 AM
Wait, what am I saying. I do decay the deleter, probably.
 
@CatPlusPlus aiImportFile returns const aiScene*
does that plainly mean that library is borked?
 
Uh if they take pointers to const and then cast the constness away to operate on it
 
their releaser takes pointer to const
 
Unless it's never mutated then okay
 
I wanna sleeeeep for a million billion years
 
11:40 AM
so is it even possible to get that to work?
const_casting to use non-const unique_ptr seems so fugly
 
You can destroy const objects, it's not really mutating
 
then why unique_ptr protests?
 
If the API uses that then leave it
vOv
 
3 mins ago, by Xeo
lvalue reference to function, rvalue function pointer, not compatible
set the deleter manually to void (*)(const aiScene*) instead of decltype(aiReleaseImport).
 
9 mins ago, by Bartek Banachewicz
ah that pesky decltype
 
11:43 AM
decltype(+aiReleaseImport). As much I like unary plus hacks, they tend to get people all excited though.
 
@DeadMG thanks
 
Xeo
Oh, sorry, should've been decltype(&fun)
 
@LucDanton whaaaaaaaa
 
Xeo
@LucDanton hey, address-of would be correct here, no?
 
@Xeo well it compiles
 
11:43 AM
@Xeo Possibly. Sorry, I'm not following too closely.
 
I am not going to use + but fuck what is that. o.O
 
Decaying made me think of unary plus.
 
Xeo
@BartekBanachewicz forces decay
 
Xeo
int arr[10]; decltype(+arr) == int*
4
 
11:44 AM
Don't show that to the kids!
 
Xeo
lol
 
God knows what ThePhD will do with it!
 
Xeo
haha
 
yea I was going to say that I'm not going to use that because I'm not ThePhp
 
NEW SYNTAX TO PLAY WITH
OH BOY OH BOY
 
Xeo
11:45 AM
@BartekBanachewicz Yeah, use &
 
@Xeo What the fucking fuck?
lol
 
Why did I have to catch a cold right when spring actually began
 
because catnip
 
This is a conspiracy
 
you need some
 
11:46 AM
I tell ya
 
user1357851
you sure it is not the hay faver?
 
user1357851
could be pollen allergy from the flower
 
@CatPlusPlus My kids day care everyone has colds now but the whole winter there nothing, got me sick which was fun
 
Meh
Sucks to be sick
I didn't get sick this year. Good me.
 
Yeah especially when you have a newborn at home
 
user1357851
11:49 AM
@TonyTheLion but you still manage to accomplish nothing, amazing :p
 
user1357851
Just joking
 
Can I call a functor and then forward it if I am traversing something recursively?
 
user1357851
Only if you are really skilled
 
user1357851
Otherwise I foresee buggy code
 
11:51 AM
@BartekBanachewicz Why not?
 
@CatPlusPlus <insert some incompetent bullshit about side-effects>
 
Well if the functor has a side-effect of making itself uncallable after use then I guess vOv
 
well, shouldn't we forward everything when doing recursion then?
 
user1357851
only if you have a lot of ram
 
11:54 AM
@ShafikYaghmour yep
 
NFC is fun.
 
No, it isn't.
 
near-field communications?
 
Normal Form C?
 
11:55 AM
lol NSFW ish text
 
that's what the guy was asking. Mifare is the manufacturer of tags and devices
which is actually non-standard. (my nexus can't read their tags)
why did u ask if its envrypted — me akindele 14 secs ago
 
> converting time data from unicode in pandas
 
waat
IRTA pandas in pajamas unicode.
 
You're high.
-3
Q: converting time data from unicode in pandas

user2333196I have a pandas dataframe column that consists of time data with minutes and seconds like this 22:15, 19:43 etc. I need to convert it so I can do some calculations with it. The fact the data is in unicode is making this task more difficult.

 
user1357851
as long as it is not something to do with unicorn
 
@R.MartinhoFernandes seems legit
 
What the hell are pandas? — Tony The Lion 8 secs ago
 

« first day (927 days earlier)      last day (4036 days later) »