« first day (1589 days earlier)      last day (3356 days later) » 

user1804599
ugh
 
@R.MartinhoFernandes recursive include? xD
@R.MartinhoFernandes "Fun fact" I tried compiling nonius in VS but using llvm as the compiler and i got a compilation error in a workaround boost has for VS. I kek'ed
 
@R.MartinhoFernandes Fortunately it's right after the include guard so you should be fine, right?
 
@R.MartinhoFernandes lol. While since I've done that:)
 
user1804599
 
user1804599
6:07 PM
ugh global namespace and no std::aligned_storage
 
@райтфолд no i use boost's variant
 
@райтфолд have you seen github.com/mapbox/variant
 
user1804599
No.
 
user1804599
Let's give it a try.
 
user1804599
It works! Thanks!
 
user1804599
6:17 PM
How do I add the license to my project? Just put it at the bottom of my already existing COPYING file?
 
user1804599
nvm, I'll put it in a separate file
 
user1804599
yay
 
6:35 PM
@MartinJames brocolli and asparagus innit
right. I wonder whether I can maintain enthusiasm for this project for enough time to replace SDLJava with something else
would be quite nice to achieve something
 
Hi.
 
user1804599
> test/interpreter.cpp:7:24: warning: zero size arrays are an extension [-Wzero-length-array]
 
user1804599
epic fail
 
so
I need a new model of semantic errors instead of "Throw an exception"
 
6:41 PM
@LightnessRacesinOrbit That's what I thought it was, but I was misled by whatever filter you used to remove the green and by the thought that an aspharagus and brocolli breakfast was an alien entity in the UK.
 
user1804599
@Puppy shut down the computer
 
user1804599
#pragma GCC diagnostic ignored "-Wdeprecated-register" :(
 
hmmmmm
perhaps I can use my new automagic to have some nice error recovery and propagation for free.
 
user1804599
Ok I got rid of the #undef __GNUC__ hack as well.
 
user1804599
Dunno if it's worth it getting rid of the #define union struct#undef union one. Does any compiler give a shit about redefining keywords?
 
6:50 PM
what the fuck did you need that for
 
user1804599
Doing so would probably break existing code anyway.
 
user1804599
@Puppy I use some code generation tool that happens to generate a union but I want it to be a struct instead.
 
user1804599
I could write a custom preprocessor that replaces it in the file, perhaps.
 
sounds like a fairly major semantic difference.
what's the tool?
 
user1804599
Bison.
 
6:51 PM
hm
I dropped Bison
 
user1804599
Hurray, interpretation of no-op instructions works!
 
why would anybody want a nop in a custom virtual machine?
 
user1804599
No idea. Might come in handy one day.
 
user1804599
Perhaps for debuggers.
 
user1804599
A substitute could be move 0 0 but that requires at least one register to exist.
 
6:53 PM
I wonder if I should require a cast to go from signed <--> unsigned of the same bitwidth
 
yes.
 
user1804599
@Borgleader Of course you should.
 
user1804599
The only lossless cast between signed and unsigned is from narrower unsigned to wider signed.
 
also from smaller signed to larger signed
 
thats why i specified same bitwidth
 
user1804599
6:55 PM
@Puppy That's not between signed and unsigned.
 
true
 
int -> float is safe also right?
 
no
 
user1804599
Depends on how large int and float are.
 
well depends on bitwidth
a 32-bit float can handle 23-bit integer, from memory
and a 64bit float can handle 53 bit
 
6:56 PM
hmm
 
or something in that region
 
user1804599
I don't do such conversions automatically at all, not even uint8 to uint16.
 
alright so for consistency's sake ill require a cast when dealing with int <--> float
 
yes, it's totally consistent to randomly require casts in cases that are completely lossless.
 
maybe i should have said for simplicity's sake
 
user1804599
6:58 PM
sub f(x: Long) { } let x: Int = 0; f(x) results in a type error.
 
i was hoping for simple rules
 
this just in: programming not simple
 
'course not, but I'm trying to make sure i dont make it arbitrarily !simple
 
user1804599
May make it long instead of Long.
 
user1804599
Otherwise I can't choose between Ulong and ULong!
 
6:59 PM
requiring casts only in non-lossless situations is not arbitrary
lol long
 
user1804599
I should rename boolean to lung as there are only two of them.
 
sure, but who's gonna remember whether the left lung is true or the right lung is true?
 
oops; flagged a C++ question as duplicate of a C question. can i undo it and flag as duplicate of another C++ question?
 
no.
 
Kinda puppy style
0
A: Memory management in allocating 2-D array

πάντα ῥεῖ "What is the correct way of doing it?" Using standard containers like e.g. std::vector. You don't use new()/new[] and delete/delete[] in 1st place (besides rare valid use cases). If you're sure you have such case, you delete in exactly the reverse order as you were allocating using new[]. ...

