« first day (1470 days earlier)      last day (3480 days later) » 

user1804599
2:01 PM
> Tastes like awesome feels.
 
user1804599
tfw eating doritos
 
user1804599
with mayonnaise
 
@AndyProwl lol
 
user1804599
0
Q: Double-Function Broblem

JabutosamaI have code which does something like this: (i seriously minimized it here, original code is 300+ lines big, including movement, spells, etc. I removed all time.sleep for example and tons of print's.) so thing is that i made battle system to my text-based-rpg, and i find that function is best a...

 
user1804599
Only bros can answer.
 
user1804599
2:11 PM
Ah right, you cannot use "problem" in titles, so people come up with such things.
 
@rightføld lol
 
user1804599
Reminds me of this guy who posted a question with a link to jsFiddle. When you do that and there's no code in your question you get an error that you must include code in your question, so he simply indented the jsFiddle link with four spaces.
 
user1804599
> All I desire is to use some concurrent Set (that appears not to exist at all). Java uses java.util.concurrent.ConcurrentHashMap<K, void> to achieve that behavior.
 
user1804599
wat I didn't know you could use void that way
 
@rightføld He should have titled it "Fouble-Dunction Broplem"
I'm reading some paper about theory of name binding and I have a miserable understanding of it
(test <=> ns <=> (ns |> (test <| adl))) <| (:: <=> adl)
(this is to explain ADL)
 
user1804599
2:29 PM
lolwut
 
hello folks
 
I have no idea why (test <| adl) <=> ns) <| :: is not enough
 
I have no idea why n3242.pdf is not enough
 
2:32 PM
@JohannesSchaub-litb hi master
 
hello my slave
 
@JohannesSchaub-litb I think the authors' point is that it's too much
§ 3.4 – Name lookup: 13 pages, 45+ paragraphs
§ 14.6 - Name resolution: 13 pages, 50+ paragraphs
§ 13 - Overload resolution: 30 pages, 140+ paragraphs
§ 11 - Member access: 10 pages, 35+ paragraphs
Also, they are presenting a theoretical language-independent framework
The problem is I understand no shit about it
 
too much for him because he seems to like to read little and understands fast. not too much for me because i seem to like to read less and understand not as fast as he :D
 
nothing ever goes wrong with theoretical language-independent frameworks.
 
my understanding of it went wrong
 
2:39 PM
so you say they developed theoretic syntax that allows to describe name lookup rules and overloading rules that are fully equivalent to the intended meaning of the c++, c#, python, php, etc.. spec's ones?
 
they propose some kind of scope algebra to formally express name binding rules
the notation can then be used to express binding rules of different languages
I am mildly interested because it's related to name lookup with concepts
 
BTW, i have a question about SSA... how to approach SSA conversion for languages who allow dynamic lookup? "if(...) { a = 1; } x = a". create a SSA form of this. do i need to do something like "bb1; bb2: if(...) { a0 = 1; }; bb3: a1 = phi[bb2: a0, bb1: <undef>];" ?
i.e adding a dummy "undef" definition for the blocks where "a" wasn't written but that preceede merge blocks?
 
user1804599
hello kerrek , please dont review the code , i meant i need to do a similar checksum calculation, but i dont have a uint16_t* instead a ostream — Marshel Abraham 3 hours ago
 
user1804599
> please dont review the code
 
3:08 PM
@AlexM. Is that why @chmod711telkitty always posts bird pictures here?
4
 
@Borgleader lol
 
@JohannesSchaub-litb Not gonna work out.
 
Oh well
Let's try mayosemite
 
@Puppy why is this
 
3:17 PM
because SSA cannot represent all possible code flows.
 
I ate buns with cheese cream and boiled eggs + tea today
instead of mcdonald's
great success
 
@thecoshman lol. I am not sure if it is a good or bad thing that YouTube exists and thanks to it we can see all this awesome shit people do... :D
 
Ell
3:34 PM
@thecoshman haha that's hilarious
 
it is?
that guy just looks dumb
 
3:52 PM
@R.MartinhoFernandes luckily they can just be kicked. I suspect if she tried to join now, she'd be kick banned fairly quick.
 
don't know why she isnt already
 
4:03 PM
some people have this strange belief she is ok
 
4:13 PM
@BartekBanachewicz Did your myo also get shipped?
 
@thecoshman I don't get what the big deal is with her. In fact, more often than not, I'm more annoyed by the people constantly whining about what she does than what she's doing.
 
user1804599
4:24 PM
You know.
 
user1804599
Maybe I should implement polymorphism after I get hello world to work.
 
user1804599
And have upcasts throw NotImplementedException at compile-time.
 
