« first day (1809 days earlier)      last day (3154 days later) » 

6:00 PM
I could try it with 500 and see what happens
 
@JerryCoffin less is betteeeer
@Ell no? It's only in sync more or less. Also lag.
Basically all latencies add up.
 
user1804599
@fredoverflow does Kotlin have its own standard library?
 
so there's server tick, network, your router, your PC, your screen, your mouse etc
you can control the local ones and get them as low as possible vOv
 
BTW the kick system and timeout system needs to be able to auto refresh
 
@BartekBanachewicz Sure--now, can you determine whether somebody had their mouse sampling at 100 hz or 1000 Hz based on statistical analysis of the outcome? I'm going to guess no. That 9 ms difference is completely lost in the noise.
 
6:12 PM
@BartekBanachewicz not all planes are
@ThePhD you forgot Opus
 
@JerryCoffin well, it all adds up doesn't it.
 
@JerryCoffin I would expect it to add 4.5 ms on average.
dunno how important that is
High Frequency Gaming
 
@BoltClock I'd be surprised if the whole of Mongolia was 1 timezone
 
@JohanLarsson Sure--I'm doing my best to give them the benefit of the doubt (but even then, it's not gonna matter).
 
@sehe At least where our resident Mongol lives anyway
 
6:15 PM
ahhhh
 
@AlexM. is it a performance issue your having with the game?
 
@BoltClock A real programmer would say that Singapore and Mongolia share a timezone. (Possibly only part of the year, although that would - again - surprise me)
 
user406009
@Puppy That's nice. Some nights I get 2 seconds ping.
 
you must really feel that 8ms mouse lag
 
6:17 PM
@sehe Don't know about Mongolia, but DST is not a thing here
Huh, interesting
 
@EtiennedeMartel which figurant is you this time?
 
Time in Mongolia is officially represented by the Mongolian Standard Time (UTC+08:00). However the far western provinces of Khovd, Uvs and Bayan-Ölgii use UTC+07:00. == Daylight saving time == Mongolia abolished the use of daylight saving time in 2007, but reinstated it in March 2015. == IANA time zone database == The IANA time zone database contains three zones for Mongolia in the file zone.tab. == See also == Historical time zones of China == References == ^ "DST News - Mongolia Daylight Saving Time news". WorldTimeZone.com. 8 February 2007. Retrieved 29 January 2014. ^ "Mongolia...
> Mongolia abolished the use of daylight saving time in 2007, but reinstated it in March 2015.
 
@sehe I'm not in there.
 
@BoltClock making Jon Skeet happy
@EtiennedeMartel Oh. I've come to expect this now
 
user1804599
Lombok is very nice.
 
user1804599
6:18 PM
@Data
public final class Lexeme {
    public final Token token;
    public final Object value;
}
 
user1804599
Automatically gets ctor, equals and hashCode.
 
Object value?
that's pretty shit
 
@BoltClock is it not hard enough for these poor people trying to make time libraries
 
@elyse That is nice.
@Puppy I can name a thing about you that's pretty shit
 
It must be like that hardest problem we have in computing, "what time is it"
 