Good evening everyone BTW
 
7:05 PM
@πάνταῥεῖ someone downvoted that; i felt bad and upvoted :|
 
user1804599
Speaking of multidimensional arrays.
 
user1804599
Arrays of arrays are a retarded substitute.
 
user1804599
What would a multidimensional array initialiser ideally look like?
 
user1804599
What does it look like in C#?
 
user1804599
7:06 PM
How about I make Array variadic so you can have a type Array(Int, 8, 9, 2)?
 
user1804599
> var array2D = new int[,] { { 1, 2 }, { 3, 4 }, { 5, 6 }, { 7, 8 } };
 
user1804599
ah so that's what it looks like. hmm
 
I'm just so bored about all of these "How do I deal with new correctly" questions. That's not for any goods. And usage is rarely justified
 
user1804599
@πάνταῥεῖ I used to keep a list of Stack Overflow questions that could be trivially solved by just using std::vector.
 
@райтфолд How would one go about making functions? I'm currently thinking of making , return a tuple so I can parse ( tuple ), then send that to the function and extract elements and crap
 
user1804599
7:08 PM
I have no idea what you're talking about. At which stage?
 
"stage"?
 
user1804599
Yes at which stage of compilation?
 
there's only 2; one's label-scraping and one's a giant blob of everything else.
 
@райтфолд That must be a fairly long list :) ...
 
i might add a function-scraping stage too and add it to a list along with where it is so i can jump to it and crap
but the parameter-passing would be in the everything-else stage
ignore everything i said; how are you implementing functions?
 
user1804599
7:12 PM
At which stage?
 
all of them
 
user1804599
I parse them to an AST, then I take the AST and generate code for their preconditions, postconditions and bodies.
 
"making possible the use of"
 
user1804599
Oh calling them? I parse the calls to an AST, then I take the AST and generate code for the calls.
 
does bison generate the AST?
 
user1804599
7:14 PM
No, Bison generates the parser.
 
user1804599
The parser generates the AST.
 
user1804599
The analyser then reads the AST and checks whether all names can be resolved and notes what they resolve to.
 
user1804599
Then the code generator generates bytecode.
 
A uint64_t can hold 584942 years worth of microseconds
 
7:23 PM
screenshot? :C
 
user1804599
nice
 
user1804599
a year
 
@Blob I could give one, but it would be very low resolution (and hard to take at all)
 
it's fine as long as it's readable
 
7:25 PM
Doesn't that boggle your mind, half a millions years in microseconds in 64 bits
 
@Borgleader thanks
 
@райтфолд He certainly deserved it calling mods "Do you masturbate on that, you nazi lowlifer?"
@Borgleader As mentioned :) ... (good job though)
 
user1804599
Anderson is a moron.
 
@Borgleader lol
 
7:30 PM
@Mysticial I'm the one doing screenshots now. Isnt that great? :D
 
Oh.. that Anderson twat. I wondered if any other Loungers would notice it.
 
One year suspension. Nice.
 
@Borgleader How did you take that screenshot. I've got only crappy tools like Snipping Tool at hand, that wouldn't serve to capture the whole contents of a window (or I'm just too dumb using it correctly).
@MartinJames Noticed him the 1st time at this meta post today, but I'm usually out of the android tags.
@Mysticial And so cool he provoked that at least with providing a rant on meta :)
 
@πάνταῥεῖ Screengrab addon for firefox
 
@πάνταῥεῖ He's sure got the sociopathy/paranoia thing just about 100% correct:(
 
7:36 PM
@Borgleader I'm on chrome, do you know any similar?
 
@Mysticial looool
 
@πάνταῥεῖ I dont have one for chrome, but im sure you could find one
i just havent bothered to look
 
@Borgleader Sure, I'll look it up, THX. Sounds being a lot useful here.
@Borgleader Found it:
 
[root@lolphin:~/cvs2svn-2.4.0] $ for i in cakeday cakeday_meta cakeday_pre-0-6 cakeday_prototype keramp lc montager barncastle; do ./cvs2svn -s /home/svn/ --trunk=$i/trunk --branches=$i/branches --tags=$i/tags --fallback-encoding=utf8 --existing-svnrepos /home/cvs/$i; done
took ages to figure that out
it's about time I saved my antiquated personal projects and VCS
 
7:52 PM
@LightnessRacesinOrbit CVS, that's literally decades ago, I've been using it :)
Git or mercurial is an option for you?
 
user1804599
hi
 
> The console was originally sold as the Atari VCS
 
@райтфолд lo
 
you wrote code for the Atari?
 
user1804599
I have such a wonderful idea.
 
7:55 PM
@райтфолд It sounds like you're leaving out a lot of steps.
 
user1804599
Such as?
 
