« first day (1486 days earlier)      last day (3464 days later) » 

5:01 PM
I spent hours reinstalling Rust to update it (builds LLVM) and there was an error and the whole thing pretty much broke
 
Can't you just install Rust binaries? Why compile yourself?
 
lol, answer went from -4 to +3 + accepted
 
user457812
The perspective on that sign is screwing with me.
 
When I installed the rust binaries rustc -v was the same as the previous version
 
user457812
Are you sure the binaries are in the same place?
 
5:14 PM
No.
 
user1804599
@FredOverflow Why?
 
user1804599
@TonyTheLion Jesus also got nailed. Therefore you offend me and you are a racist.
 
user1804599
This immediately gives me privileges, e.g. I get free money from the taxes you pay.
 
Ell
javap -s ExampleClass works
 
fuck it
I'm goin home.
 
Ell
5:26 PM
javap -classpath ".;" -s ExampleClass doesn't :O
whyy
 
user1804599
What OS are you on?
 
Ell
linux
 
user1804599
Use : instead of ;.
 
Ell
ahh
thank you :)
 
user1804599
5:27 PM
Also just -cp . is enough.
 
user1804599
: is separator, not terminator.
 
Ell
@rightføld yah, I'm adding /usr/share/java/scala-library.jar as well
 
user1804599
ok
 
@StackedCrooked BDSM: The Anime: The Movie: The TV?
 
user1804599
BDSM is nice.
 
5:28 PM
something like that I guess
 
user1804599
/me spanks Alex
 
I don't like bdsm :(
 
user1804599
That only makes it more fun.
 
I only like softer stuff
 
Ell
ah wait. I want javah anyway
 
5:30 PM
@rightføld I don't know, it seems we haven't geeked out in a while ;)
 
Xeo
@AlexM. Neither!
Boris is cool.
 
user1804599
@FredOverflow OIC.
 
user1804599
@Xeo Boris is a PHP REPL. Of course it's not cool.
 
rightfold should combine clojure and php in one language
lisphp
 
user1804599
been there done that wasn't fun
 
5:33 PM
@Xeo who's boris?
 
user1804599
Generating PHP code is not fun.
 
Xeo
@AlexM. The guy with the mask in the picture.
 
user1804599
(function(){})(), for example, is a syntax error.
 
user1804599
Have to account for all that kind of bullshit.
 
user1804599
You cannot do $foo[0]() because it's a syntax error.
 
user1804599
5:34 PM
PHP is cancer.
 
Ell
Hmm getting ninja to work with classes instead of classfiles will require some kind of trick
 
user1804599
You cannot even subscript an array literal directly.
 
I cannot even.
 
user1804599
5:38 PM
Maybe I can generate PHP byte code instead.
 
do they have an official description of their byte code
 
user1804599
No idea. Just asked in PHP room.
 
does it make sense to have byte code with a register based interpreter?
or do only interpreters exist that use stacks when evaluating expressions?
when it is register based, I imagine the interpreter loop could use the register index to directly address local variables in the loop frame. better than having to pop and push the stack it seems
 
user1804599
@JohannesSchaub-litb Of course.
 
user1804599
Styx byte code is register-based.
 
Ell
5:41 PM
sed and grep and all these tools are a pain sometime :£
 
user1804599
Because it's not any more difficult to generate but easier to translate into Lua.
 
@Ell but sometimes they are cool
 
P sure most production VMs are registerised these days
 
user1804599
Java bytecode is stack-based.
 
user1804599
As is CIL.
 
user1804599
5:41 PM
And CPython's bytecode.
 
@JohannesSchaub-litb .NET has registers
 
user1804599
Though HotSpot and .NET probably JIT-compile them to code that doesn't use evaluation stack.
 
@FredOverflow ah i see
 
but i imagine jit-compiling register based byte code is more efficient
 
5:43 PM
I think stack model of bytecode gives you more leeway in how to implement it
 
I don't think it makes a difference with today's compiler technology.
 
Wow they documented internals
BEGIN_SILENCE
 