6:19 PM
(And it's not your mom)
 
@sehe I thought... CELT/SILK was Opus (it's old name)?
 
CELT and SILK were folded into Opus IIRC
 
Ah. I didn't know that
 
user1804599
@sehe also no checked exceptions
 
@thecoshman Even philosophically, it remains hard even when restricted to the technological domain
 
user1804599
6:20 PM
and type inference for locals
 
@sehe I cooked my sandwiches for unsufficient time
 
user1804599
it's a compiler patch
 
@Puppy See. There you go. Still I'll hold you in a certain amount of respect :)
 
@elyse structural equality right? Doesn't Scala do that?
 
user1804599
@JohanLarsson Yes. It does.
 
@sehe you mean just getting two machines to know when some unit of time has passed?
 
who is the owner?
 
So yeah, Opus is the new Codec. Lots of games are using it... I don't quite have support for it yet. I only support FLAC/WAV. I should load more music file formats like Vorbis, Opus, and ... well, I don't think there's any other music file formats commonly tossed around (other than the Patent Minefield that's MP3).
 
Opus isn't a music format, it's a speech format.
 
@EtiennedeMartel oh my. Kinda puts a Vanessa Paradis in perspective, making that look good in retrospect
 
6:22 PM
if I recall correctly
 
@CS_STEM I am the one who owns!
 
@sehe Sure--Singapore and Mongolia are both at +0800. Probably more interesting is that north of Mongolia, there are places that go directly from +0700 to +0900, with nothing in between at +0800. timeanddate.com/time/map
 
does C# put function local ref types on the heap?
 
@thecoshman No. What you said
 
@BartekBanachewicz "Your PC" what
 
6:22 PM
Yeah, but the benefit of it is that it's "supposed to be pretty good for music and not-speech too".
 
@sehe Yeah, I have some issues with her music in general.
 
@CatPlusPlus dunno everything
 
The song I linked I find quite compelling, but otherwise the rest of her work fails to catch my attention in any way.
 
@JerryCoffin This doesn't surprise me given that the nation use one timezone
 
@sehe oh yeah, I agree with what I said :P but I feel I shouldn't...
 
6:23 PM
@EtiennedeMartel ah. reprieve
 
Obviously I'd prefer Vorbis to it. Speaking of, I need to vendor libvorbis... and libjpeg, and whatever reference implementation exists for opus.
 
@thecoshman my doubt is real.
 
@thecoshman you should not. But you can. And it won't reflect badly on you
 
@ThePhD That's not a benefit at all, that's random hearsay
 
@ThePhD maintaining all that is gonna be soooo fun
add a few more and you won't be able to add a single feature
 
6:25 PM
@sehe A fair amount of that looks like it's in Russia (on both sides of the line).
 
@Puppy there is some research about it IIRC
 
research isn't "supposed to be", it is.
 
oh hmm apparently some people in Poland already have those Kawasaki H2 motorbikes
 
@BartekBanachewicz There is no maintenance: my repo contains the code, I verify that code builds once, I keep it in the repo forever. It'll always build so long as I get it to work once.
 
or, in other words, suicide accelerators
@ThePhD libraries update you know
 
6:27 PM
@sehe No, I never get tired.
 
@Puppy gah. You must get tired sometimes
 
user406009
@ThePhD Do you happen to remember the BS argument against static methods that professors seem to like?
 
no mocking?
 
user406009
Nah, that's the sane argument.
 
6:29 PM
they're not pure OOP.
would be my guess
 
@sehe Well who ever it was who said it, he's either a fool or a genius or somewhere in between
 
user406009
@Puppy Sounds about right. I'll try that.
 
that's bullshit alright
 
indeed it is.
 
user406009
Thanks.
 
6:30 PM
sooo I'm alone
wat do today
rust I guess
 
user406009
Factorio
 
@thecoshman safe bet
 
@Lalaland hmm
haven't played that in a while I guess
 
@BartekBanachewicz there's not been much updated recently
 
user406009
Did you get to the end-game? Launch the rocket?
 
6:32 PM
no
 
I launched your mothers rocket
 
that's weird
 
yeah
didn't really work out
 
@BartekBanachewicz spoiler, it launches a rocket
 
that's what she said
:26005248
 
user406009
6:34 PM
@BartekBanachewicz You haven't really completed Factorio till you have done that. It sorta proves that your factory setup was good enough.
 
user406009
Requires like 20K green chips.
 
@Lalaland well, that takes getting a few of them launched fast
 
might do it I guess
heh I still can't believe I bought this jacket so cheaply
let's see how my macbook copes with Factorio
 
user1804599
hi
 
@BartekBanachewicz Wouldn't be good to let your Factorio get Rusty...
 
6:45 PM
heh
also spotlight search on mac works really great
 
Yep, prisons in your area also say that spotlight search works well
 
user406009
Doesn't Factorio have multiplayer now?
 
it does
wanna join?
havent started yet
 
user406009
Can't this week.
 
suck
hmm I want a beer but I only have Koźlak
damn
 
user1804599
6:52 PM
 
hello
 
user1804599
hi Ethan
 
should a database query return a list or a set, if the order doesn't matter?
 
user1804599
what kind of database and what kind of query
 
user1804599
if it can contain duplicates, multiset, otherwise set.
 
7:04 PM
a spatial database for say "all points in distance"
 
a collection?
 
user1804599
using lists documents that you are interested in order
 
user406009
@BartekBanachewicz I would return a list.
 
4 hours ago, by Cat Plus Plus
Attention, drinking game now in effect: drink every time monads are mentioned
 
user406009
Set implies a lack of duplicates.
 
user406009
7:06 PM
And there could be duplicate points.
 
What's a monad?
 
user1804599
@Lalaland Multisets exist dummy.
 
user406009
@EthanBierlein Do you know what map and flatmap are?
 
I know what a map is, but not a flatmap. Are we talking about the same kind of map?
 
user406009
Map as in the operation. As in going from a vector<Foo> to vector<Blah>
 
7:07 PM
Oh, well then I don't know
Especially in the case of this so called "flatmap"
 
user406009
Flatmap is a similar operation, but you "flatten" the list afterword. So vector<Foo> to vector<vector<Blah>> to vector<Blah>
 
user1804599
A monad is just a monoid in the category of endofunctors, what's the problem?
 
user406009
A monad is something which supports both map and flatmap.
 
Ah
Could I maybe have an exmaple?
 
user1804599
@Lalaland and also return
 
user1804599
7:08 PM
also map can be defined in terms of return and flatmap.
 
Sep 25 at 17:23, by Bartek Banachewicz
divBy2 :: Int -> Maybe Int
divBy2 x = if x `mod` 2 == 0 then Just (x `div` 2) else Nothing

(Just 16) >>= divBy2 >>= divBy2
 
user1804599
map f x = flatMap x >>= return . f
 
@elyse I don't trust endofunctors.
 
user406009
@EthanBierlein have you ever used futures? Or optional?
 
neither
 
user406009
7:13 PM
OK. There really isn't a decent example then.
 
@Lalaland hey how about mine :(
 
user406009
Monads are like design patterns. They just describe something that is useful on its own.
 
I think it's simple enough and importantly pure
@EthanBierlein have you read it? What do you think, intuitively, >>= is doing?
 
user1804599
The concept of monads exists solely because many operations can be defined that work on all of them.
 
7:15 PM
Give me a second
Some sort of sequence operator?
 
@EthanBierlein yeah. Look at the signature of divBy2 closely.
it's a kind of "special" sequencing
 
Yeah, it takes an Int, and returns an Int, maybe?
 
@ThePhD About what? Did I miss something?
 
mhm. What if you have a "maybe int" and you'd like to pass it to another function taking an int but still returning a maybe int?
imperative translation might be helpful
sec
 
okay
I feel way in over my head right now
I have only a mediocre understanding of FP
 
7:19 PM
Don’t worry about it, it’s not a very useful notion.
 
Hello.
 
let n = 16
let maybeA = divBy2(n)
if (maybeA) {
  let maybeB = divBy2(*(maybeA));
  if (maybeB) {
    return *maybeB;
  } else {
    return Nothing;
  }
} else {
  return Nothing;
}
@EthanBierlein I used "*" to symbolize "dereference" or "extracting the value from the maybe value"
 
inb4 flag for code dump
 
let n = 16
let maybeA = divBy2(n)
if (maybeA) return divBy2(*(maybeA));
return Nothing;
simplified it for you
 
7:31 PM
ye.
 
is there a non-deprecated solution to clear console output other than system("cls")?
 
@CS_STEM there are no standard ways
OS-specific
uh ffs rust
 
I need to clear the console in a portable way at most some recomend inserting a bunch of new lines (that's not very clean) any other idea's?
 
@CS_STEM ncurses and equivalents (nice question refinement)
eh no implicit int -> float conversion can be annoying
esp when those are constants
also lol at every SO answer about rust
 
@BartekBanachewicz doesn't the curses library afflict with iostream?
 
7:36 PM
all of them are outdated because everything changed already
@CS_STEM it probably will. You can create your own output stream that will redirect to curses and use that instead though
 
@CS_STEM Is there a way to access Google from your browser? Yes.
 
/Users/bajtek/Projects/rust/src/main.rs:44:16: 44:21 error: mismatched types:
 expected `collections::vec::Vec<i64>`,
    found `collections::vec::Vec<&i64>`
now that's funny
 
@puppy I would not be asking if I found something to solve my issue.
 
gosh
I guess that giant "ASK QUESTION" button is too subtle huh
 
> bajtek
 
7:40 PM
ncurses is not a supported library in VS 2013
 
@CS_STEM what
 
try Turbo C++
 
@JohanLarsson it was one of the first PC-themed magazines in Poland. In Polish, "bajt" means "byte", which fits in nicely with my name :)
 
I've also heard great things about Borland C++
they support ncurses
 
user3790646
Oh they support ncurses, let's all hail Borland C++
 
7:43 PM
we should all switch
ok though
why is this thing trying to return a vector of references
 
user3790646
I've tried to create a vector of references today
 
user3790646
lol what a joke
 
/Users/bajtek/Projects/rust/src/main.rs:40:33: 40:39 error: cannot move out of borrowed content
/Users/bajtek/Projects/rust/src/main.rs:40             if distanceSq(from, entity.position) < radiusSq {
                                                                           ^~~~~~
hi @AndyProwl
 
(warning Basic simple question enclosed) is the .net framework the same as the powershell ?
 
how about I'm not moving anything you fuck
@CS_STEM why don't you google both and compare the results
 
7:45 PM
@CS_STEM They are the same since DOS
 
user1804599
 
user3790646
@BartekBanachewicz give this man a cookie!
 
anyway srsl
 
@Puppy Thanks, I thought they might be.
 
why is this thing moving things
I want to clone everything
value everything
"how do I actually call a function in rust"
 
user1804599
7:46 PM
@CS_STEM no
 
sounds like Swift
 
user1804599
.NET Framework is a library and programming environment, whereas PowerShell is a programming language.
 
@elyse "no" what?
 
@BartekBanachewicz doesn't Rust move by default?
 
user1804599
you asked a yes/no question
 
7:47 PM
@AndyProwl waaat
 
user1804599
I answered with "no"
 
mmk
 
do I really need to append "clone" to everything
 
@BartekBanachewicz I think it does
 
7:47 PM
not 100% sure
 
@CS_STEM They renamed powershell into .NET when MS-DOS 7.1 came out
microsoft often renames products
like how they renamed vi into visual studio
 
@AndyProwl it’s not like that anymore
 
fuck.
 
so sorry @Bartek
 
7:48 PM
my boss just e-mailed me to tell me that the latest build of our ios app is broken.
 
I was wrong
 
@AndyProwl so I should take a reference not value?
 
fucking I hate that shit.
 
user3790646
this guy has serious balls
 
user3790646
 
7:49 PM
or, in other words
 
iOS apps can never just go slightly wrong, they can never throw recoverable exceptions, at the slightest misstep you MUST TERMINATE THE APPLICATION ALWAYS
 
@BartekBanachewicz dunno
 
does saying s: MyStruct steal the parameter
> should have a snake case name
lel
good one
 
whatever you want
one convention is good
 
7:53 PM
hmm
guess it says something if you receive the same job advert twice in ten minutes
obviously just a script scraping their DB
 
Uh
So the thing is
Rust devs totally can't accept 0 being polymorphic to ints and floats, but are perfectly fine with 0. being polymorphic to f32/f64.
 
evening
 
@TonyTheLion Howdy :)
 
long and stressful two days
I need to wind down
 
Have a beer.
 
7:56 PM
ran out
:(
 
beer!
I need to go out and buy some
but sooooo lazy
 
@BartekBanachewicz by ncurses where you refering to the curses.h library?
 
Sometimes I feel that the Lounge only agrees on beer.
 
@Morwenn I greatly dislike beer.
 
7:58 PM
@Puppy I'm not surprised.
 
@Morwenn Pizza is the agreement
 
@AndyProwl I don't like pizza that much.
 
@Mr.kbok what's that? Are you modelling things?
 
user1804599
TIL SPARC uses a circular buffer for the call stack.
 
@CS_STEM I'm refering to whatever ncurses is right now. I don't use that.
 
7:59 PM
@BartekBanachewicz yes, but VERY simplistic
 
@Mr.kbok what tool?
 

« first day (1809 days earlier)      last day (3154 days later) »