« first day (1552 days earlier)      last day (3620 days later) » 

14:00
@E_net4 Which was my initial point
have different types and multiple type classes
fuck inheritance
Shape* ghost  = new Mystery();
*ghost << busted;                            // how to do shape shifting in C++
@BartekBanachewicz One's got to know when to use it.
It's a necessary contract if you want a hierarchy like that to work
@E_net4 precisely. That's what he said. Fuck inheritance
14:01
My whole point was that it is a somewhat counterintuitive corollary of LSP
I'm not saying you can't design your stuff better
@thecoshman YouAreBadEvenAtPollingJesus
@Jefffrey lol
@CatPlusPlus But now the hierarchy doesn't work. rectangle& is useless.
Polling Jesus is notoriously hard
14:02
There's only square&.
rectangle& is a pointless disguise around a square&.
@AndyProwl CONGRATULATIONS YOU MADE THE JOKE HERE's THE JOKE AWARD
lol
thank you, I'm flattered
thank you so much everyone
crying of joy
// same as ES5.1
"𠮷".length == 2
Good job, ES6.
14:03
lol
cat's practicing on sarcasm again
I don't need to practice
People who are bad at things need to practice them
People who are good at things will often take advantage of that. :P
People who are good at things also need to practice them
try not to walk for 5 years and see whether you can still walk properly
14:04
Oh well, I guess they want to keep compatibility.
I'm good at not practicing, should I practice this skill?
@E_net4 let's start with never and go from there
@ÓlafurWaage yes
@BartekBanachewicz Heh, it ain't my problem. Suit yourself. :>
14:06
you know
I am glad I called this framework Hate
grr inheritance
gives me an additional incentive to work on it
because it expresses my feelings towards other frameworks
except towards Love, that is
Are you using bua too
what is Love?
baby don't hurt me
14:07
don't hurt me?
@CatPlusPlus routinely. For gamejamish games. But Hate isn't in Lua.
@Griwes many people agree. Site admin and incrowd however feel this contributes to the "exclusiveness" of the cmty
no more
@BartekBanachewicz I have an idea for a game like that.
14:08
fullfils LPBPL?
Dafuq is that.
13 hours ago, by sehe
As you can see, this was generated by a tool. I used potools (had never worked with them). There are quite a few GUI editors/IDE integrations. It's not "heaven". But it's well established (merging databases: check, conversions: po2csv po2html po2ini po2moz po2php po2rc po2symb po2tmx po2txt po2wordfast po2debconf po2ical po2json po2oo po2prop po2sub po2tiki po2ts po2web2py po2xliff is a start)
Jan 8 at 11:35, by Bartek Banachewicz
Bartek Lounge Project Participation License
wait
damn, I always get the order wrong
You suck so much.
That's not a license you badlet
14:10
@CatPlusPlus yes because it's absolutely serious sir
@BartekBanachewicz I'm not sharing the idea.
Does it involve rats
@R.MartinhoFernandes hmpfh. Keeping it for the jam or doing it alone?
Xeo
Xeo
@BartekBanachewicz Is it in Terra?
(I'm kidding)
> What should I do?
You should analyze the behaviour closer so that you can provide the mimimal required context for us to look at it. Alternatively, you can wait for someone with a well-tuned crystal ball to come along — sehe 17 secs ago
14:11
@Xeo So. Much. Potential. Wasted.
What do how live
Xeo
Xeo
@BartekBanachewicz Robot's an idea-hoarder.
3
@BartekBanachewicz lol did it die?
@CatPlusPlus no, of course not.
Xeo
Xeo
@R.MartinhoFernandes Sorry
14:12
but I meant "Love - Lua" vs "Hate - Terra"
Then just make it
Xeo
Xeo
Well, time to rename your engine and write a new one in Terra
@BartekBanachewicz Keeping it.
Xeo
Xeo
or make a Terra port
or something
Xeo
Xeo
14:12
"Had"? :P
that way Lua's port of Terra's port of Hate will be called Latte
Hat!
I should get my tesselation example working in Terra someday
Xeo
Xeo
Hades - "I only had ES, so I made a thing for it"
14:14
Thank you Xeo for emphasising the joke
Xeo
Xeo
I'll stop now
The problem in terra is that its biggest strength is its biggest weakness
I.e. it sucks?
for me, at least.
@BartekBanachewicz Sounds like a fantasy villain.
The One Ring.
14:15
@CatPlusPlus Nah, it's good for a low-level language.
The fact that you have to drag LLVM if you want full potential
LLVM is its Mount Doom?
I mean its dynamic recompilation features are ridiculous
but I can't imagine putting them into prod code
writing compilers in it is p cool though
LugbúrzLVM
Dammit, there's no name for Orthanc that starts with L. My plan was foiled.
14:19
That's the base case for recursion
Minas Morgullvm
might mean original representation was quite inefficient
Whyever the fuck would I reinvent compression
It's a stream of pickled dictionaries
Bartek, meet Cat Plus Plus
I wish you both all the best in your first attempts at inter-human communication
@CatPlusPlus Looks a bit as if you might have wanted JSON instead, yes :^]
14:22
pickle was faster
Ah. I can see why
-2
Q: C# programming . I have no idea how to do this