user1804599
:P
 
> convert value1 to boolean and store in result??????????
 
user1804599
5:46 PM
> * casts value1 as type value2 (?? Not certain about arguments ??)
 
lol
it seems to be register based aswell?
or what does ~0 mean
and $3
 
> add string value2 to string value2 and store in result
 
@rightføld what is that styx thing? can't find it with google
 
user1804599
lol
 
user1804599
Nov 6 at 20:43, by exitc0de
I cant find wide
 
5:50 PM
ah i see. it's your thing
@rightføld what's the best thing when designing the register set? since it is a virtual machine, I would imagine you could just go ahead and say you give it 255 registers
or even more.. it doesn't cost any hardware
 
Yeah but what for
 
255 general purpose registers
 
user1804599
The maximum amount of registers you can have per stack frame is 4294967295.
 
The only advantage of using registers in a VM I can think of is mapping them 1:1 to hardware ones
 
user1804599
Well actually
 
5:56 PM
@CatPlusPlus and you don't need to adjust the stack pointer, which you need when using a stack
 
user1804599
I think it's more like SSA than register-based.
 
user1804599
You can just say how many values you want to store and you can only assign them once.
 
user1804599
Well you can reassign but I don't generate such code.
 
@JohannesSchaub-litb Oh my what an advantage
@rightføld lol
 
@CatPlusPlus well, one advantage. it may sum up
@rightføld have fun with implementing the phi function xD
 
user1804599
5:58 PM
That's not very difficult.
 
you know from what block you come from and can insert copy instructions to fill the merge variable. but then you have two defining instructions for it and it's not SSA anymore xD
 
> How secure is this encryption by the way?
>
> Your identify password (in the user attribute in the example above) is not encrypted, but MD5-hashed (with five bytes of salt, so not vulnerable to rainbow tables). All IM passwords (in the account attributes) are first padded with random data to make it harder to guess password length, and then encrypted using RC4 with your identify-password as the key with salt and some other measures to make it sufficiently secure.
lol
 
user1804599
@JohannesSchaub-litb I currently compile conditional expressions to two lambdas and a call to a built-in function. XD
 
user1804599
Was easier to implement.
 
6:11 PM
Urgh why does Quassel have to be so underfeatured
 
one more question..
 
> But of course, we do trust the server owners to handle the passwords with care. After all, what's the use of stealing someone else's chat passwords ... to chat with people you don't know anyway?
These people are really good at security
 
@rightføld Than using a Phi?
 
user1804599
Yes, because I already had lambdas and calls implemented.
 
is it better to do type inference on a high three address code CFG that you later also use for optimizations or on a source level CFG that you afterwards abandon because you only use it for type inference?
 
6:13 PM
phis are easy
 
user1804599
I know, but this was easier. :P
 
user1804599
Will Optimise Later™
 
I was rather talking about the SSA phi functions. not about high level language features like conditional expressions and lambda functions
 
oh
you'll probably need phis for EH
 
user1804599
Nah, can just construct a bunch of lambdas and pass them to a built-in function as well. :P
 
6:15 PM
lol
 
Ell
I need to get a public class name from a class file
 
filename
 
It's the same as filename hth
 
Ell
oh yeah
I'm dum
 
user1804599
You can also use a class loader to load it and then ask the result for the name.
 
6:17 PM
for example, in C:\dev\whyjavapleasekillmenow.java, the main class will be whyjavapleasekillmenow
 
user1804599
But it will execute static initialiser.
 
"Dum may refer to: [...] an Arabic common name for Ziziphus zizyphus (Jujube), a plant" - wikipedia
 
hmm
I appear to be rather hungry.
 
user1804599
@Puppy That is a source file, not a class file.
 
I was on the Qt developer days in berlin in oktober
 
user1804599
6:20 PM
Correct, but irrelevant.
 
you'll be too dead to care
 
user1804599
litb y u no C++ quiz
 
lulz
quiz!
int main() { return 5*1˗1; }
what is returned!?
 
