« first day (1605 days earlier)      last day (3569 days later) » 

slowly.
Parser is attoparsec's parser
Alternative (Parser i)
Monad (Parser i)
Functor (Parser i)
MonadPlus (Parser i)
(~) * a ByteString => IsString (Parser a)
(~) * a Text => IsString (Parser a)
Applicative (Parser i)
Monoid (Parser i a)
you can fail from it, but fail only takes strings
An when you are there looking at a response that makes absolutely no sense whatsoever. And you are in front of an exception that is converted to Show and then wrapped in another one of your exceptions and nothing makes sense.
And then you start thinking... oh, but let's take a look at jsonData. Maybe that's where the problem lies.
And you almost risk to cut yourself because of that.
@BartekBanachewicz Crapskell? what you spewing now?
@thecoshman what?
17:02
@BartekBanachewicz throw throws an exception and makes the expression of type a polymorphic
The exception can be caught in IO or derived
And handled there.
yes you can also set an IORef error flag
let me think
I can also write a C foreign interface and just make it segfault
Just think how funny that would be
int* x = NULL; (rand() % 2 == 1) ? ... : *x;
Something like that
Suuuuuper fun.
eitherResult :: Result r -> Either String r
I swear, I'm losing it.
17:05
> Unlike Parsec 3, Attoparsec does not support being used as a monad transformer.
mm I suppose there's just too many things that are hardcoded here
it's a simplistic design of Scotty
go to a Haskell room or something
shut up lrio
for the love of god stfu about irrelevant shit
17:06
@caps If it were really true, yes, that would probably be a bad thing.
@LightnessRacesinOrbit your post is irrelevant shit
@Jefffrey 'But the problem is that I need to throw exceptions in pure code.' sounds very wrong.
@BartekBanachewicz You know what would be simplistic? Let me define an handler for all exceptions caught in ActionTs and let me do my thing.
And how about not automatically deriving a ScottyError instance from my Typeable instance?
@R.MartinhoFernandes he really means he wants to return a result that's not a string
17:07
@Jefffrey It's definitely not the only way, and it's definitely the last resort.
And if you could add a little bit of "DON'T CONVERT MY EXCEPTION TO STRING" sauce, that would be great.
@Jefffrey what if you could provide parse instances via flexible instances for Either YourError YourData?
so instead of parsing for your data, you explicitely parse for either your data or your custom error?
(I assume you never "fail" in a stringified, predefined way then)
15 mins ago, by Jefffrey
Especially when you are defining a motherfucking FromJSON instance.
And for the love of me, please don't mention Maybe a as a way to signal errors.
Please. I'm really on the edge here.
1 min ago, by Bartek Banachewicz
@Jefffrey what if you could provide parse instances via flexible instances for Either YourError YourData?
What else do you want here
17:09
are you reading what I'm writing or ..
@BartekBanachewicz I honestly have no idea what you are bragging about.
@Jefffrey Er, Parser can into errors
I swear you idiots get dumber each day.
4
@Jefffrey instead of defining instance FromJSON a, define instance FromJSON (Either MyError a) - is that an option?
17:10
Every time I get back to Haskell I feel like I'm dumber for going back to Haskell.
@BartekBanachewicz Yes, that would be an option.
Xeo
Xeo
Clang on windows can now throw C++ exceptions under the MS ABI http://reviews.llvm.org/rL231328 #clang #llvm
cc @Puppy
47 mins ago, by wilx
Clang on Windows can throw C++ exceptions under the MS ABI. Cool. http://reviews.llvm.org/rL231328
cc @Xeo
/cc @LightnessRacesinOrbit
@LightnessRacesinOrbit @LightnessRacesinOrbit @LightnessRacesinOrbit @LightnessRacesinOrbit @LightnessRacesinOrbit @LightnessRacesinOrbit @LightnessRacesinOrbit @LightnessRacesinOrbit @LightnessRacesinOrbit @LightnessRacesinOrbit @LightnessRacesinOrbit @LightnessRacesinOrbit @LightnessRacesinOrbit @LightnessRacesinOrbit @LightnessRacesinOrbit @LightnessRacesinOrbit @LightnessRacesinOrbit @LightnessRacesinOrbit
I only get one ping for that, you imbecile
17:12
Stop
@BartekBanachewicz That sounds horrible.
Woah guys Clang on windows can now throw C++ exceptions under the MS ABI!
17:13
@R.MartinhoFernandes because you said so, or because you have any reason for saying so?
Did you know that?
Well y'know. When inbelice do as the imbelices do
@BartekBanachewicz It'll likely be an enormous pain to use
@BartekBanachewicz Because you're transporting your failures in the spot reserved for the success payload.
a bit like your mum's dildo
17:15
compare Parse :: Either String a vs ParseBartek :: Either String (Either MyError a)
it's p trivial to unwrap
@R.MartinhoFernandes semantically retarded, of course, but as a workaround here...
Seriously what the fuck do you want to attach there that's so important
@BartekBanachewicz There are better workarounds, like just deriving Show and Read for your error type.
sigh I didn't come here to read all this nonsense about crap
either call each other names or talk about C++ or gtfo
I've calmed down. Let's switch topic. What's wrong with exceptions in Haskell?
17:16
Then you can reuse all the existing failure machinery just fine.
@R.MartinhoFernandes hmpfh, going through a string every time... sounds borked
@LightnessRacesinOrbit bye
And why should they be the last resort?
oh good Bartek and Cat are leaving
that went better than expected
You wish
17:17
He has a point, though.
Yes but it was too logical for these guys
@R.MartinhoFernandes Hardly. He's one vs 4 of us wanting to talk about Haskell
@LightnessRacesinOrbit I had something for this...
it's not like this room is particularly ontopic WRT C++
@BartekBanachewicz That's not what having a point means.
That's having a majority.
17:18
Room topic is mostly determined by majority, really
I don't recall anyone but you indicating that they really wanted to talk about Haskell.
I want to talk about Haskell
What is so bad with going to the Haskell room to talk about Haskell?
otherwise we end up in bureaucratic nonsense
otoh if I wanted LRIOs opinion on how to chat th-pfffhahha
17:19
@LightnessRacesinOrbit ....tumbleweed....
@LightnessRacesinOrbit nothing really, I just don't get why you're getting so fired up about this, and might stay here just for the joy of annoying you
Anyway Haskell sucks
@BartekBanachewicz How mature of you.
Programming sucks
let's go home
17:19
@CatPlusPlus How mature of you.
I'm home
I'm always home
@LightnessRacesinOrbit yes keep repeating that
@LightnessRacesinOrbit no u
way to establish your position as a senior lounge citizen
@Jefffrey I find no reason to use them typically
Grow up, you two.
That's it I'm calling your mother
Best thing is -- it's free! Cos she's right here
fucker, I haven't finished reading
sigh
@LightnessRacesinOrbit Long distance, I hope.
I can see how talking about Haskell interrupted so many non-Haskell conversations going on
Yeah because that's how topic rules work!
Fuck the topic rules
People make the room not topics
17:27
Sigh.
Right now the people (you) are making the room shit.
@LightnessRacesinOrbit I wonder how many people hit her neck in attempt to remove the spider. :D
How dare you talk with people you (semi)enjoy talking with on various topics omg rules
17:28
omg topic
Might unplonk you in a day or so, to see whether you've come out of this bizarre period of acting like a toddler
Plonking is not on topic
Please don't
I'm too tired of it, plonking lightness already.
Look at my horse it's so high
I'm going to plonk myself
I wonder at this point how many conversations happen in this room at the same time without parties being aware of each other due to plonking
Not many
I can type stuff, but I cannot read it
I have never plonked anyone.
17:30
Johan "Plonkless" Larsson
I'm good at the names; give me some more material
SJD
SJD
Does anybody had this error : ld: warning: ignoring file beauty, file was built for unsupported file format ( 0x74 0x68 0x69 0x73 0x20 0x69 0x73 0x20 0x61 0x20 0x62 0x65 0x61 0x75 0x74 0x69 ) which is not the architecture being linked (x86_64): beauty ? (trying to compile with GCC and giving the source - beauty.txt)
ld is the type I get from using this :
struct stat info;
fstat(fd, &info);
endFile = info.st_size;
I think ld = long decimal.. so my endFile var is defined like this:
long endFile = 0;
ld isn't "long decimal"; it's the name of the linker binary
Why are you trying to link a .txt file?
SJD
SJD
I send some params to my main class
like : gcc myFile.c beauty (where beauty is txt).
I need that file to read/write contents
@CatPlusPlus my horse is amazing
oh hey it's the C guy
@SJD I don't understand what you're saying.
17:35
You fuckin toddler how dare you chat about horses
@SJD to main what
First of all, GCC and .C are for the C language. This is not a C room.
it's C, it's a dirty savage language, it has no class
Second of all, C code does not go in .txt files, and beauty is not even one of those.
wait I got it wrong didn't i
17:36
Take a deep breath and explain your choices at each step.
SJD
SJD
I have in my folder beauty.txt (so called Text file, ofc it is not a *.txt format at all)
@LightnessRacesinOrbit well first I wanted to become a fireman
what's the general opinion here on 'crafting' in games? Is it something you like in games? Do you like the 'crafting grid' system, or prefer to just have a list of things that you can craft with what you currently have. What about having to 'learn' the recipes?
lol he thinks .C is used for C
@BartekBanachewicz One more for the plonk list
@SJD Then why is it called beauty.txt?
17:38
oh man new macbook
looks so hot
Oh god how did he managed to become even more annoying than usual
SJD
SJD
@LightnessRacesinOrbit problem solved. wrong syntax. forgot [-o]
@thecoshman What kind of game
Many games do that but they really don't need it
@SJD So all that about "giving the source (beauty.txt)" was a lie
@CatPlusPlus do what exactly?
17:38
Crafting
@CatPlusPlus us talking about haskell makes him lose his confidence
he's insecure
I'm thinking general sandbox survival
desperately trying to regain attention and illusion of power
@thecoshman The world needs another one of those!
17:39
List is better than guesswork
I don't like games that force you to go to wiki
Also @thecoshman didn't you have a game where you display cubes yesterday
It's annoying after third time
but like, even with say a 'pure' fps?
ooooooh pressure sensitive touchpad
@CatPlusPlus cue factorio
@Pris old, but nice; would have to try
17:40
lol who's desperate for attention when they react to a fake "you're plonked" in that way
can't stand one less person being able to read your crap?
@CatPlusPlus well yeah, but that's a problem what ever game style vOv
@LightnessRacesinOrbit I thought you plonked me
@BartekBanachewicz ... yes... still do... point?
is this magic
@thecoshman nuh. nothing.
you can even place cubes now :O
17:41
A list is better
Grid is just busywork mostly
Also for the love of god make in-game help
@BartekBanachewicz you don't have to wiki it for factorio though
oohhhh man its fanless
that's why the "click this button to make the thing" system is rather nice.
17:42
@thecoshman is it voxel based?
@BartekBanachewicz ... maybe...
:P
@thecoshman if yes save yourself trouble and steal coord calculations and chunks from minicraft. we spent shitload of time debugging them with sehe and they actually work reasonably.
but not in a very good way :P
oh man my productivity has taken such a dive this week
I think it's cos I'm stressed about my car
@thecoshman wut?
17:44
I just did it with a map<int vector thing, cube thing>
@thecoshman without chunking? You'll kill cache that way
I did adaptive VBO rebuilding for chunk surface in minicraft
it's way faster that way
warning: long decimal: bad syntax
the only problem is coordinate calculation, but as I said, I've solved that too
@BartekBanachewicz vOv it's a future problem :P
@BartekBanachewicz oh I thought about that, so it builds up an 'optimized' view of the chunk
@thecoshman I'm just saying it's something I solved already and you might base on that instead of reinventing it from scratch
well, "solved"
got to pretty reasonable perf.
Xeo
Xeo
17:47
Unreal Header Tool so much fun... ARGH answers.unrealengine.com/questions/179942/…
@thecoshman I also implemented raycasting.
@BartekBanachewicz lol what? why?
@thecoshman not ray tracing. Ray casting.
@BartekBanachewicz oh right, for 'picking' things?
mhm
you can do that with color renders, but raycasting solution is funky too
and can be used for other calculations, like visibility
17:48
I did 'ray, aabb' collision, which was easy enough.
I might have a look at what you did at some stage
but not now
now is dinner time :D
@thecoshman my raycasts traversed the voxel geometry cube by cube
just ray vs aabb won't tell you whether a cube is obstructed by another cube
unless you call it for every voxel in the scene, which is pretty damn inefficient
mm pizza
> highest gender equality
@thecoshman here's a nice 150-line function :P
yes because blackmail is great
user3010322
@Xeo Haaahahahahaahaha They're own broken C++ compiler.
user3010322
17:53
Someone kill me.
user3010322
@LightnessRacesinOrbit When systematically mistreated, there's only 2 options left to that person (or people): violence or civil disobedience.
it took me hours to debug :/
I kinda wish I could go back to this project
but C++
lol
I like the loaded statement "the men could barely cope"
user3010322
(This is assuming regular discourse isn't working.)
as if it's some sort of surprise that the remaining 50% of an entire nation should struggle to do without the other 50%
17:55
@BartekBanachewicz ... mine finds the closest cube hit by the ray...
The news should be that they managed
@BartekBanachewicz well yeah, there are smarter ways of doing it :P
@thecoshman how exactly?
user3010322
Oh god.
user3010322
I left a typo up there.
17:55
@BartekBanachewicz brute force :D
user3010322
Their*
@ThePhD I don't think pissing people off and royally screwing them over is the way to get what you want in the long run
user3010322
THEIR*
user3010322
DON'T JUDGE ME.
@thecoshman yeah, just take my code.
17:55
vOV get it done, then worry about getting it done well
I grant you lifetime Bartek license on it
o_0 I'm meant to be cooking
would be cool to see someone using it after all
a part of me left that still lives
user3010322
@LightnessRacesinOrbit To be honest, I doubt they just decided "time to walk out" without having had extensive dialogue beforehand, but I don't know much about Iceland's history.
18:04
@LightnessRacesinOrbit Works for me when playing Diplomacy.
@R.MartinhoFernandes ironic ;p
Indeed.
@LightnessRacesinOrbit you ow most of your employee privileges to precisely this kind of "blackmail". It's not blackmail to assert your influence.
It's the influence you already had but people (often including the party holding it) failed to notice
That's better, nice food:) Now back to S05E13 of 'LRiO vs The World'.
it's not really me vs the world
just me vs stupid people
Anyway, right now, s02e14 of SGU more like
You're rewatching that?
18:17
yeah :(
it makes me sad
but it's SO worth it
the only show better than SGU in the history of television is The 100
no wait
the only show almost as good as SGU in the history of television is The 100
#fact
I don't think SGU is that good.
I found it very average.
@BartekBanachewicz now I can't even look at it?
@R.MartinhoFernandes Gres?
SGU was meh
18:25
What is SGU?
Star Gate Universe.
Never watched (I'm not into SF much I must admit)
"Every linked-list question on the C tag" - Hilarious, sad, and true all at the same time. — Mysticial 29 secs ago
Martin nailed it!
I love the analogy
@BartekBanachewicz your minicraft was rather 'actively' trying to be an MC clone right, more so than just 'imspired'.
18:33
Gonna prepare my whey shaker for tomorrow and the fuckinglicious calf liver for tonite (am. spelling to irritate LRiO :p )
@Rerito Wot? No bacon and onions with it?
user1804599
Eh why does Facebook work around AdBlock?
@Rerito I found it boring, with uninteresting themes, uninteresting villains, and some forced mystery thrown in. I don't really recommend.
@thecoshman yeah. Didnt get to far though
@райтфолд adblock has deals with certain companies, facebook might be one of them
18:38
Had lua shell and models
user1804599
@Pris I thought that was AdBlock Plus.
That was when i went to do Lundi with @Mr.kbok and never really went back to it
I learned Haskell and the world Turner upside down
Problem with not breaking the spine of a book real good is that it's hard to know what I've read
oh hey @R.MartinhoFernandes :)
@thecoshman I use my memory.
@райтфолд Why can't you be more like me and write Java in Scala? ;)
18:39
@R.MartinhoFernandes I must have one of those, technically...
user1804599
@FredOverflow That's like writing C in C++!
user1804599
It'd be like … Java with Classes!
19 hours ago, by sbi
@R.MartinhoFernandes You're still this room's associative memory, huh? Pretty impressive how you remember this stuff. I'd mever have found this, because I had totally forgotten about it. Even now that I read it again, it didn't even ring a bell.
Java with Functions :-D
5
user1804599
Java with Dependent Typing.
18:40
Free the Functions!
By the way, remember my plan to put various nonsense-language combinations on my CV? Next in line is UML/ML.
user3010322
Context Free Grammar \o/
user1804599
@FredOverflow nice.
I wasn't sure if we had that already.
user1804599
@FredOverflow There are also two programming langauges Go! and Go.
user1804599
18:41
Go!/Go
I also have years of Google/Doodle experience.
And my poodle likes noodles.
@R.MartinhoFernandes sounds like something I could have said :\
any way, time to finishing up dinner
ttfn
user1804599
@FredOverflow but this design is extremely nice.
18:42
Bye
@MartinJames Nooooo don't leave us!
@райтфолд Did you watch Martin's explanation of the /: operator? This guy is so freaking funny.
user3010322
> Here are some exampes of questions that you can open fire on from your car window:
@FredOverflow I have to get ready for manure vs Arsenil.
user3010322
Buahaha
user3010322
I love it.
user1804599
18:44
@FredOverflow Yeah I did. :p
user1804599
class Queue[T] extends Service[Request[T], Request[T]#Response[T]] {
  override def apply(request: Request[T]): Future[request.Response[T]] = ???
}
user1804599
This guarantees that an enqueue request results in an OK response and a dequeue request results in a response with a value.
user1804599
No other combinations are possible.
user1804599
Dependent typing is awesome.
@MartinJames I don't get it, are you talking sports or diarrhea?
user1804599
18:47
btw Scala 2.11.6 was released recently.
I just drove-by... — rene 4 hours ago
Vrooooooooooom! — Martin James 3 hours ago
lol
@райтфолд I know, I just installed it a couple of days ago.
user1804599
@FredOverflow SBT installs it for me automatically when I set scalaVersion in build.sbt.
@FredOverflow I'm expecting both. There should be soccer first, then Wenger's post-match interview.
> /usr/local/bin/../include/c++/v1/experimental/optional:289:5: error: static_assert failed "Instantiation of optional with a reference type is ill-formed."
Oh fucking hell.
18:54
std::remove_reference_t, or just use a pointer?
No, I want an actual optional reference.
Those are called pointers in C++.
No.
I want an optional reference.
Anyway, good job, dear committee, I'll be staying with boost::optional, thanks.
std::optional<std::reference_wrapper<T>>
That forces me to use double indirection.
18:55
Oh, you mean from the API perspective.
Yes.
If you like boost so much, why don't you marry it?
@MartinJames Nope! Only mashed potatoes
Btw guys, have I mentioned my buddy who's trying to make Winston Churchill blood gin?
Is 'thread_local' commonly used in code and relatively well supported? Or is it kind of uncommon/poorly supported and something I should avoid?

« first day (1605 days earlier)      last day (3569 days later) »