SacCreate a Console Application. display the number of primes found between two numbers entered by the user. It should look something like this Enter starting number : 50 Enter ending number: 60 Number of primes in the range is: 2

the body of the question is superfluous
Like 20 seconds per page
"C# programming. I have no idea how to do this." would've been enough
wow, such title, awesome
[/doge]
14:24
109 pages
See I saved almost 40 minutes
user1804599
oh cool ES6 guarantees TCO
hihi 1% compression ratio
I need someone to discuss design with
19GB to 400MB
Or derp, I'll just codedump here and you'll criticize, nobody can resist that
14:31
@BartekBanachewicz Horrible. Post a link instead.
Gish dat shit
us libs
Why should user be concerned about library state?
are we human
or are we lib
14:34
I'm libber
@milleniumbug it's the other way around. The user only gets MonadState userState
he treats my framework context as giving him two things
a) access to his state
b) access to library functions
I'm sure it'll be awkward to use either way
:D
well from the user perspective, again, there's no difference
@CatPlusPlus hot air
14:36
Then do whatever
what matters is whether both lib functions and user needs to hoist
or whether lib functions act directly, and only the user part is hoisted
also it means introducing that Rank2Type a bit earlier I think
If those Monadstate instances could coexist there would be no problem :/
hmmm actually if I could export them separately.
one for the user and one for the lib!
yes! that's an ingenious idea
> yes! that's an ingenious idea
Why is compiled CSS committed in this project aaaaa
@sehe isn't it? ;)
f.a.m.o.u.s. l.a.s.t. w.o.r.d.s
14:38
my haskell project can't fire rockets
> The Parable of the Rich Fool
…17"And he began reasoning to himself, saying, 'What shall I do, since I have no place to store my crops?' 18"Then he said, 'This is what I will do: I will tear down my barns and build larger ones, and there I will store all my grain and my goods. 19And I will say to my soul, "Soul, you have many goods laid up for many years to come; take your ease, eat, drink and be merry."'…
"I know what I'll do" aka "yes! that's an ingenious idea"
> ingenious
don't be clever
clever, as in...?
user1804599
My parser is great.
Oh eclipse...
@рытфолд But will it blend
14:43
having a hard time with docker
@BartekBanachewicz can't fire rockets yet
shit
for some reason the instance gets exported :/
To outer space?
> incompatible types: ArrayList<ArrayList<Piece>> cannot be converted to List<List<Piece>>
oh boi
help me god
14:49
fucking crap
@BartekBanachewicz You can't not export instances
@CatPlusPlus Oh come on
What's worse than dynamic polymorphism?
They're always implicitly exported and imported
A fork to the eye.
14:50
dynamically broken polymorphism
in Java, 44 secs ago, by Unihedro
@Jefffrey A<Y> cannot be casted into A<X> where Y extends X, because generics in Java are somewhat broken.
Even with empty list
@Jefffrey lol Java
heh, Java ;p
C# has covariant/contravariant generic parameters to deal with that
@CatPlusPlus this is just bullshit
14:50
@Jefffrey It's not broken.
You guys are missing something.
omg it doesn't implement the thing I want it must be broken
I want one instance for one module and another for another
why is that forbidden :/
You're shit out of luck
Haskell module system sucks
still better than includes, but I agree it's not perfect
> These instances are then called orphan instances. However you won't be lucky with this solution, since you must ensure, that two modules with conflicting instances declarations are never imported together, since instance declarations are automatically imported and cannot be hidden
14:56
> You can achieve this by wrapping the type in a newtype and lift all required instances to that new type.
hey that might work out
@πάνταῥεῖ i had to skip some classes to prepare for some exams, i actually took some help online, please if you could revise the code specially the for within asterisks ? — Raja Haseeb 2 mins ago
And here's the awkward part
s.o. else to tell 'em please :P ...
@CatPlusPlus hm?
@πάνταῥεῖ Nice, "urgent homework" that needs to be sent by tomorrow. It's not like he has a lot of time, it's 20:30 in India.
user1804599
15:01
@CatPlusPlus just what I need
user1804599
Fuck browsers.
@πάνταῥεῖ "Turbo C++ 3.0 compiler" :D
@milleniumbug Someone should give them an answer that they're certainly not able to understand :) ...
@crashmstr I'm wondering what the indian rocket scientists use :( ... — πάντα ῥεῖ 28 mins ago
@PTwr :-D ...
woooohoooo it went through!
@πάνταῥεῖ Owww! its from 1991!
15:05
now instance of monadTrans
Nitro C++
The first argument of `MonadTrans'
  should have kind `(* -> *) -> * -> *',