user1804599
Syntax error.
 
user1804599
6:25 PM
˗ vs -
 
Ell
does anyone here use ninja as their build engine/
 
user1804599
We use it for one project for building LESS and LiveScript.
 
Ell
gahhh
fucking hell I wish I was clever
I'm such an idiot
2
I burned my pizza
 
@Ell There’s something like three of us.
 
6:29 PM
What a quandary.
 
Ell
@LucDanton Do you know if there is a way to do command substitution?
 
Define command substitution
 
Ell
Like command = javah -classpath "obj:$scala_library" -o $out (basename $in .class)
where (basename $in .class) will be substituted
by the result of running basename $in .class
 
use backticks
 
Don’t think I’ve tried it, what happens if you attempt the usual stuff?
 
6:33 PM
oh, in Ninja?
 
@Ell Probably not
 
that shit is not supposed to be written by humans, you know.
 
Add class name variable to your rules
 
Ell
Ah wait. puppy was right
backticks work
I'm used to (), my bad
 
Using basename is not portable
Also it's $() not ()
 
Ell
6:34 PM
it's () in fish
which is what I use
 
lolsh
 
I thought you were talking about Bash, lol
 
Ell
@Puppy bash does use backticks
probably why it worked
 
Still should not rely on an additional tool, you should just generate proper variables
 
Ell
How would I do that?
 
6:39 PM
rule whatever
    command = javah -classpath "obj:$scala_library" -o $out $class_name

build foo.java: whatever foo.class
    class_name = foo
 
@Ell It’s a sh-ism.
 
Ell
@CatPlusPlus oh awesome. I didn't know you could do this
 
what does it mean for a language to be closed under union and kleene?
 
I got my girlfriend new'd, it's awesome
 
@corvid I assume, that for any phrases A and B of L it holds that A* is of L and A|B is also of L?
 
6:50 PM
I see, that makes sense
 
Ell
@Columbo wut
 
my girlfriend is an abstract class T_T
 
I'm just kidding, I don't have one
I said that for the sake of the pun
 
language keyword puns are pretty awful
 
hmm... Java RMi is well defined right... so I should be able to connect to a Java RMI server and call functions from any language (read from Rust) right?
 
6:52 PM
Which, apparently, didn't find an echo
 
nearly as bad as "X is a faggot" non-jokes.
 
hey
 
@Puppy Just realized that.
@Puppy What do you mean?
 
Ell
OP is faggot
 
Calling someone a faggot is not a joke, it's a postulation.
 
6:53 PM
inb4 flag + removal
 
I think I'm just gonna start kicking people for that
 
<3
 
@Jefffrey <3 Wanna be my girlfriend?
 
Ell
I was only quoting an instance of said joke
 
@CatPlusPlus For what? Link your message properly, mmkay?
 
6:54 PM
@Columbo ask rightfold
 
Oh, wait, I'm married
Forget it, sorry
 
@VáclavZeman faggot non-jokes.
 
user1804599
But you have to use serialised Java objects for communication.
 
 
user1804599
6:54 PM
Which may not be easy in Rust.
 
<$
 
<%
 
@Columbo We are telling your wife you forgot you were married! :)
 
we can stop now
 
user1804599
<?php
 
6:55 PM
yay, my pizza is here
 
@VáclavZeman PS: I'm not actually married. That was part of my Columbo role play.
 
@rightføld mmm... as long as I know how to read the data types...
 
@Columbo Ah... Well, the text does not convey the play as well as the picture. :)
 
user1804599
 
@VáclavZeman Absolutely correct.
 
user1804599
6:56 PM
I think you're better off using JNI.
 
nope
false alarm
no pizza
 
Henceforth I'll be sticking to my true identity.
 
@rightføld maybe...
 
user1804599
Or if you embed Rust in Java instead of the other way around, JNA.
 
user1804599
JNA > JNI.
 
Xeo
6:57 PM
Fuck fuck fuck.
 
Me me me.
 
Xeo
Anybody got a credit card they can lend me?
3
 
