« first day (943 days earlier)      last day (4228 days later) » 

12:00
@LucDanton Ah. I thought it might be some Brazilian crap.
@LucDanton Oh, that table with consonant examples would have been so much cooler if all the examples were [xu], where x is the consonant.
What's cool about that?
user784668
@R.MartinhoFernandes WTH is that thing above the u?
12:02
@LucDanton It would have a pattern!
@Fanael Shortness diacritic.
user784668
oh right
user784668
@TonyTheLion they forgot machine guns
@TonyTheLion photosho.... oh wait... concept
user784668
@thecoshman no shit
And now I'm looking at French phonology videos on Youtube.
Ell
Ell
12:04
configuring webservers is hard :(
I have to confess I'm not doing great; why is there a nasal in signe?
@Fanael hahah
@LucDanton Isn't that one an exception? Isn't it like [gn]?
user784668
@TonyTheLion wait, Lambo is Audi now.
Where did I get that idea...
12:07
@R.MartinhoFernandes No. According to the video it's a nasal but I find it easier to just go /nj/.
¬_¬ I really need to actually use
user784668
@thecoshman brilliant idea!
@LucDanton Well, see your quote above.
Oh, I heard some Berlinerisch the other day. I am glad most people in Berlin don't speak like that.
Ell
Ell
12:11
my linux just crashed :o
Meh, doesn't matter. Boots up in 10-20 seconds anyways.
Ell
Ell
sign is nasal
If sehe continues to elude SO as he does know, that's cool :P
Ell
Ell
meh idk phonetics :L
6
A: Opus: Decoding audio data

not-seheI think the opus_demo.c program from the source tarball has what you want. It's pretty complicated though, because of all the unrelated code pertaining to encoding, parsing encoder parameters from command line arguments artificial packet loss injection random framesize selection/changing on-th...

12:12
@Ell Erm, no.
Maybe with some fucked up accent.
Ell
Ell
I would pronounce it nasally
@Fanael wat?
Ell
Ell
the "eye" bit
user784668
The [n] in sign is indubitably nasal.
@R.MartinhoFernandes Incomprehensible?
user784668
12:14
@TonyTheLion dat, they forgot machine guns because it's a German car, not Italian anymore
sin() is nasal :p
user784668
@melak47 repent your coses!
@melak47 lol
Ell
Ell
I was going to wrap Opus for c++ once upon a time
But I'm newb
12:26
-2
Q: C++ funny behavior

hofmnI have quite interesting code here. The question is: why is it compiles and runs without errors? int a[] = { 0, }; int main() { }

Not funny at all.
user784668
Which part of the program do you think should cause an error, and what error? — Lightness Races in Orbit 24 secs ago
user784668
@LightnessRacesinOrbit: obviously the error should be "programmer too stupid".
@TonyTheLion so, do those D-Wave computers really work?
the terrible thing about having unit tests is that you're constantly informed of stuff breaking when you're making changes
3
Ell
Ell
12:28
haha
#ignoranceisbliss
@melak47 I have no idea. I suppose if Google buys one, some of it must work.
Two gigabytes per gigabyte? Interesting.
Site's slow for me
Ell
Ell
12:30
$4,546.35
wow xD
user784668
@BartekBanachewicz yeah, always wanted a SSD with the speed of 2.
@Rapptz Obviously not using those SSDs.
Ell
Ell
you can get one for 1/4 of the speed for 1/4 of the price
lol
1/4th of the price?
TIL SSDs are 1k
@Ell less than 1/4 :P
A lot less.
user784668
12:31
You can get 99% of the speed by using an OS that actually does cache.
@Fanael But the boot times, man, the boot times.
That's uh, rather irrelevant
Do you have 800GB in RAM for cache?
@R.MartinhoFernandes lol
No point in answering that.
12:32
because that's obviously not for an average user
user784668
@BartekBanachewicz lol
Still, having one would be funny
I think we can expect massive SSD development in the upcoming years
How would it be funny? Your roommate would break it and laugh at you?
user784668
@BartekBanachewicz what for? penis_size += 10;?
Ell
Ell
I have 120gb ssd
for the general performance increases
12:33
@Fanael uh, faster disk access obviously?
Ell
Ell
boot time doesn't matter once you've booted
@BartekBanachewicz Non-average users can have 800GB in RAM.
I have 128GB SSD too.
@Fanael except that the OS doesn't cache everything all the time, because... sometimes (like, say, most of the time), the reason you write to a disk is persistence...
user784668
2 mins ago, by Fanael
You can get 99% of the speed by using an OS that actually does cache.
12:34
@Fanael I have only 8GB RAM, so no, change from Linux to something else wouldn't help
Ell
Ell
you guys. you're being stupid. Just get 800GB of ram and set up a ramdisk... duh!
@BartekBanachewicz Help with what?
to have 800GB of ram you need specialized motherboard
user784668
@jalf But when I download porn, the bottleneck is the network, not the hard disk.
@R.MartinhoFernandes data access speed?
12:35
@Fanael ... what?
@BartekBanachewicz To your entire hard drive at once?
and nice thing about this disk is that it can be mounted in pretty much any normal PC
@R.MartinhoFernandes to all the stuff I need. i.e. I have too little RAM to cache effectively
@Fanael Oh, I get it. You're saying that 99% of your I/O is porn download! Gotcha
<Zoidberg>I wrote my own OS cos Windows was too slow. It has no caching or multithreading and is much faster. Though it doesn't do much yet.</Zoidberg>
Some of us might have slightly different usage patterns, though
12:36
@BartekBanachewicz can't someone just make a SATA to DDR3 connector? :D
@melak47 and how that would help in anything?
@jalf E.g. streaming?
Wait, what happened to Zoidberg? Did he forget to finish developing his life?
user784668
@melak47 not really
12:37
@BartekBanachewicz connect 1TB drive to ram slot
1TB RAM
???
Profit
:p
0
A: HIVE - SUBQUERY IN CASE WHEN STATEMENT

Lightness Races in OrbitASDUFYGASDFUYGASD AIUSGYDFIASF A DFOA8GSDF AS DF ASDFUYGASDF A SDFUKYGASDFA

user142019
@LightnessRacesinOrbit wtf?
no, it's not 1TB ram
well, it is
user784668
@LightnessRacesinOrbit good answer
@rightfold Please clarify your question
12:37
@BartekBanachewicz it is, not 1 TiB though :p
@Fanael Thank you. I feel that I covered all the nuances of the question.
@melak47 anyway, uh, it's so stupid it's not even funny
Look at my OS! Here it is:



It's really fast... unfortunately it doesn't do anything yet
@BartekBanachewicz You said it would "not help", though.
@Doorknob That's pretty impressive
12:39
@LightnessRacesinOrbit ikr
must get around to codesuppository.com!
@R.MartinhoFernandes I doubt it would.
Meh, I will buy more RAM soon
@BartekBanachewicz And in any case, Fanael's point is also that more RAM might help more.
user784668
Here, my OS that's so fucking fast it's not even funny: extern "C" void kernelEntryPoint() { asm volatile("cli; hlt;"); }
and set up an auto ramdisk
@R.MartinhoFernandes it really depends on the usage.
12:40
@LightnessRacesinOrbit lol
@BartekBanachewicz I doubt it does.
@Fanael I think it's funny
Anyone else remember back when Bartek had sensible opinions about stuff?
@R.MartinhoFernandes if you have mostly-read system, 800GB of 2GB/s cache might be better than 100GB of 16GB/s RAM imho
> I am trying to replace &#039; and other such special characters into unicode '. I did rawtxt.encode('utf-8').encode('ascii','ignore')
@BartekBanachewicz IMO they might be worse.
user784668
@R.MartinhoFernandes link.
12:42
it all boils down on how often you have to reach outside the cache
@Fanael How do people come up with crap. "Hey, I know, I'll just throw more encodings at it!"
1
Q: encoding/decoding unicode and utf-8 : Python

user595169I have a html text : If I&#039;m reading lots of articles I am trying to replace &#039; and other such special characters into unicode '. I did rawtxt.encode('utf-8').encode('ascii','ignore') , but it fails Error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2

user784668
@R.MartinhoFernandes at least he knows ' is unicode
Also, the code shown clearly doesn't cause the error shown (notice "encode" vs "decode").
Oh wait, maybe it does.
@R.MartinhoFernandes Whoa.
ew ew ew, too many toes! if you dare
12:45
Python is sort of braindead in this.
TIL of unescape
It isn't in the docs anywhere
Ha.
Yeah, the "decode" error comes from the "encode" call.
lol, Python2.
No, wait, 'ignore' should not cause an error anyway. WTF.
Ah, no.
lol, Python2.
Yeah, Python2 is a bit braindead.
>>> u'foö'.encode('utf-8').encode('ascii', 'ignore')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2: ordinal not in range(128)
>>>
user784668
> byte
12:51
@Rapptz Internal.
Yeah but you can use it still :(
@Fanael What about it?
sounds cool.
user784668
oh wait, ascii
The thing is, the second encode assumes the byte string is in ASCII, so it tries to decode as ASCII before encoding it as requested as ASCII. This decoding fails and the errors are only ignored when encoding. So you get a decode error in your encode call.
OP is stupid for trying this in the first place, but Python's behaviour is silly.
12:57
@R.MartinhoFernandes What?
In Py3 that crap doesn't even compile.
I'm not sure what I meant by that.
@LucDanton Yeah, that's the right reaction.
<- brain broke
ffff foot cramp, I'm sure this is related
In Py3 byte strings don't have encode functions and Unicode strings don't have decode functions.
> I tried unicodeStr.replaceAll("\\","\"), but it can't compile since the "\" is not alowed in string without escapment.
12:58
so stupid it hurts
ARHGEH, why do I keep checking this tag.
So much stupid.
@LucDanton lol
@LightnessRacesinOrbit It's gone :(
user784668
@R.MartinhoFernandes lol wtf
@Fanael Wait. It gets better. That was corrupted by the Markdown rendering and crappy formatting by the OP. The original source had ("\\\\","\")...
@R.MartinhoFernandes Uh, have you tried ru"\"?
though that's dumb anyway
13:06
@Rapptz That one is Java.
oh nvm then
@Rapptz wut
Xeo
Xeo
1
A: Delegating to the default move constructor

Jonathan WakelyWrap the extra work in a new type and inherit from it: class A; struct EW { EW(EW&&); }; class A : private EW { friend class EW; public: A(A&&) = default; }; EW::EW(EW&&) { A* self = static_cast<A*>(this); self->some_extra_work(); } You could also do it with a data member instea...

Cool, Jonathan linked to robot's page
@melak47 Caption was "1 year old baby slammed for interrupting phone call"
@Rapptz ... which I deliberately tried to avoid, thanks a lot.
13:11
grrrahhhhh
I hate it when I make mistakes
You know what'd be cool? Pattern matching with quasiquotations.
@LucDanton the link you mean?
Some people are just plain mean.
Btw, pups, will you have any syntactic sweetness for meta-programming in Wide?
@DeadMG
Spliceable quasiquotations are the awesomest thing around.
Xeo
Xeo
13:13
What?
@Xeo I should dump MSVS and see if I can just remove my redundant constructors
@Xeo `(looks-like ,that)
Xeo
Xeo
And does what?
In boo, [| x + y |] is of type Boo.Lang.Compiler.Ast.BinaryExpression. If you do e = [| x + y |] you can then do [| f($e) |] and you have a Boo.Lang.Compiler.Ast.CallExpression for f(x + y).
AST literals, more or less.
13:17
Apparently nobody mentioned Terra, which has been making the rounds lately I think. Made for a nice introduction to multi-stage programming.
2
Ha, that's Portuguese for "Earth", just in case someone doesn't get it.
and.. a lot of latin-based languages.
@Xeo In the simplest and naivest way I can muster, looks-like would be substituted right before compile-time to whatever it was designed to perform, using the 'contents' of that.
> If the variable snue has the value (bar baz) then `(foo ,snue) evaluates to (foo (bar baz))
@R.MartinhoFernandes Portuguese? I thought it's Latin
dixit Wikipedia
that means I got it wrong I think
13:23
@Abyx It is.
@LucDanton waaaaa
waaa
Wwwwwaaaayyyyy coooool
@Abyx It's Portuguese, because Lua.
Are those your crying sounds?
these are like "dude, whaat"
but in a positive way obviously
hey, this is really nice.
@R.MartinhoFernandes Latin!
13:26
meh, another stillborn language
it's not really "another"
it's a way to host Lua natively easier
porquenolosdos.svg
than with, say, C++
@Rapptz "Lua" is not Latin.
I meant Terra
13:27
terra example(input : int) -- terrable
4
lol
. Furthermore, since Terra is built on the Lua ecosystem, it is easy to embed Terra-Lua programs in other software as a library
that would make Lundi a bit obsolete cc @kbok
I'm starring just for pun.
since you could just link to Terra
I want to try it.
now.
no really, naming a keyword "terra" is just stupid
13:29
> You can use Lua to organize and configure your application, and then call into Terra code when you need controllable performance.
meh
so it exactly replaces C++ as a host.
I wonder how hard it will be to use Terra on embedded devices like tablets and phones
@Xeo I was looking at his tidy_ptr thing
void swap(tidy_ptr& o) noexcept { std::swap(ptr, o.ptr); } he doesn't do ADL there
is that okay? seems weird
hm direct access to C libraries.
@Rapptz Doesn't want to either.
Xeo
Xeo
13:33
Erm, why would he?
(assuming ptr is a pointer)
Xeo
Xeo
He swaps T*
> T* ptr;
ah right
I'm just used to using std::swap anyway
Making it use ADL would make it a customization point.
So it's weird seeing it without that
Xeo
Xeo
13:33
That could have bad effects
if T's namespace has a swap(T*, T*)
And does weird things
cool
@Doorknob That mod grinds my gears
--use it to fill in a table of functions
local mymath = {}
for n = 1,10 do
    mymath["pow"..n] = makePowN(n)
end
print(mymath.pow3(2)) -- 8
that's, uh, that's freaking amazing.
makePowN returns a terra function
Xeo
Xeo
Not like you couldn't do that in other dynamic languages...
@Xeo read one line up.
@Xeo it's more or less, Lua used to create terra template instantiations
13:38
def TransformLet(builder as ReferenceExpression, letStatement as ExpressionStatement, rest as Statement*):
    call = letStatement.Expression as MethodInvocationExpression
    bin = call.Arguments[0] as BinaryExpression
    var = bin.Left as ReferenceExpression
    obj = bin.Right as Expression
    body = Transform(rest)
    return [| ($builder).Bind($obj, { $var | $body }) |]
@Xeo, that's a spliced quasiquotation at the bottom.
Xeo
Xeo
Are all those "as ..." in the body casts?
@Xeo Yes. (that's where I pined for quasiquotation pattern mattching).
If it throws it's a compilation error.
Xeo
Xeo
I see
@Rapptz That's a good reflex, yes.
I forgot what I was doing
Xeo
Xeo
13:42
@R.MartinhoFernandes I wonder, could you really do something like that for a language like C++? Since that would force all implementations to kind of be built the same
wrt parsing and stuff
@Xeo I supposed the grammar kind of forces that in a way.
Though C++'s grammar is fucked up.
Xeo
Xeo
heh
@R.MartinhoFernandes are you thinking about using boo for something real-world and/or practical?
@Xeo But yeah, it kind of gets into implementation territory because that pretty much counts as compiler code. Just written in userland :)
The only annoyance is that boo has too many different meta-programming facilities (it was all explored organically, not designed from the ground up).
There was a post on /r/gamedev saying boo was useless or something similar
13:45
I started this with macros, but realized it won't do and I will need metamethods.
@Rapptz lol
@Rapptz There's probably such a post for any and all languages.
It's used on Unity, AFAIK.
Yeah that's why people were posting
@R.MartinhoFernandes really?
Yes
Why is boo in Unity? (self.gamedev)
submitted 3 days ago by simonhasdaemon
I don't get it. Boo was not popular when its support was announced for Unity, and it still isn't popular today. Why did they bother? I feel like they keep pushing boo by saying "It's just like Python!". Why not use Python instead? It has a much bigger community.
Any thoughts? Are there some people in this subreddit who know of some distinct advantages with using boo?
13:46
our uni project SVN contains ~7000 LoC, yet some genius managed to commit 23K LoC in changes, while having done none of the work ^_^
ooh
@melak47 source-based library?
that happens
@BartekBanachewicz If I get this to work nicely, I will try to push it upstream, i.e. make it into Boo.Lang.Compiler.dll.
So yeah, real-world and practical.
13:47
@BartekBanachewicz nah, he mostly created new projects and copied changes around and shit...
@R.MartinhoFernandes The pattern matching thing?
@LucDanton Nah, do-notation/computation expressions/whatchamacallit
Pattern matching quasiquotations would need some more careful thought.
Oh. Is that why the sample code looks a lot like F#?
And by F# I really mean the rebindable syntax examples of F#.
13:50
Yes, that's exactly it.
@BartekBanachewicz the Cyan guy:
Is a builder like a context for the ongoing notation-thingy?
@LucDanton And pattern matching stuff usually lives in Boo.Lang.PatternMatching.dll, not Boo.Lang.Compiler.dll (yes, pattern matching in boo is complex/powerful enough to warrant a separate module)
PS: the blue one is like...95% GUI crap
@melak47 lol
13:53
Actually... I may still be able to make use of pattern matching even without the 100% cromulent syntax I was envisioning...
@LucDanton Yes.
Xeo
Xeo
@melak47 Best example of why LoC-based reviews suck.
You could say that in Haskell all builders are of empty types.
@Xeo we're not being reviewed by LoC, I just thought it was funny :)
@CatPlusPlus how are you doing on this wonderful day? :)
I don't exactly grokk what is being matched over the let statement but other than that the whole thing reads nicely.
user1182183
does anyone have an NXT block? ; p
@R.MartinhoFernandes What gives the first builder?
Or, where does it come from in the end.
   match letStatement:
        case MethodInvocationExpression(Arguments[0]: BinaryExpression(Left: var = ReferenceExpression(), Right: obj)):
            body = Transform(rest)
            return [| ($builder).Bind($obj, { $var | $body }) |]
Not that bad :)
user1182183
finally my GUI library works as expected ;d
@melak47 Fuck this entire week
user1182183
@CatPlusPlus ;o that bad?
13:59
@LucDanton My syntax is going to be like env builderHere: body

« first day (943 days earlier)      last day (4228 days later) »