should what
(* > *)
^ my face right now
15:07
okey let's leave monadtrans for now
wat
?!
@PTwr what what
I feel I have once again entered the Lounge<Haskell>.
@BartekBanachewicz that star thing! Its less readable than C pointers!
@E_net4 Too many nomads :)
15:09
@πάνταῥεῖ Indeed.
No wait. Monads or nomads?
@PTwr that star thing is a type function signature. It, uh, takes a type function taking a kind, and a kind, and returns a kind
@E_net4 Pun intended ...
that is a type
@πάνταῥεῖ Oh. Not that great a pun, I'd say.
>.<
@PTwr but that's really advanced code. I learned about MonadTrans after about a year of learning
learned that it exists, that is. As presented, I still can't really use it :S
but why it exists?
15:12
things like that happen when people are too smart
for their own good
@PTwr to present an universal interface for all monad transformers
I just read what Monad is, now I understand even less.
15
@LightnessRacesinOrbit Well, you've found a trove of GIFs, hmm?
careful or you'll be next
15:14
I want to be next
me me me
ooh so exicting
 Expected type: Glisha3D us a -> Glisha us LibState a
   Actual type: Glisha us0 LibState a0 -> Glisha3D us0 a0
lol. almost.
@LightnessRacesinOrbit ahaha
15:15
@LightnessRacesinOrbit lol
I love those gifs
stop with the jifs overload
They are not called "jifs". This is Jif (possibly)
although it might be called Cif or something since the late 1990s cos Europe
how do those ads even work hahaha
nobody does those things
they're impossible
no live gif in chat please
LIVE AND IN ACTION
:20977508 no onebox
@LightnessRacesinOrbit The author of GIF claims it's said "jif" was because he wanted to make a joke with an American brand of peanut butter.
15:18
@EtiennedeMartel Right, it's a joke. So the real name is like "gif".
Ok, so. Design question for those of you who are smarty pants. You have a class/functor that takes a bunch of pieces of a puzzle and reorder them into either a column major or row major matrix representing the end puzzle. What should this class return? (Java)
@Jefffrey "class/functor" doesn't compute
@BartekBanachewicz Functor in the C++ sense.
15:19
@Jefffrey Your warranty agreement
@Jefffrey Some matrix class?
@R.MartinhoFernandes he said it's supposed to be Java, not OCaml
@R.MartinhoFernandes Ok, so this matrix class should take both row major and column major container of containers, correct?
(to prevent copying things for no reason)
15:21
Java is giving me nausea.
@Jefffrey Why are you writing matrix class again
2 mins ago, by R. Martinho Fernandes
@Jefffrey Some matrix class?
use an existing one?
Can't use "external" libraries because uni of course.
15:22
lol uni
lol fucked up requirements
and then you bother with copying and stuff
Apparently using the Java ecosystem is not part of the Java learning experience for some reason.
@Jefffrey copy the sources of some opensource library
@milleniumbug Yes, because it needs to be "fast" and compute huge puzzles and stuff.
And it needs to be concurrent too, but that's a story for another day or maybe never.
15:23
@Jefffrey Have your data stored in a single format.
@milleniumbug Cannot compute that statement.
user1804599
@Jefffrey That's because the guys who'll review your code don't know anything about it.
@Jefffrey Why do you handle column-major and row-major matrices? It's not like you use them both in the program?
@BartekBanachewicz The problem is not the implementation, the problem is what interface do I want.
user1804599
@Jefffrey Classes can't return anything.
15:24
It's like if you used both 1-based indexing and 0-based one.
@milleniumbug Yes, the "solver" algorithm returns row-major or col-major depending on what direction is best to solve the puzzle with. And that information is given at runtime.
@milleniumbug Exactly. So I need to abstract away the two possibilities.
Expected type: Glisha SampleState libs ()
  Actual type: Glisha SampleState Glisha.G3D.LibState ()
