« first day (2031 days earlier)      last day (2932 days later) » 

user1804599
 
Ven
yes?
 
keep clicking B-reduce for extra fun
 
user1804599
Enter "100 100 100".
 
user1804599
For exponential fun.
 
crashed the browser
 
user1804599
1:04 PM
:3
 
user1804599
Applying a Church natural A to a Church natural B raises B to the power of A.
 
it crashes my stackoverflow chat tab
when i enter that number in the other tab and press reduce multiple times xD
 
user1804599
fail
 
lulz
maybe a security hole
 
Ven
I think I understand. They're using the same process because I meta-clicked. If I copy-paste the URL, crashing the playground doesn't crash snakcat
 
user1804599
1:11 PM
SNEKchat
 
@Ven you mean chromium does so?
 
Ven
@JohannesSchaub-litb yes
 
sorry i don't know about details of it
snakcat is the name of stackoverflow chat?
 
Ven
yes, sorry
 
meta-clicked means when you click a link and it opens as new tab, it shares the same process?
ah i see this is interesting
 
Ven
1:14 PM
yes (by looking at chrome's task manager)
 
so it's not a security hole really
i would have liked something like "a script on this page blocks the browser" blah
 
Hi guys, I was wondering what is more efficiently; When storing bihourly measurements points for up to a month for roughly 20.000 items what is an efficient way to save this? So I need to easily append data and read the whole set to do analysis. I could save for example sets of 100 items in dictionaries or all items individually in data streams? I have limited ram so databases such as MondoDB seem out of the question
 
user1804599
PostgreSQL
 
user406009
@SecondLemon Just use SQLite of PostgreSQL.
 
user1804599
20000 items is really very few.
 
Ven
1:17 PM
@JohannesSchaub-litb hahaha – would have been weird
 
user1804599
assuming small items
 
user1804599
which they probably are
 
@Ven why is that
 
I tried it with mongodb once but it crashed eventually. Came to something like 10 gig. And what would be an efficient way to link the datapoint to the date? store it for each point or for example: use a fixed array to store data and fill up null if it appears that the server was offline for a time.
 
user406009
@SecondLemon Uh, there is no way 20000 items takes up 10 GB.
 
Ven
1:19 PM
@JohannesSchaub-litb they'd have discovered such an obvious hole a long time ago, i think. or i'd like to think
 
how do you go from bihourly over ~a month to 20k items, too?
 
well I am sure I was storing the data inefficiently before. Thanks for the suggestions. Will look into SQlite and PostgreSQL.
 
@Ven perhaps it would be a denial of service because of some unfortune performance bugs
 
nah I mean 20.000 items that need bihourly measurements
 
user406009
@SecondLemon Look into sqlite first. It's really simple.
 
1:21 PM
Thanks will do
 
user406009
And if it solves your needs, then you are all solid.
 
Ven
i sure hope you feel like you accomplished a lot here
 
user1804599
@Ven interesting idea
 
user1804599
Make each quoted symbol of its own unique data type.
 
Ven
1:35 PM
huh
 
user1804599
So 'a and 'a have the same type, but 'a and 'b have distinct types.
 
user1804599
You can then use them for phantom types.
 
user1804599
So you don't have to create empty types all over the place.
 
user1804599
dunno
 
user1804599
whatever
 
user1804599
1:43 PM
hmm wait, I'll make quoted symbols mean functions that return record fields
 
2:05 PM
-2
Q: I have an assignment where I have to use fork and pipes

Reggie KaprosI know the basic of how fork and pipes work and how processes are created but I just can't imagine how should I create a chain of processes like in this assignment: With the help of n+1 processes calculate P=(a(n),a(n-1),...,a(0)) polynomial for each X value. The F(i) process (i=1,n-1) reads fro...

"I have an assignment..." ...cool, what about it
 
He clearly wants help with it
 
@milleniumbug omg his indentation is atrocious
wtf is that
 
Ven
it's not the worst type of vampire, at least
 
default:{
        if (close(pn[i][0])<0) {perror("error");exit(1);}
        }
ewwwwwwwwwwwwwwwwww
 
2:16 PM
Ugh, running into another annoyance with Niebler's ranges.
 
user1804599
haha
 
user1804599
// (.a {a true, b not})
((object)[
    'a' => $true,
    'b' => $not,
])->a;
 
user1804599
So cool.
 
If they havent been standardized yet its still time to bring those to the committee's attention
 
I want f([1, 2, 3, 4]) = [1, 2, 3, 4, 10] (10 is the sum)
Everything I try leads me back to my existing shitty implementations.
 
2:27 PM
i.e. inverted control with bits of state innards strewn about everywhere?
 
@LucDanton Or just store iterator pairs (and subsequently pairs of those pairs, and so on) all over.
 
that one is a given
 
I guess I might just be expecting too much out of this from my experience with C# or Python.
 
the choices that Eric makes inform most of the rest; in this case the choice to be somewhat source-level compatible with iterator pairs
 
2:33 PM
@R.MartinhoFernandes Can I ask what the use case for this is?
 
@Borgleader Well, this is just an example distilled of all domain knowledge.
I need it for stateful encodings.
You usually need to flush the state at the end by producing some final degenerate code units.
Base64 is a group of similar binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation. The term Base64 originates from a specific MIME content transfer encoding. == Design == The particular set of 64 characters chosen to represent the 64 place-values for the base varies between implementations. The general strategy is to choose 64 characters that are both members of a subset common to most encodings, and also printable. This combination leaves the data unlikely to be modified in transit through information systems, such...
Probably the most well-known such case.
> Padding

The '==' sequence indicates that the last group contained only one byte, and '=' indicates that it contained two bytes.
 
@R.MartinhoFernandes btw when you take a tabula rasa approach to the problem you can run into very hard choices, e.g. trying to make ranges out of containers (and not just a range as a view into a container)
cos iterator invalidation rules get in the way
> I had to leave all guilds I was in and I have to get rid of 2000 followers because these things were causing huge lags and disconnects to me.
 
Not sure I get what you mean.
 
@R.MartinhoFernandes even when you start from scratch iterators come back to make your life harder!
(iterator invalidation has more to do with containers than it has iterators of course but then there’s no joek)
 
But at least some of them can have more stable alternatives.
Thinking of just going with indices for vectors for example
 
2:40 PM
in der Tat
@R.MartinhoFernandes I was thinking std::size(c) and c[0] as the requirements (for something like Indexable maybe)
 
To be honest in ogonek I really only care about vector-likes and streams.
The rest is nice to have but you shouldn't be doing encodings nor normalizations in internal structures.
 
you say that but then you do things like partitioning, filtering, grouping, and so on which tend to restrict the traversal (off the top of my head)
 
2:55 PM
Sometimes Niebler's ranges feel like Boost.Range with slightly better facades.
 
What about that is for me?
 
user1804599
Dutch
 
user1804599
Koekwous
 
@R.MartinhoFernandes to me it feels like c++...
 
3:05 PM
you don’t hold back, do you
 
Well. It's the truth ;)
 
3:23 PM
@sehe, great thanks! PS: I'm studying spirit by your answers on stackoverflow :) — drus 1 min ago
I feel he's framing me for the plethora of problems in his code
 
3:41 PM
I'm definitely adding counting sort to my library.
 
Ven
3:53 PM
> "A critical medical equipment crashed during a heart procedure due to a timely scan triggered by the antivirus software installed on the PC to which the said device was sending data for logging and monitoring. Fortunately, the patient was sedated, and the doctors had five minutes at their disposal to wait for the computer to finish rebooting, start the Merge Hemo application again, and complete their procedure without any health risks for the patient."
 
user1804599
I have an idea for modules
 
user1804599
Make them CommonJS-like. Files consist of exactly one expression. The require special form returns the expression in the file given as an argument to it
 
Ven
It's like half English, half line-noise. Amazing. — cat 3 mins ago
Perl 6 is great :3.
 
user1804599
; function.snek
{id (fn [t *] (fn (x t) x))
 const (fn [t *, u *] (fn (x t, y u) x))}

; hello.snek
(let (function (require "./function"))
  (print ([(.id function) string] "Hello, world!")))
 
user1804599
Like this.
 
user1804599
4:07 PM
I'll first implement let-rec though.
 
user1804599
And worry about partiality.
 
hi all, why does this (stackoverflow.com/a/344907/2483127) cause a memory leak? because the Ptr variable is not cleared?
 
user1804599
Because delete is not used.
 
@HalilPazarlama He does a new without a matching delete (and doesn't return the pointer, so nobody else can do a delete on it either).
 
user1804599
4:17 PM
Also, never use new.
 
user1804599
Use automatic storage duration, make_unique, or make_shared; in that order of preference.
 
user1804599
@jerry well DoSomething could delete this;.
 
@HalilPazarlama check that the function itself or DoSomething delete the object by delete Ptr or delete this;
 
user1804599
When you use new, your code is instantly unmaintainable garbage.
 
I doubt he knows what "automatic storage duration" means
 
user1804599
4:19 PM
It's like shooting yourself through the head: you're instantly dead.
 
lol. ok, thanks!
 
user1804599
@JohannesSchaub-litb I'm pretty sure Google knows it.
 
user1804599
You don't have to explain every word you ever say to everybody.
 
@Zoidberg Sure--I'm just pointing out why people responded that it was leaking, not trying to point out any of the many ways they could be wrong (most of which aren't nearly as nasty as delete this;).
 
user1804599
Looking up definitions is a fundamental skill required to function in every day life.
 
4:20 PM
I wonder how people coded before Google :p
 
given that i'm logged in, it's hard for me to verify that thesis, @Zoidberg
 
Ven
@Zoidberg nope. 92% death rate
 
but if he often searches for things like "automatic vibrator" or something, i'm not totally sure whether "automatic storage duration" will point him to c++ lecture
 
user1804599
Implementing let-rec is very easy.
 
user1804599
(let-rec (x bool y
          y bool x)
  (& x y))
 
user1804599
4:21 PM
Telling the programmer that this is broken is way harder though.
 
@Zoidberg if it's export-speech or language-lawyer speech, you should tho
the term "automatic storage duration" for scoped variables is some language lawyer-ism
 
nwp
@JohannesSchaub-litb that's why you use duckduckgo instead of google
 
@R.MartinhoFernandes Magic!
I wonder if it were possible to do what chcp does but in code.
 
system("chcp 69");
 
@R.MartinhoFernandes Oh.
 
> Our development team is looking for a Senior Embedded Developer. As Embedded Developer at tado you will be responsible for getting the heating systems of our customers connected to the internet using the latest 6LoWPAN technology stack.
 
4:54 PM
I'm slowly realizing that I hate to have the last word in useless debates.
I guess I like it more when people write a huge wall of arguments and I just stop to answer because it's all pointless to start with .______.
 
@R.MartinhoFernandes I may still have his C++ book
used it in uni, wasnt bad, i think i sold it after buying bjarne's
 
Btw, for anyone who's into NIH, github.com/rmartinho/nonius/issues/47.
@ThePhD? :P ^
 
Good luck reimplementing boost::lexical_cast if you need the full range of what it provides :p
 
Nah, not really.
 
@R.MartinhoFernandes NIH?
 
5:00 PM
Not Invented Here
 
I think it might be even the case that it isn't needed.
 
user4655569
Hi
 
user4655569
Got a question related to system calls.
 
user4655569
Can I just use fork(), pipe() etc. in C++ like in pure C (sorry if nooby question) ?
 
5:04 PM
Yes.
 
user4655569
But if i code in C++ I should use the C++ commands and not read() or write to read/write to the end/beginning of a pipe ?
 
user4655569
But ... ?
 
Ven
wait what, did AlexM delete his account??
 
Weeks ago.
 
5:09 PM
@Ven a while ago yeah
 
Ven
why?
 
Not sure :/
 
user1804599
(let-rec (f (-> bool bool) (fn (x bool) (g x))
          g (-> bool bool) (fn (x bool) (f x)))
  (f true))
$f = function($x) use(&$f, &$g) {
    return ($g)($x);
};
$g = function($x) use(&$f, &$g) {
    return ($f)($x);
};
($f)($true);
 
user1804599
Capture by-reference! \o/
 
I sent an application for an embedded C++ job through SO.careers, and then I got this ^
 
5:17 PM
do you like a scripting language whose numeral literals are float by default?
 
user1804599
No, I never link numeral literals that are floats by default.
 
i.e 10 is a float. to mean an int, you would have to say 10z
 
user1804599
At least, not when they're in decimal.
 
user1804599
Because fuck implicit loss of information.
 
user1804599
It's fine in some DSL for systems that deal almost exclusively with floats.
 
5:18 PM
to mean imaginary you would have to say 10i . 10r means float and is equivalent to 10 except when the numerical value would exceed 2^(bits of magnitude+1)
in which case 10 would error but 10r would work and rount to the nearest representable float
do you like this?
 
user1804599
No, just make 10 an integer, 10.0 a rational, and 10f and 10.0f floats.
 
user1804599
Keep it simple.
 
and 10(-+)5c is a complex
 
user1804599
Yeah.
 
user1804599
Cool.
 
5:20 PM
@Zoidberg it's not a literal xD
y * 10 + 5i oops
 
user1804599
5i10
 
I haven't used complex numbers for any program/library yet.
 
@Zoidberg double can represent all integers +- 2^53 exactly
because when the exponent is nonzero, the most significant set bit is assumed to be set and is not stored (aka hidden mantissa bit), therefore it gets 1 more bit of precision than the layout implies
 
user1804599
@Ven The first module is a fact! And it even works! github.com/rightfold/snek/blob/master/std/data/function.snek
 
> I still don't understand. Could you explain it using only words that start with A B or C please
 
5:40 PM
???
 
Ven
DH SC2 HYPE
 
Oh, 538 lines of error message spam. I missed thee.
 
sup
 
@jaggedSpire gotta start the dictionary from one end somehow
 
Ven
14k viewers for SC2 DH finals. dead gaem :(
 
integers are simply stored in the mantissa, shifted left enough times to make the most significant bit be shifted out, with the exponent set to (the bias - the number of shifts needed)
 
@R.MartinhoFernandes always be on the lookout for al-gebra
 
nwp
@doug65536 how about you write a blog post or make a youtube video to get it out of your system?
 
Arghh, all range-v3 errors are "no type named type in ranges::...::most_refined"
 
:(
 
6:04 PM
@R.MartinhoFernandes considering the whole concept emulation layer, seems like a waste
 
Hmm, I was missing a default ctor.
 
how unrefined
 
ARGFDGDFGH, view_adaptors completely take away the power to handle the end of the range.
And view_facades are essentially Boost.Range facades by a different name.
I'm done with this.
Niebler's ranges: 👎
4
I'm using the "nice" interfaces, and yet all my ranges that would be simple as loops are a horrendous mess of convoluted logic anyway.
 
6:23 PM
is saying int foo[3] = {1,2,3}; a shorthand for foo[0] = 1; foo[1] = 2; foo[2] = 3; ?
 
user1804599
No, for int foo[3]; foo[0] = 1; foo[1] = 2; foo[2] = 3;.
 
Ven
^
 
right
 
lol
 
Ven
@LucDanton il revient dans un mois, hein
@nwp cue inception soundtrack
 
6:27 PM
Seriously, look at this shit gist.github.com/rmartinho/f3d5cfb3c62cae75d867db546a0f13a2 (not working)
 
@Ven ?
tu crois que l’exil est forcément permanent ?
 
Ven
@LucDanton il est ban 1 mois du chat
 
user1804599
hahahahaha
 
Ven
?
 
user1804599
compose (fn [a *, b *, c *]
          (fn (f (-> b c), g (-> a b), x a)
            (f (g x))))
 
6:29 PM
// All I want is
Encoding::state s;
for(auto cp : src) {
    for(auto cu : Encoding::encode(cp, s)) {
        yield cu;
    }
}
for(auto cu : Encoding::flush(s)) {
    yield cu;
}
 
i.e. concat(concat_map(encode, src), flush(s))?
@Ven thank you for explanating
 
Ven
@LucDanton my pleasure
 
oh the s is tied to the whole state
 
@LucDanton Yeah, but s needs to be shared between the arguments of concat.
 
impure tricks aside, ya gotta concede that’s tricky
but since the loop version is remorselessly stateful I guess you can accept that in the range version, too
 
6:32 PM
Yeah.
// This is less tricky (no nested loops) but powerful enough
int sum = 0;
for(int x : src) {
    yield x;
    sum += x;
}
yield sum;
 
user1804599
The compiler output is also astonishing: gist.github.com/rightfold/74c1feb5f65ac10a0603f6975ea0dce4
 
6:50 PM
@LucDanton Actually, it's not any more stateful than scan.
I guess it's more like scan + zip
No, wait, not that.
Just a scan, really.
 
with a scan you don’t have the effects other than by running the thing
 
Ven
@Zoidberg a bit disgusting :P
 
user1804599
I want to generate classes for struct literals.
 
user1804599
So {a 1, b 2} will compile to new struct0(1, 2).
 
user1804599
Because accessing declared class fields is faster in PHP than accessing non-declared ones.
 
user1804599
6:55 PM
Or well, it's more efficient in storage.
 
user1804599
I don't know if it's faster to access.
 
nwp
@Morwenn I got coeur fondat au chocolat which is french chocolate muffin with a liquid chocolate filling which becomes really awesome after putting it in the microwave
 
user1804599
So, the next steps are: imports, FFI, and variants.
 
nwp
can totally compete with mousse
 
@nwp * fondant :p
 
6:57 PM
@LucDanton wth
 
nwp
oops
 
Not really fond of those though.
 
Ven
really? they're pretty amazing when still hot
 
@R.MartinhoFernandes Thanks for letting us know
(Seriously. It looks stupid when stated dryly)
 
Well, there's only a handful of chocolate desserts I like anyway :/
 
6:57 PM
@sehe kids say the darndest things
 
And generally the colder kind.
@R.MartinhoFernandes C'mon, there are good parts :o
 
les choses les plus darndes
@Morwenn The thing with standardizable things: you don't want the icky parts to be quite so near the surface
 
True.
I guess that I like what I already took: well, range algorithms of course, projections and proxy iterators (ok, kind of blergh, but still powerful). Counted iterators look somewhat neat even though not that neat.
 
How about miscounted iterators?
 
How would I know? I never used them :o
 
7:09 PM
misguided iterators
 
You bunch of trolls :(
 
@StackedCrooked seen the latest Hero Academia? it's reasonably fun
 
@Morwenn Don't forget you were having this conversation in the first place. It's not /just/ troll
 
7:16 PM
I... don't even get the point .___.
 
Ven
congrats, you just got sehe'd.
 
sehe vs. Nicol Bolas
Deathmatch
 
7:29 PM
I know a thing that is harder to understand: my overarchitected code
 
@Morwenn It's not a lousy troll cave if you can have an insightful conversation about ranges
 
user1804599
I'm brexcited.
 
user1804599
The EU is indeed a banana republic.
 
user1804599
Hence brexit.
 
@Morwenn You listen to the weirdest things, dude.
 
user1804599
8:09 PM
I've not been so happy with my projects as I am now since a long time.
 
hello guys, I don't think I actually need help with C++, rather suggestions for something
 
user1804599
Just ask.
 
so, my professor asked me to share the code I've written with my classmates, so I am gonna add a little trick, to be able to use the program they have to write " myname is awesome" in a textbox, like a registration code, any suggestions for other hilarious ideas to add ?
 
user1804599
We are always happy to help.
 
@Zoidberg thnx for the attitude :D
 
user1804599
8:11 PM
@justastudent Make the program format the hard drive upon some number of failed attempts.
 
@Zoidberg hahahahaaa lmao, that's the most creative thing ever
 
user1804599
No it's dumb.
 
@Zoidberg it's still considerable, who mistypes my name few times, must accept consequenses
 
user1804599
No.
 
sure, joking, but's it's a nice one :D
 
nwp
8:17 PM
@justastudent why does sharing your code entitle you to being a dick? you sound like those GPL people
 
First of all, it's "GNU/just a student"
 
@nwp lol, only doing it for fun
 
8:35 PM
@wilx I don't know. I wouldn't even call this « weird » .___.
 
I wonder what happens if I don't license my open source project that includes multiple works under different licenses..
 
nwp
@Khaled.K you further worsen the licensing nightmare and essentially make it impossible to legally use your work
 
@nwp I'm working on open source project, and I want to work with qt GUI classes.. the qt classes require using either QPL or GPL.. QPL is not open source, and I hate GPL
 
nwp
qt offers LGPL
WTFPL is not actually good. I agree with the content, unfortunately it doesn't hold as a license and is occasionally equivalent to unlicensed
supposedly a photographer put WTFPL on his photos and then sued people for using his work and actually got the money :(
 
8:44 PM
all GPL varieties are actively worse than unlicensed
 
nwp
LGPL is ok as long as you don't touch the code
 
user1804599
AGPL master race.
 
I like how SO teaches me about geometry standards stackoverflow.com/a/37104653/85371
@Mikhail Dajum. It's so inaccurate. It's also boring in that there's no clear contract (BSD, LGPL, WTPL are essentially the same) and there's no clear point (LGPL and GPL serve the same ideology; Therefore it's funny to demonize the one (oh noes, forbidding to play with little Susie Gates!).
 
9:00 PM
Oh, some good old WKT.
 
user1804599
yummy
 
user1804599
chinese food
 
@Mikhail "Gnu GPL" is not more or less GNU than "LGPL" afaik. Furthermore "your friend must agree to sign an agreement" is off. Even without signed agreement, "your friend [strikestrike] will allow everyone else to borrow his toys whenever they want" is a very bad analogy in many aspects (borrowed toys are not duplicated like software source, thus inconveniencing the lender; Software is copyable, making the whole "whenever they want" aspect moot. It's not "his toys" - it's only derived toys.
Again, toys are a bad comparison. I reckon the reason that ArtistDude chose "toys" is to appeal to childish sentiments ("Oooh - Jimmy doesn't want to share his toys"). In my view it nicely shows an "entitled" bias (there is really no reason Jimmy should let others play with his toys, except maybe if he thought they were a nice friend.
(s/contract/contrast/ above)
 
user1804599
My type checker works so well.
 
9:28 PM
Better than a type chocker.
 
nwp
@Morwenn lol you are too
 
Not that much.
 
@Morwenn Type cocker
 
@nwp Spot on
I'm getting tired of your shit, ssh-agent. https://t.co/xsVHOlyIuz
I don't like ssh-agent. But this complaint is pretty funny IMO
CS professor create a teaching assistant based on IBM Watson and fools students (pass Turing test) http://www.wsj.com/articles/if-your-teacher-sounds-like-a-robot-you-might-be-on-to-something-1462546621
Wait. What.
 
9:51 PM
@sehe Hahaha- That is awesome.
 
I forgot you lurk here. Yeah. That would interest you.
 
:v
How can I be more active?
 
Post dank memes
 
Talk about fun things in your life.
 
You mean dank memes
 
9:59 PM
Dank memes are so 2015.
 
@Morwenn I work with robots in my part time, and I learned I hate USB devices.
 

« first day (2031 days earlier)      last day (2932 days later) »