These are chat archives for TARDIX/Dev

15th
Jun 2015
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:00
I'm working on a userspace indexing library
for thins like locate(1)
bhodgins
@bhodgins
Jun 15 2015 00:02
yeah Maine Civic Hack Day is a community service event where you work on projects that generally benefit the community some way for like 30 hours straight
take off the Maine part and it's actually a nation wide event
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:06
libindex will get things such as files, packages,
threads
@bhodgins anything else to be indexed?
maybe kmesg?
bhodgins
@bhodgins
Jun 15 2015 00:13
so whats new with TARDIX?
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:14
it's.. done
bhodgins
@bhodgins
Jun 15 2015 00:14
wat
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:14
there is everything you can think of
bhodgins
@bhodgins
Jun 15 2015 00:14
uh
a fork() while fork() ?
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:15
while true do run.spawn(_FILE) end
bhodgins
@bhodgins
Jun 15 2015 00:15
lol.
you showed me that before.
so does this mean its time for the OC port?
:P
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:16
yes.
bhodgins
@bhodgins
Jun 15 2015 00:16
how did that bus api come out or whatever>
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:16
let's make poor Matt rewrite the whole of TARDIX because no get/setfenv. /s
bhodgins
@bhodgins
Jun 15 2015 00:16
for generalizing devices accross multiple arches
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:16
@bhodgins It's awesome
bhodgins
@bhodgins
Jun 15 2015 00:16
oh?
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:16
hm there's a thing I don't have
virtual files for devices
but that would involve a driver for every peripheral
@bhodgins
bhodgins
@bhodgins
Jun 15 2015 00:17
oh crap!
we never did kobjects!
is that what you're saying?
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:17
I mean fs.addVirtual but yes
bhodgins
@bhodgins
Jun 15 2015 00:18
I'm okay with a refined driver for every peripheral, it is possible to have a generic peripheral driver or something so that people can always interface the hard way
if that makes sense
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:18
bhodgins
@bhodgins
Jun 15 2015 00:18
yeah
the peripheral drivers would basically add an optimized aPI and kobject sysfs stuff
but you'd still be able to access peripherals exasctly how yuou are above
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:19
there's a thing I didn't think of
@bhodgins this: is also valid
bhodgins
@bhodgins
Jun 15 2015 00:22
good
yeah, so if we provide a heckton of peripheral drivers, and promote the use of them over the raw API for software, then it should become quite useful and non obtrusive yes?
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:22
Yes.
I also think the peripheral drivers should expose a virtual
bhodgins
@bhodgins
Jun 15 2015 00:23
obviously we keep the raw API
or the raw ways of doing it*
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:23
a virtual file*
because then you can do echo -O /sys/dev/printer hello world! && ioctl /sys/dev/printer 0xf1
bhodgins
@bhodgins
Jun 15 2015 00:24
right!
and a great purpose of that
is that not only does it work in your lua programs
but it would work in your shell scripts too
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:24
of course the && is not implemented (yet!) so it's more a question of command one and command 2
bhodgins
@bhodgins
Jun 15 2015 00:24
you can interface with hardware using the shell SUPER easily
right
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:25
same way you can do this:
don't have a 0xf1 ioctl there
bhodgins
@bhodgins
Jun 15 2015 00:25
nice
how is networking?
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:26
NYI.
I'm quite happy with rednet.
I even made a library for TTYs over Rednet
bhodgins
@bhodgins
Jun 15 2015 00:27
itl be interesting to see the use of SENT when I remake it to create vpn like setups
even possibly accross servers not just within one
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:28
@bhodgins on the receiver end:
bhodgins
@bhodgins
Jun 15 2015 00:28
what is torn?
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:28
on the sender end,
TORN is Tty Over RedNet
bhodgins
@bhodgins
Jun 15 2015 00:29
aha
I had an idea it was something like that
OH
do we have a tty mux?
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:29
no
bhodgins
@bhodgins
Jun 15 2015 00:29
maybe that's something I can look into
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:29
the tty is actually just a wrapper around term
It's a wrapper around term-compatible objects*
bhodgins
@bhodgins
Jun 15 2015 00:30
a MUX is important for things like console redirection at the lowest possible level
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:30
such as monitors and printers.
bhodgins
@bhodgins
Jun 15 2015 00:30
@DemHydraz that's pretty much what a TTY is
the pseudo tty multiplexer is a special tty device that when you open it creates a new tty slave
theyt're extremely useful
ssh uses it
on Linux, they are PTYs and the tty slaves are in /dev/pty/whatever
and the master is /dev/ptmx
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:33
wow wow wow
bhodgins
@bhodgins
Jun 15 2015 00:33
?
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:33
I have 63 ttys?
bhodgins
@bhodgins
Jun 15 2015 00:33
wat
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:33
I have 63 ttys!
@bhodgins have I shown you kmsg?
bhodgins
@bhodgins
Jun 15 2015 00:34
nope
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:34
bhodgins
@bhodgins
Jun 15 2015 00:35
wut
so it's pretty much dmesg
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:35
well duh
bhodgins
@bhodgins
Jun 15 2015 00:35
nice
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:35
k = kernel msg = message
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:45
@bhodgins there
kobjs are in
bhodgins
@bhodgins
Jun 15 2015 00:47
neat
so now, we just need sysfs to read from the kobj store
and drivers to create nodes on the kobj store
in an API friendly way
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:48
sysfs is also in
@bhodgins
you can use it with kobj[category.path]
so that'd be kobj['dev.tty0']
it's really easy
bhodgins
@bhodgins
Jun 15 2015 00:53
nice.
and when drivers want to add one
they just assign values to random locations in kobj[""] ?
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:54
not exactly, not yet
they do kobj.add(name, category, obj)
bhodgins
@bhodgins
Jun 15 2015 00:55
category is the directory?
like net.ip
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:55
yea
bhodgins
@bhodgins
Jun 15 2015 00:55
and obj could be like, forwarding?
cool
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:55
No
that would be kobj.add('ip/forwarding', 'net', {isDir=false})
bhodgins
@bhodgins
Jun 15 2015 00:56
oh nice proc is working now!
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:56
badly yes
bhodgins
@bhodgins
Jun 15 2015 00:58
how is read / write handled in these kobjs?
can you map em to a function callback yet?
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 00:59
you map open to a callback..
Finally
bhodgins
@bhodgins
Jun 15 2015 01:02
I see
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 15:08
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 15:18
@bhodgins procfs coming 'long nicely
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 15:36
god freaking damnit
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 15:37
oh damnit
not watching that
Darkbitt
@Darkbitt
Jun 15 2015 15:37
?
it's a game i'm making
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 15:38
Not giving you a view
that looks like it was made in mspaint
Darkbitt
@Darkbitt
Jun 15 2015 15:38
Paint.Net*
Jared Allard
@jaredallard
Jun 15 2015 15:38
dying.
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 15:38
mspaint.net
Darkbitt
@Darkbitt
Jun 15 2015 15:38
at least it's not made in some dumb game maker
it's made in C# with Monogame/XNA
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 15:39
C#?
Darkbitt
@Darkbitt
Jun 15 2015 15:39
yea
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 15:39
go die in a fire, please. The fire is that way.
Darkbitt
@Darkbitt
Jun 15 2015 15:39
it's faster than java
Why is C# bad?
Jared Allard
@jaredallard
Jun 15 2015 15:39
that's not a high bar
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 15:39
@jaredallard why is C# bad?
I can't seem to think of a reason
oh, MICROSOFT.
Jared Allard
@jaredallard
Jun 15 2015 15:39
:+1:
Darkbitt
@Darkbitt
Jun 15 2015 15:39
Well at least microsoft is making freaking hololenses
also WINDOWS FREAKING 10
Jared Allard
@jaredallard
Jun 15 2015 15:40
win10 is just fixing win8. It's not really "new"
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 15:40
WINDOWS FREAKING 10 can only have 10^6 files in a directory
Darkbitt
@Darkbitt
Jun 15 2015 15:40
#Cortana
#Edge
Jared Allard
@jaredallard
Jun 15 2015 15:40
just like WWDC was just catching up to other developers
Edge is shit
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 15:41
10^6 FILES IN A DIRECTORY IS THE MAX
THE MAXIMUM
Jared Allard
@jaredallard
Jun 15 2015 15:41
no idea why they made it on the modern app platform
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 15:41
IT IS LITERALLY IMPOSSIBLE TO MAKE ANY MORE FILES AFTER THAT
WHY?
BECAUSE OF A DOS-ERA FILE INDEXING MECHANISM
Darkbitt
@Darkbitt
Jun 15 2015 15:41
who would WANT 10^6 files in ONE directory
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 15:41
Me.
Darkbitt
@Darkbitt
Jun 15 2015 15:41
I hope you have a 2 TB hard drive ready
oh wait, did I say 2?
I MEANT 10.
Jared Allard
@jaredallard
Jun 15 2015 15:41
it's called being a black hat @FlareHAX0R
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 15:41
10^6 files in a directory is not much
Darkbitt
@Darkbitt
Jun 15 2015 15:42
try 10^100
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 15:42
considering a file is like, ~1KB when it's not made by DOS..
Darkbitt
@Darkbitt
Jun 15 2015 15:42
do you need that many?
go watch the jumpscare in my video
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 15:42
yes
yes I do
Darkbitt
@Darkbitt
Jun 15 2015 15:42
it's not scary
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 15:42
get out of here
Darkbitt
@Darkbitt
Jun 15 2015 15:42
it might show you what a little C# can do
(oh wait, xD, the jumpscare sprite is horrible)
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 15:42
I SAID