user1804599
And make io.write monomorphic. :v
 
> The problem with force fields is that they don't work.
 
user1804599
 
user1804599
A, so that's where I got to it from.
 
@Borgleader I don't think kitty is too bad either, (for an Australian). Cetainly better than that 'xxx' moron that robot kicked repeatedly.
 
4:46 PM
what was up with xxx anyway
his avatar was trello's icon or something
and he started speaking romanian at one point
 
@AlexM. more like trollo amirite?
 
I've seen him before
but I can't remember where
on moderators.se his username is Alex
 
well hes been here before, ive had him on my plonk list for a while
 
@bamboon it's waiting for me at the post office
 
@BartekBanachewicz Cool cool, I think mine is at customs currently.
 
4:49 PM
@bamboon myo?
 
@Borgleader This thing thalmic.com/en/myo
 
Ell
@bamboon woah
 
@bamboon Oh I think I've seen this before. But I think I rather get an Oculus Rift first :)
 
I wonder if they'll release a new ouya anytime soon
 
@Borgleader I would probably get sick from Oculus but it definitely looks cool.
 
4:53 PM
@AlexM. Isn't Ouya a massive failure?
 
I don't know, their site shows them being alive
 
meh.
it's still a massive failure
 
ive never been thrilled about the concept and ive heard little to nothing about it since it came out
 
there aren't many games on Android to play on a TV
except for old PC ports
like GTA SA, VC, The Bard's Tale, Star Wars KOTOR
etc.
 
4:55 PM
eh, just plug your pc on your tv and use steam big picture mode
 
I wonder if Rockstar will port GTA IV to Android in 3 or 4 years lol
 
Android is apparently getting popular nowadays
 
it was more about how fast the hardware powering our phones is
back when San Andreas was released, the game running on a random phone would have been a SF concept
it barely ran on PCs back then too lol
 
Ell
@Borgleader I think it's p much a failure
it was no where near powerful enough to compete with other consoles
didn't have enough games
also I still can't get #include <oglplus/all.hpp> to work without erroring :3
 
@Ell well it wasnt meant to compete with other consoles afaik, the killer is it has a shitty catalog of games, which meant you were better served by othr platforms that could also do other things.
 
5:01 PM
what, you mean playing candy crush saga on your TV is not a good deal?
/s
 
Ell
yeah
it didn't end up having minecraft did it?
 
FFS
tickets sold out in 2 minutes
are you kidding me
 
tickets for?
 
user1804599
owned
 
user1804599
Happens to WWDC as well.
 
user1804599
5:07 PM
> Next year tickets are going to sell out before they even go on sale
 
user1804599
lol
 
user1804599
That's a nice title. — rightføld 18 secs ago
 
user1804599
moron
 
@Borgleader The Theater Equation
 
user1804599
I thought of making a non-tree IR that is higher-level than LLVM's, and does stuff like boxing and unboxing and contains explicit multimethod implementations.
 
user1804599
5:18 PM
Makes the LLVM code generation simpler.
 
user1804599
5:30 PM
> Joda-Time often use NULL as default for system timezone, default locale, current timestamp etc. while JSR-310 almost always rejects NULL values.
 
user1804599
JDK 8 is nice.
 
Ell
5:51 PM
why is oglplus doing unicode stuff :(
 
not much point
pretty much all the useful IRs are trees.
but there is certainly value in having another tree representation between AST and IR.
Wide has a semantic tree.
 
user1804599
I have a typed AST with syntactic sugar removed.
 
user1804599
But it doesn't contain boxing, unboxing and upcasting operations.
 
Wide's semantic tree does contain casting ops, and loads/stores for references and such things.
 
user1804599
I see.
 
Clang's AST (which is both syntactic and semantic tree- super dumb) contains them too.
 
user1804599
Well yeah I could put them in the typed tree.
 
@StackedCrooked eh?
 
@Borgleader lol, not really
 
user1804599
5:57 PM
Upcasting and downcasting between structs and interfaces would imply boxing and unboxing, respectively.
 
0
Q: What is your take on passing state in FLUX?

christianalfoniHei, I am a bit confused by the statements: "Renders the whole application" and "Passing state to child components". Example 1: I have a todos app with a "AppComponent" and "TodosListComponent". The AppComponent grabs the array of todos from the store and passes it as a property to the "TodosLi...

how did this even get an upvote.
 
user1804599
@Puppy if JavaScript developers had a sense for quality they wouldn't be JavaScript developers.
 
lol you have a different node type for intexpression and shortexpression?
 
user1804599
Yes.
 
6:00 PM
why on earth would you do that.
 
user1804599
Because one stores Int and another one stores Short.
 
user1804599
Otherwise if I want to do compile-time calculations I'd have to check the type and then do overflow checking manually.
 
Wide uses arbitrary-precision integers for storing raw integral values
 
user1804599
Ok.
 
and for doing compile-time calculations, better to generate IR and JIT it, then execute it- you can re-use the code effectively and implement compile-time computation efficiently.
 
user1804599
6:02 PM
I need to get rid of ShortExpression anyway.
 
user1804599
I first want to get a program using Int to compile and run.
 
Me 'ead 'urts:
http://stackoverflow.com/questions/26562101/two-threads-inside-the-same-criticalsection-in-windows-only-in-release-mode
 
6:23 PM
OMG this should be awesome
OMG even better
 
oh jeez, to use an opengl dll from wpf, i have to make a bridge dll in managed c++
this is gonna be fun
 
user1804599
cocks
 
games
 
@FredOverflow Where are the sparkles?
 
user1804599
How do you have an array of mixed types? — Oliver Charlesworth 1 min ago
 
user1804599
6:33 PM
OP is a phaggot.
 
@MartinJames he only wears them during christmas :P
 
hi guys
so someone is flagging messages here..
 
@Borgleader Oh, I didn't know.
 
hey there :)
 