For example, you don't mention types at all.
And semantic checks like "Am I allowed to read from this variable yet?"
int x;
int y = x;   // won't compile inside a Java method
 
@FredOverflow that's not a problem in my language ;)
all undefined variables are initialized to 42.
 
user1804599
@FredOverflow They are checked at runtime.
 
user1804599
@FredOverflow You cannot create variables without initialising them.
 
7:58 PM
Are we discussing your language, Blob's language, or languages in general?
 
user1804599
let x; is a syntax error.
 
@FredOverflow pantoona's language. i was asking how pantoona did it.
 
user1804599
Mine and only mine.
 
@райтфолд let x; doesn't mean much at all :P ..
 
@Blob Why are you still calling him pantoona?
 
user1804599
7:59 PM
You can't even do let mutable x;.
 
He/She is rightfold.
 
@FredOverflow because i don't want to ping and "rightfold" is meh
 
@Nooble They're leftfold most of the time, but it doesn't really matter
 
user1804599
eww tuna
 
user1804599
8:01 PM
Oh now I can almost buy a polished silver sword and defeat the troll on the bridge.
 
@FredOverflow Yummy dolphin probably ;)
 
Tuna comes from tuna, not dolphin.
 
@FredOverflow It seems to be mixed up in cans often though :P
 
@райтфолд Is that also part of your programming language project?
 
user1804599
This is how I allocate registers! auto registers = static_cast<Register*>(alloca(callee.registerCount));
 
user1804599
8:03 PM
@FredOverflow No!
 
Does C++ support alloca?
 
user1804599
No, it's not part of any standard for as far as I am aware.
 
user1804599
But it's fairly portable.
 
user1804599
It's usually a macro that expands to a call to a built-in function.
 
user1804599
fuck, forgot to equip the sword and now the troll killed me
 
8:07 PM
Daily Vlad surveillance: SNAFU!
seen 2 days ago
 
why are you guys so obsessed by moscovians
@FredOverflow mmm
 
user1804599
sehe bison works great
 
user1804599
I even managed to get the parser compiling without warnings!
 
> My question was well writtent
awesome
@райтфолд But with UB!
 
user1804599
No, without UB.
 
user1804599
8:15 PM
I just disabled the warnings using #pragma GCC diagnostic ignore. :P
 
@sehe Yes. They were probably missing/ignoring anything that was ever mentioned or told to them :P
Just felt undergoing a Nazi hunting about them.
 
user1804599
I wonder if there were more production if a second were shorter.
 
@πάνταῥεῖ no
@Borgleader ;p
yesterday, by Lightness Races in Orbit
7 hours ago, by Lightness Races in Orbit
Ooh, Vlad was online 9 hours ago. No posts, though.
 
@LightnessRacesinOrbit SVN is fine anyway (for me in most cases)
 
user1804599
8:18 PM
Yes but that's irrelevant to the warnings.
 
user1804599
Not doing it would result in an error.
 
@райтфолд It's not irrelevant to your hack. UB is UB
 
@LightnessRacesinOrbit I said daily surveillance, but may be we can go for a more relaxed mode now.
 
@πάνταῥεῖ ok
@πάνταῥεῖ SVN ftw
I had a bit of a mess whereby some projects were hosted under CVS remotely (on my server) and others were hosted under CVS locally (on my PC) .. where I haven't even had a CVS server running for at least five years. Now I'm migrating all of them to one SVN repository on the remote server.
 
@LightnessRacesinOrbit We're using SVN at work. As mentioned it's just fine (at least with an internal network infrastructure)
 
8:22 PM
@πάνταῥεῖ SVN at work too
 
The fuck is this?
 
idk
 
Do you guys have that too?
I reset FF and it was there.
 
@Rapptz nope
 
8:25 PM
@LightnessRacesinOrbit Since of the very restrictive rules of our IT infrastructure admins, we've seen some cases where it didn't work that well with external free lancers that should have access to these repositories. But it's more an administration problem in the end.
 
"No VPN" Nazis.
 
can you do 'using namespace xxx' within a class scope?
 
@Rapptz cough. p0wned by a plugin?
 
@sehe Nope. See the link above.
 
8:29 PM
They have a new manager now, and he's even seeming to be moving to more restrictive security rules. Also for our internal development network infrastructure (which is actually run by the R&D department so far).
Well, we're working with multicasting video applications and such, I'm actually expecting big fails :)
 
@Pris yes, but not at class scope
 
user1804599
uuuuuuuuuuuuuuuuuuuuuuu
 
user1804599
guys guys guys
 
user1804599
I had a wonderful idea.
 
what?
 
> 2003 - A drunken Martin Odersky sees a Reese's Peanut Butter Cup ad featuring somebody's peanut butter getting on somebody else's chocolate and has an idea. He creates Scala, a language that unifies constructs from both object oriented and functional languages. This pisses off both groups and each promptly declares jihad.
LOL
 
