« first day (1286 days earlier)      last day (3652 days later) » 

12:00 PM
np, but I don't really find it useful
 
user1804599
> #asIlLahl

This text was recognized by the built-in Ocrad engine. A better may be attained by changing the OCR Engine (under the Language menu) to Tesseract. This message can be removed in the future by unchecking "OCR Disclaimer" (under the Options menu). More info: http://projectnaptha.com/ocrad
 
user1804599
Yes, very useful if you copy text and it adds crap to the end.
 
@rightfold just click the option thing. Right click when selecting -> options -> disclaimer.
 
Yeah, that sounds cool, sending every image I look at to the cloud to be OCR'd
 
@BartekBanachewicz 'Unfortunately, your browser is not yet supported'. Firefox.
 
12:02 PM
Fail
 
well it's a prototype alright
 
> In particular, I'm a fan of Doge, in part because Comic Sans is interpreted remarkably well by the built-in Ocrad text recognizer
 
imagine solving captchas with it though :D
 
'currently only Google Chrome is supported'. Well, that's inspiring.
 
12:04 PM
> CLICKINGÎ) FIGHLÛHTJÏDCTBÜSRBLED
yeah well
 
> it sends a secure HTTPS request which lacks any kind of identifiable information to the Project Naptha cached remote OCR and Translation service.
hahahah
except your IP address and whatever you were looking at
 
> I started building a text recognizer algorithm specifically designed for Impact font, and it was actually working pretty well, but I kind of misplaced the code somewhere. So, until I find it or replace it, you'll have to use Tesseract configured with the "Internet Meme" language.
 
that's probably not identifiable
 
@MartinJames Nothing is supported, so its software designed not to be used :P
 
user1804599
Fuck software.
 
12:07 PM
@TonyTheLion Oh right. I can totally understand that:)
 
> The online OCR service also has per-user metering, and so such requests include a unique identifier token. However, the token is entirely anonymous and is not linked with any personally identifiable information.
Except now you have a history of everything a particular token looked at
 
Visited Facebook? Oh look, it's a picture of you!
 
morning
 
morning
 
12:13 PM
sup homies
 
afternoon
You can go back to sleep - nothing worth binning here today.
..unless you count Bartek's dysfunctional OCR link:)
 
meh, naysayers
 
user1804599
nay.
 
> However, this can be disabled simply by checking the "Disable Lookup" item under the Options menu.
 
user1804599
OCR is terrible.
 
12:17 PM
it's getting better
we have bigger disks and can store more font visual information than previously possible
we can calculate more font features and do more lookups in realtime
the word dictionaries are similarly getting bigger
 