wat
 
Though isn't JNI more about Java calling native code?
 
user1804599
Can go both ways.
 
6:57 PM
JNA?
 
user1804599
You can call Java from C and C from Java with JNI.
 
user1804599
You can also start JVM using JNI.
 
@Xeo Let's say that you lend me the money and I'll buy you what you want with my credit card.
 
user1804599
@thecoshman Yes, JNA.
 
6:58 PM
Deal?
 
Xeo
My credit card hasn't arrived yet. I needz it :<
 
@Xeo You have ~2 months to make that donation
 
Xeo
@Jefffrey Not for the early-backer thing
i.e. $40 instead of $50 for the physical edition
 
Can't you ask friends?
 
@rightføld you got a good link? Google isn't offering a clear starting point.
 
user1804599
7:01 PM
 
I really can't see how one "lends" you a credit card without possibly compromising his/her finances.
 
Xeo
@Jefffrey It was obviously meant as a joke.
 
Oh.
 
Xeo
I know that people won't just lend me their credit card
Well, I can hope.
 
Now I feel stupid.
Ok, let's move on.
 
7:03 PM
@Xeo Oh god you need to save this fortune
 
@Xeo worth a shot :P
 
Xeo
@CatPlusPlus Obviously! Also, early-backer status :<
@CatPlusPlus Also, it's +$10 for the shipping to Germany :/
 
Ask a physical friend.
 
simple
you make him wire the money first.
 
user1804599
7:05 PM
AKKK
 
@rightføld oh yeah, JNA looks nice.
you actually played with JNA/JNI stuff yourself @rightføld?
 
user1804599
Yes.
 
user1804599
I used LLVM through JNA.
 
noob question, is JNA just a nicer/easier to use 'version' of JNI, or does it actually do slightly different things?
 
user1804599
You don't have to adapt your C API.
 
user1804599
7:10 PM
Or write any C code at all.
 
user1804599
You can do everything from Java, Scala, Clojure, etc.
 
Ell
JNA is like ctypes isn't it?
 
user1804599
Yes.
 
ok, well the thing I have in mind; there be a Java library that deals with the DB, part of what it does, is call this 'automation' library (it does extra steps some times, such as updating references, adding extra data objects). So... I'd like to look at playing with a Rust replacement for that...
 
user1804599
@thecoshman just translate this to Rust github.com/rightfold/styx/blob/master/src/main.cpp
 
user1804599
7:16 PM
:P
 
lol "// TODO: Use RAII instead."
5
 
@CatPlusPlus are you a fan of FOaaS?
 
buh, how do teachers grade "creativity"?
 
A what
 
@CatPlusPlus Fuck Off as a Service
 
user1804599
7:18 PM
@thecoshman alternatively exposing HTTP REST API is probably easier than RMI.
 
Oh that very funny thing no I don't really care for it
 
@rightføld I'd rather be able to use the java lib... the RMI is not that great an interface anyway.
for instance, gives you not transaction control
 
user1804599
Developer who inherited 5-year-old Rails codebase secretly hoping for company collapse
 
user1804599
Cat.
 
top kek
 
user1804599
7:24 PM
> crack_user has joined
 
user1804599
dat username
 
hi
 
user1804599
HI RAPPTZYPAPPTZY
 
dear God, it's Zoidberg on crack
 
Crackburg
 
7:26 PM
crackfold
 
@Puppy did you fart?
 
lol bitlbee-libpurple pulls in half of GTK
Debian dependencies will never cease to amaze me gist.github.com/TheCatPlusPlus/527b905dd47bf24f1e4d
 
user1804599
Colleague said "I need your opinion." I said "I like cycling."
 
@rightføld lol
 
You should have said "Don't you know my opinions are generally invalid"
 
7:27 PM
You should have said, "You only need one of my opinions today? You're getting slow."
 
> libdrm-radeon1
 
> Hipchat is a chat service by Atlassian that provides an XMPP server. It's the choice of many businesses, as it supports mission critical features like pasting images and having them show up inline in the chat, and silly meme-like things that happen if you type things like "(awwyeah)".
 