I saw that popup Bjarne..
 
6:36 PM
@MartinJames Popup Bjarne is nothing compared to pinup Bjarne!
 
@Borgleader I thought WPF could only interop with D3D9?
 
@Puppy Nah, you can embed shit in a windowsformshost and boom
 
user1804599
I want a Sparkly Fred.
 
@rightføld Feel free to make one.
 
@rightføld do you know an english equivalent for "uit het oog, uit het hart"?
 
user1804599
6:43 PM
out the eye, out the heart
 
Out of sight, out of mind?
 
is it a good idea to implement logic into an iterator? In my case I have a 2D map with obstacles in it and I wonder whether it's a good idea to create an iterator for this map which takes obstacles into account like: iter.hasNext() which only returns true if there is a adjacent cell which is not blocked and is not the cell the iterator has been before :)
 
@sled Sure, why not? I once implemented "Dijkstra iterators" for iterating over a graph.
 
@FredOverflow i think we have an equivalent for that in french (loin des yeux, loin du coeur)
 
user1804599
6:44 PM
cells.takeWhile(!_.isBlocked)
 
@Borgleader you speak french??
 
shit, he found out
 
@StackedCrooked im french canadian, like @EtiennedeMartel so yes :P
 
@Borgleader run
 
mon ami!!
let's kiss
 
6:46 PM
C++ quatre-vingt-dix-huit
 
@FredOverflow: I'm doing almost the same thing at the moment, path planner with A* :)
 
lol french numbers
 
user1804599
I once used Markov chain for generating paths in a 2D grid!
 
@sled And there's nothing wrong with that, as long as the iterators keep all the logic to themselves and don't have any external state or mutate the graph or whatever.
C++ 98 = C++ 2*7*7
C++ 14 = C++ 2*7
hmm...
 
yep so I could create an 4-connected iterator and an 8-connected iterator and pass this to the path planner so the path planner
 
user1804599
6:49 PM
Why not create a template N-connected iterator? :D
 
lol
yeah more than 8 connected is gonna be hard in 2D :P
 
@FredOverflow C++21
 
@sled 2D?
 
user1804599
C++π
 
why not make it generic
ND
 
6:53 PM
I'm happy if it's working in 2D already - trying to get into template metaprogramming a bit and my brain already hurts ;)
at some point one starts to get philosophical with templating :S
 
user1804599
I'm going to program in Clojure again.
 
@EtiennedeMartel has ottowa moved?
 
It's "Ottawa".
 
Man C++11 is sweet
 
user1804599
7:03 PM
C++11 is old.
 
I'm using C++1e9
 
cpx
Can we overload a superset operator ⊃?
It kind of works.
 
That operator doesn't exist.
So it can't be overloaded.
 
cpx
not like (a ⊃ b) but works with operator ⊃(a, b) function
 
@StackedCrooked lol! Maybe map is upside-down?
Look like it's now in Uraguay.
..though by now, it may have moved on.
 
7:10 PM
Hi
@FredOverflow the grill the committee video was the funniest cpp clip ever
 
@TemplateRex I was expecting more heat, maybe a gas BBQ.
 
I have some meat left
steak time!
 
@MartinJames nevin liber too
 
cpx
seems only visual studio can overload ⊃ lol
clang gives you error: non-ASCII characters are not allowed outside of literals and identifiers
 