I never had to use OCR :(
 
@BartekBanachewicz "but I kind of misplaced the code somewhere"
 
@R.MartinhoFernandes yeah
 
Xeo
take(10)(filter([](int x){ return x > 4; })(enumFrom(1)));
> 5 6 7 8 9 10 11 12 13 14
2
teehee
 
@Xeo show impl o_O
 
user1804599
@Xeo need moar |>
 
I remember fiddling with OCR when I got my first scanner when I was like 14.
Fun times
 
Xeo
@rightfold Right. In C++.
 
user1804599
:3
 
user1804599
Make it |!
 
12:21 PM
on 400 Mhz machine, with a piece of software I don't even remember the name of
 
@TonyTheLion It was FineReader
 
no
it was something else
 
Xeo
@rightfold I could. Or &, which is used in Lens
 
it had OCR in the name, IIRC
 
user1804599
I use Tesseract.
 
12:21 PM
@Xeo huh; last time I tried I had to manually specify types like an idiot
 
Xeo
@ScarletAmaranth C++14, baby
 
@Xeo what did you make use of in particular?
 
user1804599
@Xeo I like | because it pipes like shell scripts. :P
 
@ScarletAmaranth f(auto param) ?
 
well that's just a polymorphic lambda
 
Xeo
12:22 PM
@rightfold That's more like . though. Somewhat, anyways
 
@ScarletAmaranth "just"
 
Xeo
24 hours ago, by Xeo
Also, Clang is awesome for having generic lambdas, full return type deduction and generalised lambda captures.
 
@rightfold I need your advice
 
Xeo
All three of those
without full return-type deduction, this would be ugh
 
yeah that's what I was wondering about
 
12:23 PM
@Xeo now C++ can be only slightly retarded Haskell
 
I had to do retarded manual typing to make even trivial stuff work
 
retarded - you heard it here for the first time!
 
Xeo
I didn't need to use generalised lambda captures, but they're cool
 
user3010322
Does clang have exception handling stuff for its WIndows build of the compilter yet?
 
Xeo
and if I ever want to actually move stuff instead of doing copies all over the place, I'd need them as well [xs = std::move(xs)]
 
user3010322
12:24 PM
I would like to ditch all of my other toolchains, go to QtCreator, and use Clang + QtCreator for the rest of my existence.
 
@Xeo is that moving into lambda scope? Isn't it dangerous?
 
@Xeo All features Wide implemented first! :P
 
user1804599
@BartekBanachewicz On what?
 
Ok I will try that one and inform. Thanks. — Vecihi 7 mins ago
Erm - No thanks?
 
Xeo
@BartekBanachewicz no, why?
 
12:25 PM
won't it be done automatically when doing return [=]{ ... };?
 
user1804599
@BartekBanachewicz dat copy
 
Xeo
Look at my 'function' definitions. I do manual currying with nested lambdas, and the outer arguments are currently copied instead of moved
but since it's for funsies anyways, I'm not worried about that
 
@rightfold I'd like to have reflection based on faux-signatures for functions in javascript. Is using a custom parser my only option?
 
user1804599
@BartekBanachewicz yes.
 
user1804599
12:26 PM
Or you can add properties to the functions.
 
@rightfold elaborate
 
Xeo
@DeadMG Wide is ugly, though :P
 
user1804599
function f() { ... }
f.foo = bar;
 
I see. I like it.
 
user1804599
@BartekBanachewicz be extremely careful with minifiers and Google Closure.
 
user1804599
12:27 PM
I'd use a custom preprocessor instead.
 
@rightfold We're going to use Traceur for the main code, but are thinking about either Lua or JS again but parsed manually (as a DSL)
 
Xeo
I should probably start to write some kind of curried adaptor so I don't have to do the nested-lambda thing manually
 
user1804599
@BartekBanachewicz What exactly do you want to do?
 
@rightfold Why?
 
@rightfold create logic blocks that can be connected like in UE's Kismet directly from code. For our BEng project.
 
user3010322
12:29 PM
 
user1804599
Also with "custom parser" I thought you wanted to parse the result of someFunction.toString(). :P /cc @LightnessRacesinOrbit
 
user3010322
@Rapptz ^ It's working fine for me
 
user3010322
I also submitted a pull request fixing some inline derps.
 
user1804599
Which wouldn't quite work with optimizing JavaScript precompilers.
 
12:30 PM
Sep 10 '13 at 14:19, by R. Martinho Fernandes
Don't listen to rightfold.
Took me a bit to find that
 
Feb 5 at 14:30, by Bartek Banachewicz
@R.MartinhoFernandes @rightfold is a competent software developer who pays attention to good design.
@TonyTheLion same here
 
heheh
 
user3010322
@R.MartinhoFernandes Wow. <_>
 
user1804599
Speaking of good design.
 
user3010322
Also, C++ Y U NO COMPILE-TIME REFLECTION. ;~;
 
user1804599
12:34 PM
I need a new pair of glasses.
 
user3010322
... WAIT
 
user3010322
Waaaaaaaaaaait
 
user3010322
You can pass member function pointers
 
user3010322
as template parameters
 
Xeo
don't even think about it
 
user3010322
12:35 PM
Dude
 
yes, but this doesn't really help.
 
user3010322
Dude, it's NECESSARY.
 
user3010322
It makes the syntax
 
user3010322
SO much cleaner.
 
Xeo
err
How about no?
 
user3010322
12:35 PM
Come on. D:
 
Xeo
You can't deduce class type from template arguments
 
the only thing you gain is that you have to do <decltype(&T::func), &T::func>, rather than (&T::func).
 
Tech giants, chastened by Heartbleed, finally agree to fund OpenSSL
IBM, Intel, Microsoft, Facebook, Google, and others pledge millions to open source. http://arstechnica.com/information-technology/2014/04/tech-giants-chastened-by-heartbleed-finally-agree-to-fund-openssl/
 
user1804599
Use a macro.
 
user3010322
I swear I don't need the decltype
 
12:36 PM
you absolutely do.
unless you want to offer like 20 quintillion overloads that variadics cannot eliminate for you.
I guess.
 
ITT @ThePhD starts another saga of wasting time trying to do the impossible.
 
robot
 
user3010322
I'm not going to try, I promise you I did something like it before.
 
user3010322
I just need to check.
 
do I recall you saying that you built a compiler based on HM type inference before?
 
user3010322
12:40 PM
Oh, nope. I had a little extra help.
 
Not a whole compiler, only the type inference mechanism.
 
user3010322
I think.
 
user3010322
Yeah, I had extra help.
 
hmm
 
user1804599
in C#, 17 mins ago, by user3216114
@KendallFrey ok I opened Google website.
 
user1804599
12:40 PM
LOL
 
how did you structure the analyzer?
 
user3010322
Something like this:
 
user3010322
> int main ( int argc, char* argv[] ) {

Event<int> IntEv;
Int i;

IntEv.Add<Int, &Int::Test>( i );
 
It was in Haskell, btw.
 
user3010322
It's not... strictly impossible. It'll just take some finagling.
 
Xeo
@ThePhD And that is better than IntEv.Add(&Int::Test, i) how?
 
Lots better. It has Int twice.
 
hmm
 
user1804599
> Can I make this answer even more better ? Comments welcome via downvote or an upvote.
 
user3010322
u.u
 
user1804599
 
user3010322
@Xeo I was going to attempt having a variadic template and passing all the member functions that way.
 
user3010322
Though, if I just use argument deduction I could probably just do it with regular arguments.
 
user3010322
... Plus... I don't think templates will allow me to get the name of the function, unfortunately.
 
brb
 
user3010322
So for a script language binding I'd have to still type them all out...
 
user3010322
12:43 PM
.... Unless I use a macro?
 
user1804599
@ThePhD you need macro
 
user3010322
But if I use a Macro, I need to supply the type as an argument, instead of as a template parameter
 
user3010322
REGISTER( lua, Int, i, Test );
 
user3010322
I... guess it works. Oh well.
 
user3010322
Can't really argue with it. Macros, here I come.
 
Xeo
12:45 PM
Yeah, I had a macro as well for my little playcode some years ago
 
user3010322
I'll just make the macros look as close to free functions as possible.
 
user3010322
And I can use some type deduction to save me some parameters too.
 
user3010322
In the end, it'd be...
 
user3010322
sol_register( lua, myclass, MyMemFunc, MyMemFunc2, MyMemFunc3 )
 
TIL posting good answers on SO is sometimes hard :|

http://stackoverflow.com/questions/8358890/how-to-add-edit-delete-from-to-mysql-db-with-jqgrid/9588962#comment35611159_9588962
 
user3010322
12:47 PM
Which'll just forward to....
 
Xeo
@ThePhD all uppercase or gtfo
 
user3010322
lua[ "myclass" ].add_function( &myclass::MyMemFunc, &myclass::MyMemFunc2, ... );
 
user3010322
@Xeo That just makes everything look ugly, and once C++ get some compile-time reflection I have every intention of replacing it with either a free function or a member function on lua.
 
@R.MartinhoFernandes wait, no one clicked that link, because otherwise there would have bee poo-stars
 
user3010322
Might as well style it like it's a free function.
 
12:48 PM
No.
No point in lying.
sol_register( lua, myclass<int, double>, MyMemFunc, MyMemFunc2, MyMemFunc3 )
Knowing it's a macro matters.
Also, I doubt when C++ gets any form of compile-time reflection it will be ok to pass arbitrary not-in-scope identifiers to functions.
 
user3010322
Well, at that point the declaration simply becomes sol_register( lua, my_class<int, double> );
 
@ThePhD AHahaaahahaha
 
@ThePhD So you're saying it's better to not make it look like a macro because then you will have to change it anyway?
 
user3010322
@CatPlusPlus I have dreams, they'll come true!
 
What you're saying is "I'll write bad code because in 15 years maybe I'll have a tool to make it better"
 
12:52 PM
Your very flimsy reason to make it lowercase doesn't apply if you need to change things anyway.
 
user3010322
And unless you give it more parameters, it will just dump all public member functions into the next call sol_register( lua, my_class<int, double>, ... )
 
Macros are not easily replaceable by functions
 
Especially if they take arbitrary identifiers as arguments.
 
user3010322
Awww wait fuck it'll have to stay a macro because I need to pass "my_class<int, double> as a template.
 
12:53 PM
@sehe Yes I know, nothing particularly new or exciting, but I had never done it before.
 
user3010322
Fuuuuuuuuuuuuuuuck why does C++ do this to me. ;~;
 
@FredOverflow Wait. About 3,788,000 C coders did this before you
 
user3010322
SOL_REGISTER it is, I guess.
 
user3010322
And I'll break everyone's legs in 15 years when I throw the macro out.
 
You don't have to throw the macro out.
That's the point.
 
Xeo
12:55 PM
sol_register(lua, class_<my_class<...>>, ...);
// where
template<class C> type<C> class_ = type<C>{}; // :D
 
Iif reflection happens and actually works and whatever, you just deprecate the macro and let everyone migrate
 
user3010322
There's no way to properly deprecate the macro?
 
Put it in changelog and docs
 
user3010322
12:56 PM
I mean, you either induce a compile time error by removing it or you leave it in
 
Do you know what deprecation is?
@ThePhD That's not deprecation.
 
That's jerk-style migration.
 
or just define it in terms of the new reflection.
 
Xeo
deprecation is a warning
 
12:56 PM
You don't need compiler to raise a warning to make things deprecated
It's nice, but not really necessary for the process
 
user3010322
There's no static_warning. :c
 
@Xeo depecraption
 
Release notes and documentation exist
 
@ThePhD your whole code is basically one big ass static_warning
var f = (x,y) => x + y;
f.signature = ["int", "int"];
 
user3010322
Mm. Maybe I could have opt-out jerk-style migration.
 
12:58 PM
Deprecated stuff is supposed to still work.
 
You can add a dummy call to an empty function with [[deprecated]] or whatever it's called
 
not that this ^ is any better
 
To the macro
 
Xeo
@BartekBanachewicz I can't type today.
 
okey so basically JS please die
other than that, I guess specifying signatures as lists of strings is amazing enough
 
Xeo
12:59 PM
@CatPlusPlus If he's forwarding to a certain function anyways, he can just deprecate that function, yeah
 
user3010322
static_assert( sol::i_use_depracated_things, "If you want to use deprecated things, please go to sol/deprecation.h and set sol::i_use_deprecated_things to true. :D" );
 
why am I doing it to myself
 
Xeo
@ThePhD No
 
user3010322
:c
 

« first day (1286 days earlier)      last day (3652 days later) »