@rightføld that example you linked is starting up your own jvm, presumably a small bit of java code, and calling it from your C++, right?
 
@rightføld you do?
 
We've tried hipchat before
 
user1804599
7:28 PM
@StackedCrooked Of course I do.
 
it was shit, IIRC
 
user1804599
Cycling is great.
 
user1804599
@thecoshman Yes.
 
@CatPlusPlus Where's that from?
 
BitlBee docs :v
It's true though
 
7:28 PM
I suppose it's fun if you have a good bike. I always had bad bikes.
 
int main(int argc, const char * argv[]) {

#include "Use_RNG.h"
#include "Read_Columnar_File.h"
#include <fstream>
#include <iostream>
LOL
 
user1804599
@thecoshman I decided to get rid of Lua VM and use JVM instead for Styx.
 
It’s okay, one of the includes closes with }.
 
so if I wanted to use that in Rust, I'd need to port that jni C++ lib...
 
user1804599
7:30 PM
There's also a C API which is very similar.
 
user1804599
Not sure if you can import C headers in Rust.
 
ERROR :Warning: BitlBee is running with root privileges. Why?
 
ah, so I should be able to just hook into that directly from Rust
 
Ok. Tell Richard Stallman that @Mr. kbok. — Gene 25 mins ago
 
user1804599
If not then you have to write bindings or generate them.
 
user1804599
7:31 PM
@Mr.kbok ask why
 
@Puppy very scoped
 
you need the bindings I think...
 
TIL that Scott Meyers didn't make up the word "transmogrify"
 
> First Known Use: 1656
wow
 
But I think I'd also have to write a small java program that can just sit in the JVM with a load of functions waiting for my Rust code to call...
 
7:32 PM
I'd have sworn it was something like fubar
 
user1804599
@thecoshman Why?
 
user1804599
You can manipulate Java objects using JNI.
 
@rightføld I did it, just for you.
 
@rightføld there's an existing DB access layer...
 
user1804599
You can call its methods using JNI.
 
7:34 PM
yeah, that's what I mean, I'd have to have that loaded into this JVM
 
user1804599
Just configure the classpath and use FindClass.
 
user1804599
Oh that was on TV recently.
 
High speed and metal implements, what could go wrong.
 
@JohanLarsson oh the Dutch
 
user1804599
 
user1804599
If only watermelon weren't so disgusting.
 
watermelon is nice
I should stab one with a bottle vodka one day...
 
on ubuntu, how can I run additional commands when my terminal starts up?
 
what do you mean?
 
Ell
@corvid your shell or your terminal?
 
7:41 PM
like... always cd to a particular folder?
you're probably wanting to update you .bashrc file
 
So I want it so after the initial commands are run, it also does source ~/.bash_profile
oh. Der. I'll do that thecoshman
 
Ell
shell then
 
my $GIT_ROOT is broken :\
 
Xeo
Well well well - Clannad Kickstarter is at 27% already - after just under an hour. /cc @StackedCrooked @AlexM. @ScarletAmaranth
I hope you guys pledged already :P
 
l o l
Clannad needs a kickstarter to get english translations?
 
Xeo
7:54 PM
oh yeah. you too.
 
That's rich
I'll pass
 
Xeo
official english translation
 
I'm sure they have enough money to fund this
 
@Xeo the $7000 bonus seems nice
 
Xeo
@StackedCrooked I'm sure somebody is gonna jump at that soonish
the $1k ones are already gone
@Rapptz Dunno, makes sense for me to go the Kickstarter route with these things.
 
7:58 PM
lol
so they can have a no risk no loss project?
it's silly
they can fund this themselves but they'd rather just have other people give them more capital to do this
 
Ell
@Rapptz wouldn't you? :P
a) Some money,
b) More money
 
I just think it's an abuse of the system.
Then again, ShitStarter has been abused a lot so I care less these days.
 

« first day (1486 days earlier)      last day (3464 days later) »