7:17 PM
I think you can have operatorbanana in VS.
 
Operator horseshoe
 
POO, PILE OF too good for you guys?
 
o.o TIL journalists cant even spell
 
`template <class T> class Map {
typedef T value_type;
}`

`template <class T> class Map {
typedef map_traits<T>::value_type value_type;
}`
whoops
 
it is indeed a whoops to attempt to obtain help in the Lounge for non-established Loungers
 
7:21 PM
didn't want to paste that here sorry ;)
 
user1804599
and to not read the rules which state very clearly how to put code in a message
 
I was watching the Mike Acton cppcon talk on data oriented design. Is there a way to transform vector<tuple> to tuple<vector> using reflection/macros? Boost.fusion perhaps?
 
user1804599
I should figure out how computers and LLVM deal with floating point overflow and division by zero for floats and integers.
 
user1804599
@TemplateRex You can do it using templates.
 
@rightføld any links? And what about regular classes? Vector of T to "T of vector"
 
user1804599
 
user1804599
For non-tuples you need reflection or maybe something like Boost.Fusion that I have never used and know nothing about.
 
@rightføld ah nice!
 
user1804599
I used DOD to some extent for a game once and it was very easy to work with.
 
Hey guys, anyone using CMake here?
 
@TemplateRex You can conceivably transform a Fusion tuple with a metafunction that std::vector’s its argument, yes.
 
7:30 PM
But you'd like both interface: iterate per data member for greater cache locality, but also insert/erase for single tuple for convenience
 
user1804599
@TemplateRex You can write that on top of my Coliru example quite easily.
 
Oh, you don’t want to just transform the type perhaps.
 
@LucDanton Acton identified a legitimate problem but these game guys will use any excuse to drop the stl, and reinvent the wheel
 
I’m not sure what prompted that response.
 
There seems some abstract similarity between the Expression problem and DoD, in that it is hard to be flexible in two orthogonal directions of modification
You could call it the Representation problem
@LucDanton just think that stl / templates could help game folks with their performance, not hurt them
 
7:37 PM
2 mins ago, by Luc Danton
I’m not sure what prompted that response.
 
user1804599
> function template partial specialization is not allowed
 
user1804599
C++ is cancer.
 
@LucDanton i was responding to your answer that fusion could help with dod, yet game folkjs seem to hate templates
 
Alright. Forget I said anything.
 
function template partial specialization is useless.
 
7:41 PM
@rightføld v0v
 
user1804599
That's not partial.
 
@LucDanton why are you reacting like this?
 
I thought you were genuinely looking for an answer. I was not looking forward to being a recipient of whichever rant you think I would be interested in.
 
I was, and i tried to organize my thoughts, but never mind if youconsider that ranting
 
It’s the @pings that I mind.
 
7:44 PM
Oh, some people told me here to use pings to make it easier to follow stuff
Sorry if i did this inappropriately
 
Ell
@TemplateRex it does make conversations easier to follow
but it also annoys the recipient if there are too many :3
 
@rightføld Why aren't they allowed?
 
I get annoyed by repeated answers and withdrawals instead of clarifying remarks. I am open to constructive dialogue, and will change subject if someone says so
 
Ell
@Puppy no it's not
 
7:49 PM
@Ell Yes, it most assuredly is. That's why nobody bothered speccing or implementing it.
 
Ell
what if you want functions to have a different return type but the same name?
 
user1804599
@TemplateRex coliru.stacked-crooked.com/a/edd4bd204648f0e2 (bad_alloc en constructor exceptions kunnen de tyfus krijgen)
 
Ell
and you want a different function for each return type?
 
@rightføld great stuff! Thank you
 
er, overloading?
or just delegate the return type computation to a class, which you can then proceed to partially specialize?
 
7:51 PM
@Puppy Won’t work for just return type.
@Ell Specialization doesn’t work for this either, does it?
 
user1804599
f(xs)...; should be allowed.
 
Ell
@LucDanton you mean partial function specialization wouldn't work for this?
hmm
 
@LucDanton You can't have two return types for one function, you'd have to have different arguments for the different return types anyway, so overloading can accomodate it just fine.
 
@Ell IIRC you have to honour the primary template. That’s how it works for class templates anyhow.
 
@rightføld do you need the make_tuple instead of {}?
 
user1804599
7:56 PM
No idea.
 
user1804599
I never use {} except for constructors that take initialiser lists.
 
user1804599
I don't know how all that brace crap works.
 
I guess boost.fusion just uses macros to make tuples out of regular structs, so this is a pretty genericapproach
 

« first day (1470 days earlier)      last day (3480 days later) »