GET

OUT

OF

HERE

Darkbitt
@Darkbitt
Jun 15 2015 15:43
right back at ya
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 15:47
DAMN YOU
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 16:08
@jaredallard
Jared Allard
@jaredallard
Jun 15 2015 16:10
nice!
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 16:11
Should make init spawnp(2)
ehh nope
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 16:17
@jaredallard I'll eventually make it so that if you write a file named 'new_proc' in procfs it'll spawn it (the file's contents have to be the full path to the program then a semicolon-separated list of arguments)
so if you do like echo -O /sys/proc/new_proc /usr/bin/mkdir.lua;derp it'll be the same as run('/usr/bin/mkdir.lua', 'derp')
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 16:27
@jaredallard opinion on Polymer?
Jared Allard
@jaredallard
Jun 15 2015 16:28
nothing new
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 17:01
It looks awesome
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 17:36
Look at the twitter @jaredallard
SquidDev
@SquidDev
Jun 15 2015 18:21
Reading through the chat history and all I can see is @DemHydraz raging about C#. :(.
I however, have got the turtle tool host working - Tinkers' Construct hammers in turtles!
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 18:38
Woo!
@SquidDev you're the sole reason we can have nice things
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 19:22
Going to add a disk management utility
Snapshotting, image management
Versioning
Sync directories
dm -S source target -r
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 19:27
Or maybe -Osync
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 20:07
SquidDev
@SquidDev
Jun 15 2015 20:11
@DemHydraz Shiny help screens!
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 20:12
Got a function to do it :P
I've got a library for fancy printing tbh
-- this is what I use to make those usages:
info.usage('dm', 'disk management tool', '<-O operation> [-r]', {
        h = 'print this help',
        O = 'specify the operation',
        s = 'specify the source',
        d = 'specify the destination',
        r = 'do operations recursively',
        H = 'print help for an operation.'
 })
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 21:18
a dm snap image and a lar compared (size):
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 22:01
@jaredallard snap is now the official way of packaging files
Jared Allard
@jaredallard
Jun 15 2015 22:04
what's the internals look like?
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 22:04
It's just what I described :P
2 tables, one where path is key and value is index in the data table and one where key is index i- it's complicated
{
  data = {
      'hello, world!'
  },
  index = {
     ['/test'] = 1
  }
}
ugh, E3
it's that time of year again
time to close twitter
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 22:12
@jaredallard how to html? (and css and JS?)
which frameworks should I use?
should I do maths with jQuery?
this SO question seems to agree with me:
Jared Allard
@jaredallard
Jun 15 2015 22:16
you're making me want to cry
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 22:18
heh
Jared Allard
@jaredallard
Jun 15 2015 22:20
jQuery is good for what it does, manipulating the DOM.
that's it.
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 22:20
ugh I think scrapping Ciel was a bad idea
I could use the webdev experience
Jared Allard
@jaredallard
Jun 15 2015 22:20
Ciel is nice :( I was sad you did
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 22:21
is there bower init?
@jaredallard do you still have the code?
Jared Allard
@jaredallard
Jun 15 2015 22:22
I have some of it.
homescreen, lockscreen, window framework. That's it.
Not much was done aside.
Since it's all using node webkit I realized we don't need to care about the dev env
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 22:23
k <3
if you want to go ahead and publish it to GH, then please do
Jared Allard
@jaredallard
Jun 15 2015 22:24
will do.
will be a bit tho
mobile atm
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 22:26
Polymer looks pretty freaking sweet
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 22:42
@jaredallard which font for the system?
Jared Allard
@jaredallard
Jun 15 2015 22:53
Lato! <3
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 22:58
is that a google font?
it is?
knew it
all google fonts end with o
Roboto for android,
Jared Allard
@jaredallard
Jun 15 2015 22:58
Lato is open source
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 22:58
Lato for whatever,
Jared Allard
@jaredallard
Jun 15 2015 22:59
google just hosts some of it
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 22:59
I'm playing around with Polymer and it IS awesome
Jared Allard
@jaredallard
Jun 15 2015 22:59
I'm playing with Kerbal Space Program :)
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 23:00
it is fun :D
lato is fancy
ugh bootstrap why no
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 23:06
ugh bootstrap why no - me web deving
@jaredallard how do I center a block of text?
Jared Allard
@jaredallard
Jun 15 2015 23:07
text-align:center;
also
I made a ship
named it The Matheus. was my best one yet.
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 23:08
LOL!
Tried a SSTO yet?
Jared Allard
@jaredallard
Jun 15 2015 23:09
Like, legit, best one. SSTO?
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 23:09
Single Stage to Orbit
I see you are not strong in the KSP-fu
AHA thanks jare <3
ashnwill
@ashnwill
Jun 15 2015 23:10
BUT NO "THE ASHNWILL"?!?!?!?!?!?!?!
lmao
Jared Allard
@jaredallard
Jun 15 2015 23:11
i'm not very good at it
career mode is hard ;;
how to get science
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 23:13
Fly to minmus
orbit around the sun
Jared Allard
@jaredallard
Jun 15 2015 23:14
I can't even get orbit
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 23:14
HAH
LOL
such a noob
</3
@jaredallard I'll give you the secrets to orbit if you give me the secrets of making an element fill the width of the page
Jared Allard
@jaredallard
Jun 15 2015 23:19
width:100%;
make sure
html,
body {
     width:100%;
     height:100%;
}
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 23:24
so to get to orbit, you have to have a rocket
check that?
Jared Allard
@jaredallard
Jun 15 2015 23:26
duh
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 23:27
So, this rocket has to get pretty far,
about 70 kilometers
but there's a twist!
it's actually more of a turn. namely, a gravity turn.
you have to turn east (D key) when you're about 10 000 meters up
if you turn gradually (start: 10km end: about 70km) you'll have an orbit
Jared Allard
@jaredallard
Jun 15 2015 23:29
how to upgrade launch pad capactiy
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 23:31
uhh
Jared Allard
@jaredallard
Jun 15 2015 23:31
like cause that's what is holding me back
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 23:31
right click on it from the overview?
Jared Allard
@jaredallard
Jun 15 2015 23:32
whoot!
Matheus Magalhães de Alcantara
@demhydraz
Jun 15 2015 23:46
ugh
I got lost