These are chat archives for TARDIX/Dev

29th
Apr 2015
bhodgins
@bhodgins
Apr 29 2015 00:25
So
I popped my resume in to the Virtual Reality lab
on campus
They're doing a lot of really nice things there.
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 00:34
the "mixing-in stack" limit is 1Ø24 mixins.. But I don't think a reasonable driver will have 1Ø24 things mixed in
Don't you agree, @bhodgins?
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 00:57
I'm also making mutex locks, @bhodgins
(wut how?)
Jared Allard
@jaredallard
Apr 29 2015 01:24
yo would I coroutine.yeild() if my application was taking to long to yeild?
Screenshot at 18-24-50.png
Jared Allard
@jaredallard
Apr 29 2015 02:01
so, we have DSA.
but it fails randomly.
bhodgins
@bhodgins
Apr 29 2015 02:22
@DemHydraz mix ins shoul dnot be seperate from the class! a mix in is literally per unit copied into a class
otherwise it is inheritance.
Jared Allard
@jaredallard
Apr 29 2015 02:22
bhodgins
@bhodgins
Apr 29 2015 02:22
and mixins are not classes
@RainbowDashDC neat
Jared Allard
@jaredallard
Apr 29 2015 02:24
it randomly fails though and takes ages to sign and verify a sig
bhodgins
@bhodgins
Apr 29 2015 02:24
@RainbowDashDC I think @DemHydraz forgot how mixins work
because they're very critical in how they are implemented
@DemHydraz the funny thing, is that even though nobody will use 1000 mixins on a class, there is no such thing as overusing them
unlike inheritance.
bhodgins
@bhodgins
Apr 29 2015 02:31
ccemu redux has a huge failure
iirc I had to patch it
because it downloads the jar every time, and I had to force it to stop.
my bios.lua replacements, etc wouldn't work otherwise
Jared Allard
@jaredallard
Apr 29 2015 02:34
yea, i just gave it a non existent proxy flag
bhodgins
@bhodgins
Apr 29 2015 02:34
no
what
Jared Allard
@jaredallard
Apr 29 2015 02:34
it then never dls
problem solved
bhodgins
@bhodgins
Apr 29 2015 02:35
when I did that it just failed and wouldn't start
Jared Allard
@jaredallard
Apr 29 2015 02:35
you have to modify version.json
bhodgins
@bhodgins
Apr 29 2015 02:35
which made me so angry
Jared Allard
@jaredallard
Apr 29 2015 02:35
w/ checksums
or just give the checksums null
bhodgins
@bhodgins
Apr 29 2015 02:35
I just patched it with a hack so it didn't download it
XD
commented out that crap
and some other crap
@RainbowDashDC I was thinking of making my own CC emulator
with no graphics
it just simulates the libs
uses STDIO
it'd be useful for fast debugging on non GUI or visual stuff.
I dunno if anyone but me would use it
Jared Allard
@jaredallard
Apr 29 2015 02:39
some guy was doing that in rust
bhodgins
@bhodgins
Apr 29 2015 02:39
lol.
That's interesting
I wonder if it ever worked.
Jared Allard
@jaredallard
Apr 29 2015 02:40
i tried
no build
bhodgins
@bhodgins
Apr 29 2015 02:41
huh
compiling Rust...
Jared Allard
@jaredallard
Apr 29 2015 02:50
so i got sha1 hash support in DSA
and sha256 support.
wait, @bhodgins, if im using DSA do i even need a hash?
bhodgins
@bhodgins
Apr 29 2015 03:00
DSA creates a hash
its just 1024 bits
Jared Allard
@jaredallard
Apr 29 2015 03:08
oh, so combining it with sha256 makes no sense?
bhodgins
@bhodgins
Apr 29 2015 03:08
what are you doing...
Jared Allard
@jaredallard
Apr 29 2015 03:09
not what I'm doing
what the author did
bhodgins
@bhodgins
Apr 29 2015 03:09
lol
I'm pretty sure they are unrelated
Jared Allard
@jaredallard
Apr 29 2015 03:09
alright, well, i'm gonna remove sha256. gen a sig, then see what happens
bhodgins
@bhodgins
Apr 29 2015 03:09
believe it or not, if you mix some hashes
itl make it less secure
Jared Allard
@jaredallard
Apr 29 2015 03:10
I know :P
bhodgins
@bhodgins
Apr 29 2015 03:10
it may be that sha256 is used for the hashing of DSA chunks
but I am unaware of that
Jared Allard
@jaredallard
Apr 29 2015 03:10
idc if it is honestly.
it'll work for sigs
and that's all we have
and we can sign ingame
so, if it is, then we just have the algo changed.
boho DSA not super l33t secure in computercraft
then I proceed to post:
687474703a2f2f6d656469612e74756d626c722e636f6d2f74756d626c725f6c74757a6a766251364c31717a677078392e676966.gif
Jared Allard
@jaredallard
Apr 29 2015 03:26
using no hashing method makes signing always work
Jared Allard
@jaredallard
Apr 29 2015 04:12
however getting a key to actually work in it is hard enough
bhodgins
@bhodgins
Apr 29 2015 12:13
heh.
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 12:44
Hai
bhodgins
@bhodgins
Apr 29 2015 12:46
Hey
No.
Need
to
scroll
that
damn
mind=blown
crap
off my screen
its
bugging me there done.
Jared Allard
@jaredallard
Apr 29 2015 13:25
You know you can collapse it, right? :P
bhodgins
@bhodgins
Apr 29 2015 13:47
or I can scroll it heh
Jared Allard
@jaredallard
Apr 29 2015 13:49
o.o
bhodgins
@bhodgins
Apr 29 2015 13:51
what
don't tell me you recognize those monkeys?
Jared Allard
@jaredallard
Apr 29 2015 13:51
i dont
bhodgins
@bhodgins
Apr 29 2015 13:52
okay
They were from my time :D
It used the SCUMM engine
Jared Allard
@jaredallard
Apr 29 2015 14:43
the author of the DSA implementation and I have been in great contact right now, he's assisting me with getting a key working with it.
bhodgins
@bhodgins
Apr 29 2015 15:15
WHAT
oh not the author of DSA itself
that would be hilarious
Jared Allard
@jaredallard
Apr 29 2015 15:16
I should email the creator of DSA xD
Jared Allard
@jaredallard
Apr 29 2015 15:22
oh boy
this implementation of DSA can use 1024 bit keys
but it takes 2000000000000000 years
10 minutes later it's still testing a pre generated signature
Jared Allard
@jaredallard
Apr 29 2015 16:10
so dsa is looking ify at the moment
Jared Allard
@jaredallard
Apr 29 2015 16:18
w/o keys working it's :(
Jared Allard
@jaredallard
Apr 29 2015 19:55
I got linux running on a 1998 dell machine
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 20:13
I got Linux running on a dead horse
It runs ARM.
@RainbowDashDC
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 20:19
@RainbowDashDC
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 20:44
@RainbowDashDC from build 2015:
Jared Allard
@jaredallard
Apr 29 2015 20:56
:DDD
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 20:56
VS.. under Looneks.
Jared Allard
@jaredallard
Apr 29 2015 20:56
dell dimensions are so amazing
old hardware ftw
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 20:57
It's not the same (I can tell). But AY! It does support freestanding C++ development.
Jared Allard
@jaredallard
Apr 29 2015 20:57
when i see vs running on linux natively, ill support it
or even in a docker
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 20:57
the real VS you mean
Jared Allard
@jaredallard
Apr 29 2015 20:57
then ill believez
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 20:58
because they just ported a subset of it to Looneks
Making a summit libc++
... for linux
Jared Allard
@jaredallard
Apr 29 2015 21:01
when windows fails to install to a perfectly good PC.
KMODE_EXCEPTION_NOT_HANDLED
:(
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 21:02

Me debugging:

IS::Exception thrown unexpectedly!

Jared Allard
@jaredallard
Apr 29 2015 21:03
Windows 8 doesn't support my machine :(
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 21:03
why do you care
you're a member of the masterrace
Jared Allard
@jaredallard
Apr 29 2015 21:04
because no technical previewz
and because it's not my pc
well, it is
but it's for the fam now
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 21:05
IS::Exception thrown unexpectly! is my RT's Java-styled try {<run app>} catch (IS::Exception e) { e->dump(); delete(e); }
@RainbowDashDC with the new kernel design you'll be able to fire real-world-like syscalls
coroutine.fire('kernel', 'syscall', num, params)
Jared Allard
@jaredallard
Apr 29 2015 21:07
:D
can't wait 'till the rewrite
so i can adapt either, cctcp, or libnet to it.
whatever one is still alive :P
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 21:08
That's how the user-space (half kernel-space too!) runtime support library (libcrt (Lib Cathode Ray Tube? Nahh.. Lib Common RunTime)) will work
App calls print, CRT turns it into a syscall signature, and fires it away
Jared Allard
@jaredallard
Apr 29 2015 21:10
Awesome :D
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 21:12
You can still disable CRT, but with that goes memory protection (and unsurprisingly segfaults go away too), dynamic sockets and scheduler locks
(scheduler locks grant that no matter what, the running thread can not be yielded out of. unless you unlock(it). Then it'll all down the toilet)
Jared Allard
@jaredallard
Apr 29 2015 21:17
Oh shit
our meeting is today.
I vote to postpone it 'till tomorrow?
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 21:34
Oh?
It's now
@bhodgins you there?
We are 34 minutes late
yea....... postpone it. @RainbowDashDC we have nothing to discuss
Jared Allard
@jaredallard
Apr 29 2015 21:35
Well, we do, but it can wait 'till tomorrow.
minor things at most
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 21:35
what is it?
I don't have the agenda :<
Jared Allard
@jaredallard
Apr 29 2015 21:41
nor do I :(
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:03
E_E
@RainbowDashDC VS Code? Uses Blink
Jared Allard
@jaredallard
Apr 29 2015 22:04
:(
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:04
Firefox? Still doesn't use blink.. for now
Jared Allard
@jaredallard
Apr 29 2015 22:08
good
bhodgins
@bhodgins
Apr 29 2015 22:16
BVack
So
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:17
Oi.
Guten nacht
bhodgins
@bhodgins
Apr 29 2015 22:17
don't do what I did, not because it's bad, but because it is ridiculous
last day of lab is tomorrow for this semester's worth of C programming class
since I already knew C programming anyways
I waited until today to start em
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:19
you can't keep up
bhodgins
@bhodgins
Apr 29 2015 22:19
no I've got a lot of it done
:D
believe it or not
most of it is on an AVR cpu (with no arduino)
but I know enough about cpu architecture that it's pretty straight forward
got a keypad working today
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:20
@bhodgins what about making that rust-based OS.. dealie ... for ARM (Whatever arch you're working on if it's not ARM)?
bhodgins
@bhodgins
Apr 29 2015 22:20
lol that would be pretty cool
but I gotta get my labs done
then I have math homework
I am using AVR for this class
AVR is the same arch arduino's use
but the AVR chip I'm using is much better.
plus, it's just a breadboard really
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:21
There's no Qemu for that
Unless I'm being an idiot
qemu-system-aarch64 qemu-system-i386 qemu-system-microblazeel qemu-system-mipsel qemu-system-ppc64 qemu-system-sh4eb qemu-system-unicore32
qemu-system-alpha qemu-system-lm32 qemu-system-mips qemu-system-moxie qemu-system-ppcemb qemu-system-sparc qemu-system-x86_64
qemu-system-arm qemu-system-m68k qemu-system-mips64 qemu-system-or32 qemu-system-s390x qemu-system-sparc64 qemu-system-xtensa
qemu-system-cris qemu-system-microblaze qemu-system-mips64el qemu-system-ppc qemu-system-sh4 qemu-system-tricore qemu-system-xtensaeb
bhodgins
@bhodgins
Apr 29 2015 22:24
uploading...
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:24
there's SuperH4
oops
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:25
The Simple 404 Page
bhodgins
@bhodgins
Apr 29 2015 22:25
SNhEh2I
there.
No keypad in this picture, but the keypad goes in the ipper left
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:26
Thinkpad :P
Jared Allard
@jaredallard
Apr 29 2015 22:26
I want a thinkpad
so i can get libreboot
bhodgins
@bhodgins
Apr 29 2015 22:26
AND OSH PARK!
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:26
I'm buying a FSS-blessed thinkpad too
bhodgins
@bhodgins
Apr 29 2015 22:27
know what OSH park is?
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:27
I'm also making a Jquery-like thing for Lua, @RainbowDashDC
nope, @bhodgins
you send your PCB board designs to em
and they fabricate em
if you want to make motherboards, etc...
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:27
I wouldn't know 'bout that
I have my own PCB printing.. association. :tongue:
my father works there. He set up a RPi-controlled PCB.. printer? A printed circuit board printer.
@RainbowDashDC FSF-blessed*
bhodgins
@bhodgins
Apr 29 2015 22:30
PCB engraver?
yeah I wanted to build a PCB engraver at some point
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:31
That works better.
bhodgins
@bhodgins
Apr 29 2015 22:31
it would be simular to a 3D printer.
you know I have a CPU here that I've played with and is really awesome..
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:32
Yea, that's what they're using. Except it's not really 3D-printed. But you send in a schematic, it grabs a board, engraves it, grabs the components, solders them and sends you an email to tell you it's done
bhodgins
@bhodgins
Apr 29 2015 22:33
okay, uploading image
oh so its an engraver + pick n' place
pick and place machines are nice
but I could never build one
See if you know what that is right off the bat.
It DOES work.
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:35
I really dunno :tongue:
bhodgins
@bhodgins
Apr 29 2015 22:36
what.
It's a 6502
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:36
Not really into eletronics :tongue:
bhodgins
@bhodgins
Apr 29 2015 22:37
...
okay, we are going to educate you
here you go:
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:39
There's one of those at home
bhodgins
@bhodgins
Apr 29 2015 22:40
These all use the 6502 family
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:40
Both of those actually. An apple II and the NES
bhodgins
@bhodgins
Apr 29 2015 22:40
that chip was in every one of em
the Apple II had the verbatim 6502
the C64 at the first image had a 6510 (same chip, bug fixes)
and the NES had a Ricoh 6A02 which is the same chip as the 6502, with no decimal.
atari 2600 had the 6502
the one you saw on my desk is a Rockwell 6502P
NMOS
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:43
k history lesson over?
What have I earned?
Why should I care what chip powers the ancient computer that my :cat2: is sleeping on?
bhodgins
@bhodgins
Apr 29 2015 22:46
well
for one, if it werent for that chip
we probably wouldn't be using gitter right now
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:46
:apple:²
bhodgins
@bhodgins
Apr 29 2015 22:46
because the x86 wouldn't have been developed most likely until later
if it werent for the 6502
ARM would not have been the same design most likely
as it would not have been inspired in design to the 6502 in its original implementations
and if it had not been developed
most computing would be absolutely different
because the commodore 64 would not have evolved.
@DemHydraz something neat about the guy who developed the 6502
he was born in the same town I was and graduated in the same university I go do. after all these years, I didn't realize it until a month ago that this was true.
isn't that crazy?
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:49
yes
I'm trying to learn rust
Does it even have ptrs?
It does. They're exactly the same as the C ptrs
bhodgins
@bhodgins
Apr 29 2015 22:51
yes
just keep in mind
everything is immutable by default
I dunno how that effects the pointers
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:52
x: mut &int
&mut int
fn succ(x: int) -> int { x + 1 } @bhodgins that's haskell.. except rust
bhodgins
@bhodgins
Apr 29 2015 22:59
are pointers both pointer immutable and variable immutable by default?
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:59
Yea
bhodgins
@bhodgins
Apr 29 2015 22:59
huh.
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 22:59
all vars are immutable by default
bhodgins
@bhodgins
Apr 29 2015 23:00
immutability is really nice.
if you do it right
it helps speed things up and can sometimes prove memory safety
or help with
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:00
int myInt = 0;
is equal to rust:
let myInt : i32 = 0;
bhodgins
@bhodgins
Apr 29 2015 23:00
@DemHydraz in Tron Paul, everything is immutable.
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:01
unless you do it like this:
let mut myInt : i32 = 0;
bhodgins
@bhodgins
Apr 29 2015 23:01
that doesn't mean you can't use variables, it just means you need to use the rules of functional programming and replace them
there are no variables in tron paul but you can define functions to behave like immutable variables.
yeah
I know that much about rust
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:03
THIS is valid rust:
fn pub myThing() -> i32 {
    let y : i32 = if x == 5 { 10 } else { 15 };
}
bhodgins
@bhodgins
Apr 29 2015 23:03
heh
i32 is so much clearer than int
I like that better
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:04
it's an Integer of 32-size.
bhodgins
@bhodgins
Apr 29 2015 23:04
yes
that's my point
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:04
I know
bhodgins
@bhodgins
Apr 29 2015 23:04
much cleaner and clearer
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:04
but you can typedef int int32 in C
I do that.
bhodgins
@bhodgins
Apr 29 2015 23:04
yes you can
but there's a problem with that
if you use int in C
you can't prove without documentation, checking yourself, or using the sizeof operator that the int is 32 bit.
itr might be 16 bit. it depends on the compiler.
you can however
always assume that a char is 8 and a short is 16
with i32
you are specifically saying you want a 32 bit integer
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:07
did you know you can't return x;in rust?
bhodgins
@bhodgins
Apr 29 2015 23:07
why not?
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:07
because return x will return x, and return x; will return a unit-type.
bhodgins
@bhodgins
Apr 29 2015 23:08
uh
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:08
We expected an integer, but we got (). () is pronounced unit, and is a special type in Rust's type system. In Rust, () is not a valid value for a variable of type i32. It's only a valid value for variables of the type (), which aren't very useful. Remember how we said statements don't return a value? Well, that's the purpose of unit in this case. The semicolon turns any expression into a statement by throwing away its value and returning unit instead.
@bhodgins last-line returns too
bhodgins
@bhodgins
Apr 29 2015 23:08
wut
oh that's good
that's how I do it in Perl and lisp
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:09
fn add_one(x: i32) -> i32 {
    x + 1
}
Wait lisp?!
bhodgins
@bhodgins
Apr 29 2015 23:09
yep.
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:09
The original lisp?
Rust has String-types
bhodgins
@bhodgins
Apr 29 2015 23:10
(defun square (x)
(* x x))
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:10
wow
bhodgins
@bhodgins
Apr 29 2015 23:10
@DemHydraz when the redpower RPC computer was still around
I was working on porting a lisp implementation to it
as an alternative to FORTH
it would be an S-Expression REPL I called "Hard Hat Lisp"
Jared Allard
@jaredallard
Apr 29 2015 23:11
they had C :D
bhodgins
@bhodgins
Apr 29 2015 23:11
Yes I know
I helped Nooga port cc64 to the RPC.
just so you know :P
Jared Allard
@jaredallard
Apr 29 2015 23:12
I even got Unix working on it
bhodgins
@bhodgins
Apr 29 2015 23:12
Last thing I was working on in that were common C libs
for like the sortron
so you could control the sorton with structs
neat eh?
Do you think Project Red will get the RPC going?
because honestly I l;ike it better than the CC computer
Jared Allard
@jaredallard
Apr 29 2015 23:13
project red?
bhodgins
@bhodgins
Apr 29 2015 23:13
(Mostly because it's a 6502 / 65816 hybrid)
project red is the Redpower successor during Redpower's downtime.
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:13
RPC?
Oh, the Redpower comp. That was cool
@RainbowDashDC you got Unix working on a RPC?
Jared Allard
@jaredallard
Apr 29 2015 23:14
yep
bhodgins
@bhodgins
Apr 29 2015 23:14
@RainbowDashDC the cpu was super powerful
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:14
that was so long ago? :tongue:
bhodgins
@bhodgins
Apr 29 2015 23:14
its only downside was a 14Khz cpu clock.
if it were 2 Mhz..
or even 1..
heck I would hgave been happy if it was 200 Khz
but 40 Khz? what are you smoking?
it was devastatingly slow for certain things
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:16
oh.
oy*
let plus_two = |x| {
    let mut result: i32 = x;

    result += 1;
    result += 1;

    result
};
bhodgins
@bhodgins
Apr 29 2015 23:17
are you sure you need the last result there?
can't you just takle the semicolon off the second?
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:18
it could be return result
bhodgins
@bhodgins
Apr 29 2015 23:18
plys that can be += 2 in one line! :P
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:18
Blame the docs!
let plus_one = |x: i32| -> i32 { x + 1 };
bhodgins
@bhodgins
Apr 29 2015 23:18
oh that's their example?
lol!
bhodgins
@bhodgins
Apr 29 2015 23:19
so how does that work
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:19
Closures.
bhodgins
@bhodgins
Apr 29 2015 23:19
whats with |x: i32|
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:19
arg: type
bhodgins
@bhodgins
Apr 29 2015 23:19
right..
so is this a lambda?
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:20
Ish
Yea, actually
bhodgins
@bhodgins
Apr 29 2015 23:20
and why is the i32 after -> required
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:20
return
bhodgins
@bhodgins
Apr 29 2015 23:21
ic.
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:28
@bhodgins the OS will end up part assembly (pls no gnu as.. pls..) part C (pls no gcc.. pls..) part Rust
bhodgins
@bhodgins
Apr 29 2015 23:45
I actually prefer using AS lol
it's a bit more sophisticated than say nasm
@DemHydraz you shouldn't need any C
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:45
but syntax :: weird
bhodgins
@bhodgins
Apr 29 2015 23:46
so?
lol
that's the point
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:46
assembly syntax is always weird
when you take it and make it even weirder
bhodgins
@bhodgins
Apr 29 2015 23:46
LOL
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:46
it's like obfuscating perl
bhodgins
@bhodgins
Apr 29 2015 23:46
what's wrong with obfuscating Perl? That's an easy task
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:46
yea
it's easy
bhodgins
@bhodgins
Apr 29 2015 23:46
here, try to figure this out:
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:46
you just write it
:P
bhodgins
@bhodgins
Apr 29 2015 23:47
sub foo { &{ $[0] }("FOO", @[1 .. $#]) }
sub foo { &{ $_[0] }("_FOO", @_[1 .. $#_]) }
see if you can figure out how that works
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:47
_escape_
bhodgins
@bhodgins
Apr 29 2015 23:47
(DONT EVER DO THIS)
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:48
i don't want to know
bhodgins
@bhodgins
Apr 29 2015 23:48
lol
It's an OOP accessor!
the hard and wrong way
totally abuses Perl
well, not Perl, but it doe abuse the fact that you have a safe namespace.. which in this case.. that sort of negates that
Matheus Magalhães de Alcantara
@demhydraz
Apr 29 2015 23:59
@bhodgins (TARDIX) what do you think 'bout thread-yielding locks?