well fuck
user1804599
Return Pair<T[][], Direction>.
Except that the "container" of "container" should not depend on the actual container of container returned by the "solver" algorithm, so it should have a "generic" interface.
@Jefffrey If it was C++ I would have said "template it", but...
15:28
Something like: Pair<RandAccContainer<RandAccContainer<T>>, Direction>
As opposed to: Pair<Vector<Vector<T>>, Direction>
@milleniumbug eh
user1804599
(Seq[Seq[T]], Direction)
I guess that's lasagnascript?
user1804599
That's Scala.
user1804599
Use Scala!
How about no. :<
15:30
ahahah!
GOT IT
So yeah. I don't see a decent solution to this.
@E_net4 what's wrong with Scala?
I mean there's a lot wrong with it but why have you mentioned it in particular.
I did not mention Scala had something wrong.
Xeo
Xeo
Did @Lightness find an "Infomercial!" gif album?
15:32
like ... dumb girl waiting to be kicked while laughing
@Jefffrey Type erasure.
@Jefffrey Convert to a common format at the end
Also lol uni
so @Cat so far using 3D api requires lifting to that particular API
and user state is directly available
now I am wondering if I shouldn't do it backwards.
or.
of course!
I'm so dumb
6
lift3D :: Glisha3D us libs a -> Glisha us libs a
lift3D (Glisha3D g) = g

test :: Glisha3D us libs ()
test = get >> return ()

test3D = lift3D test
VICTORY
ALL HAIL ME
I'm so fucking great
Beh monad stacks
@CatPlusPlus bah, point being I flatten them for the end-user
15:37
> I'm doing some experimenting with Tarsnap's -s option. This seems
really useful for avoiding shooting yourself in the head.
Guy is using a very differen tarsnap than I know o.O
@BartekBanachewicz Have you tried encapsulating that into a class?
obvious troll is obvious
@BartekBanachewicz just having a little fun is all.
@LightnessRacesinOrbit that happens to me. when I water the window panes
@Jefffrey did you actually try to submit that? because I don't see a respond from you
@AlexM. oh blockscape. I remember reading about it when I was coding minicraft
I liked how he did the sand
blending the cues really helps improve the look
I ended up at that game after reading this
4
A: How to make natural looking voxel

PhilippThis is achieved by interpolating ramps between cubes of different height. When you have a scenery like this (seen from the side) # #### ## ############ you would add polygons to make it look like this: /#\ /####\ /##\ ############ An algorithm to calculate these ramps is the marchin...

0
A: C++ explicit fallthrough in switch

Aaron McDaidI always write a break; before each case, as follows: switch(val) { break; case 0: foo(); break; case 1: bar(); break; case 2: baz(); break; default: roomba(); } This way, it is much more obvious to the eye if a break; is missing. The initial bre...

interesting
15:51
I mentioned it once, but I'll mention it again: the design of switch instruction is retarded in modern languages.
@LightnessRacesinOrbit My eyes just bleed now. But yes, interesting.
@LightnessRacesinOrbit Meh. Don't trust developers even with tricks like that
static verification or bust
@milleniumbug what modern languages?
@milleniumbug Thank god (or in this case, Martin) Scala doesn't have retarded switch but awesome match.
@BartekBanachewicz it is static verification
@BartekBanachewicz C++. Java, C# probably ;)
15:53
@BartekBanachewicz More modern than C
@milleniumbug lol seriously
do you divide history of PLs to "before C | after C"?
Poor man's pattern matching
And with the stupid fallthroughs
not even mentioning the fact Lisp is older than C and "modern" languages are still worse than Lisp
How about #define CASE break; case? ;) — FredOverflow 9 secs ago
@BartekBanachewicz Seems reasonable to me.
15:54
@CatPlusPlus But fallthroughs are so efficient in the 0.3% of cases where you need them!
@FredOverflow C#'s switch doesn't have implicit fallthrough.
I'd say "modern" started in 1990, after SML
@R.MartinhoFernandes Oh right. Does it use goto for fallthrough?
so yes, that means Java was old even before it appeared
15:55
@BartekBanachewicz Right, SML was revolutionary.
@BartekBanachewicz Java is from 1995. How is it old if new started in 1990?
@FredOverflow it ignored the 5 years of research after 1990 :P
@BartekBanachewicz unit tests or bust
@AndyProwl strong compiler > unit tests
sure, you need both
but you can add tests to code within strong language, but hardly in the opposite
Why wouldn't you be able to add tests in a weakly typed language?
(by "true" I meant to answer "you need both")
I meant you can hardly make dynamically typed code with tests have strong compiletime guarantees

« first day (1552 days earlier)      last day (3620 days later) »