user1804599
omg odersky
 
user1804599
he is hero
 
That's where Scala came from actually? Peanut butter? LOL
 
> somebody's peanut butter getting on someone else's chocolate
thought that was euphemism for sex
@πάνταῥεῖ it's a joke
 
user1804599
8:37 PM
Scala is good.
 
@Blob Scala is as well IMHO ;) ...
 
> 1940s - Various "computers" are "programmed" using direct wiring and switches. Engineers do this in order to avoid the tabs vs spaces debate.
 
what kind of timer accuracy do most modern OSs have? is it sub millisecond?
 
user1804599
My child is a failure. How do I deal with remorse?
 
@райтфолд We probably don't need more programming languages, but just better programmers o_O
 
8:39 PM
@πάνταῥεῖ like mine?
 
user1804599
elihw :(
 
@Blob I didn't judge your programming language in particular
 
@πάνταῥεῖ do it now.. is it good? C:
 
@Blob If you're going to copy lua, at least use done.
 
8:40 PM
> 1972 - Dennis Ritchie invents a powerful gun that shoots both forward and backward simultaneously. Not satisfied with the number of deaths and permanent maimings from that invention he invents C and Unix.
 
@πάνταῥεῖ gosh...
 
aahahahah
 
Teach him to fish for answers on SO and you have a lifetime supply of rep!
 
user1804599
> His lambda calculus is ignored because it is insufficiently C-like.
 
user1804599
lol
 
8:41 PM
@Rapptz not copying lua; i'm copying c++, bash, assembly (i have jumps and flags that are set by comparisons and ret's and crap), and python. it's just a coincidence that lua copies from mostly the same sources.
 
@Blob Would take some time, I didn't have a serious look at it. But even without I'm pretty sure I'll don't need it (sorry)
 
@Blob lol
 
@sehe Good point!
 
@Pris it's about the latency of a trip to WP
> i'm copying c++, bash, assembly
crap indeed
 
user1804599
I should implement the AST types and make the parser generate the AST.
 
8:44 PM
Gosh. You copied MSVC?
 
> 1991 - Dutch programmer Guido van Rossum travels to Argentina for a mysterious operation. He returns with a large cranial scar, invents Python, is declared Dictator for Life by legions of followers, and announces to the world that "There Is Only One Way to Do It." Poland becomes nervous.
 
@sehe i have the clarity of assembly and the performance of bash.
 
Dutch? I thought he's Belgian
@Blob At least you won't have a debugger
 
@sehe my "debugging" is printing out things in the lexer and parser code
 
user1804599
> At a neighborhood Italian restaurant Rasmus Lerdorf realizes that his plate of spaghetti is an excellent model for understanding the World Wide Web and that web applications should mimic their medium.
 
8:45 PM
@Jefffrey does it have anything in there about bjarne
 
Installed another nvidia blob for CUDA support. Rebooting, wish me luck
 
> 1983 - Bjarne Stroustrup bolts everything he's ever heard of onto C to create C++. The resulting language is so complex that programs must be sent to the future to be compiled by the Skynet artificial intelligence. Build times suffer. Skynet's motives for performing the service remain unclear but spokespeople from the future say "there is nothing to be concerned about, baby," in an Austrian accented monotones.
There is some speculation that Skynet is nothing more than a pretentious buffer overrun.
 
someone should rename the lounge message thing to "1983 - Bjarne Stroustrup bolts everything he's ever heard of onto C to create C++"
 
This blog post is so old
 
user1804599
Maybe I should stop writing a VM and just embed Mono instead.
 
8:47 PM
It's been posted like 10 times.
 
user1804599
Or a JVM.
 
oh noe, 10 whole times?
 
Definitely more.
Aug 5 '12 at 14:32, by FredOverflow
Brief, Incomplete and Mostly Wrong History of Programming Languages <- It's been some time since it was lasted linked to here :)
 
user1804599
nvm mono and jvm don't support proper coroutines
 
What's it worth creating yet another VM, since we have LLVM up and working?
 
user1804599
8:51 PM
LLVM isn't a VM.
 
Well it yould be named YAVM nicely (that's not a convincing argument though)
 
user1804599
It's a machine code generation library.
 
@райтфолд It's a whatever byte code you want generating library.
 
user1804599
You still need to implement an object model and a garbage collector.
 
user1804599
The only thing that's different is that you use LLVM instead of a custom interpreter.
 
8:52 PM
@райтфолд "garbage collector" meh!
So called Garbage collectors don't make anything easier IMHO. They're just obfuscating serious programming and design flaws IMHO
 
user1804599
lol
 

« first day (1589 days earlier)      last day (3356 days later) »