- ComputerCraft | Programmable Computers for Minecraft
- → Alice's Content
Alice's Content
There have been 127 items by Alice (Search limited from 29-March 23)
#224636 GNU nano syntax files and improvements
Posted by Alice on 05 July 2015 - 06:27 PM in General
MindenCucc, on 05 July 2015 - 12:49 PM, said:
I didn't until rather recently. Still trying to work it out but it's based on whether you can match a RegExp string. It's a gift that it's that simple but it also makes things difficult, such as HTML syntax coloring.
#224383 GNU nano syntax files and improvements
Posted by Alice on 03 July 2015 - 10:09 PM in General
syntax "lua" ".*\.lua$"
## General
color white ".+"
## Statements
color magenta "\<(do|end|while|repeat|until|if|elseif|then|else|for|in|function|local|return)\>"
## Operators
color brightyellow "&|\||:|\*\*|\*|/|%|\+|-|\^|>>|>|>=|<|<=|<<|~|~=|=|\.\.|,|\<(not|and|or)\>"
## Keywords
color brightyellow "\<(debug|string|math|table|io|coroutine|os)\>\.[A-Za-z_][0-9A-Za-z_]*"
color yellow "(_G|_VERSION)"
color brightcyan "[^\.A-Za-z0-9](assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|module|next|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall) *[\(\"{]"
## Standard library
color brightyellow "io *\. *\<(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)\>"
color brightyellow "math *\. *\<(abs|acos|asin|atan2|atan|ceil|cosh|cos|deg|exp|floor|fmod|frexp|huge|ldexp|log10|log|max|min|modf|pi|pow|rad|random|randomseed|sinh|tan)\>"
color brightyellow "os *\. *\<(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)\>"
color brightyellow "package *\. *\<(cpath|loaded|loadlib|path|preload|seeall)\>"
color brightyellow "string *\. *\<(byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)\>"
color brightyellow "table *\. *\<(concat|insert|maxn|remove|sort)\>"
color brightyellow "coroutine *\. *\<(create|resume|running|status|wrap|yield)\>"
color brightyellow "debug *\. *\<(debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)\>"
## false, nil, true
color magenta "\<(false|nil|true)\>"
## vararg
color brightmagenta "\.\.\."
## External files
color brightgreen "(\<(dofile|require|include)|%q|%!|%Q|%r|%x)\>"
## Table indexing
color yellow "[A-Za-z_][A-Za-z_0-9]* *[:\.] *[A-Za-z_][A-Za-z_0-9]*"
## Table index calls
color brightgreen "[\.:] *[A-Za-z_][A-Za-z_0-9]* *[\(\"{]"
## File handle methods
color brightred "\: *\<(close|flush|lines|read|seek|setvbuf|write)\>"
## Numbers
color cyan "\<([0-9]+)\>"
## Symbols
color cyan "\(|\)|\[|\]|\{|\}"
## Strings
color brightgreen "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'"
## Escapes
color brightred "\\[0-7][0-7][0-7]|\\x[0-9a-fA-F][0-9a-fA-F]|\\[abefnrs]|(\\c|\\C-|\\M-|\\M-\\C-)."
## Shebang
color cyan "^#!.*"
## Simple comments
color green "(\-\-[^\[].*$|\-\-\[([^\[].*)?$|--$)"
## Multiline comments
color green start="\-\-\[\[" end="]]?"
## Highlight tags, comments, and DOCTYPE
syntax "html" "\.html$"
color cyan start="<" end=">"
color green start="<!--" end="-->"
color yellow start="<!DOCTYPE" end=">"
## Fix this later?
color red "&[^;[[:space:]]]*;"
#224296 Post your desktop!
Posted by Alice on 03 July 2015 - 04:37 AM in General
Sandstorm, on 03 July 2015 - 02:22 AM, said:
Alice, on 02 July 2015 - 10:08 PM, said:
Sandstorm, on 02 July 2015 - 11:15 AM, said:
Alice, on 22 June 2015 - 01:55 AM, said:
Is that an Arch derrivative? sorry, not a huge Linux user but wanting to get into it. />
DannySMc, on 02 July 2015 - 11:12 AM, said:
I'm obviously not the one who posted it, however I am most certain it is fences? /> />
AwesomeWM is a window manager run in Arch Linux. You have multiple levels of display in Arch. Most of them are exchangable, if not all, for different ones
- X server (X11 / Xorg)
- Display Manager (LXDM, GDM)
- Window Manager (Awesome, Gnome, Unity, Cinnamon)
- Desktop Environment (Gnome, Unity, Cinnamon with additional packages/programs)
Also, feel free to talk to me any time if you want to get started using Linux. :3
Thank you, I'm a little familiar with Linux thanks to Ubuntu and Raspbian , thanks a bunch you really cleared up a lot!
Not a bad place to start in my opinion. My first OS was Ubuntu 12. Then Debian 7. Then Mint 16. Then Arch. It takes a while to get to the lower levels of the OS.
#224251 Post your desktop!
Posted by Alice on 02 July 2015 - 10:08 PM in General
Sandstorm, on 02 July 2015 - 11:15 AM, said:
Alice, on 22 June 2015 - 01:55 AM, said:
Is that an Arch derrivative? sorry, not a huge Linux user but wanting to get into it.
DannySMc, on 02 July 2015 - 11:12 AM, said:
I'm obviously not the one who posted it, however I am most certain it is fences?
AwesomeWM is a window manager run in Arch Linux. You have multiple levels of display in Arch. Most of them are exchangable, if not all, for different ones
- X server (X11 / Xorg)
- Display Manager (LXDM, GDM)
- Window Manager (Awesome, Gnome, Unity, Cinnamon)
- Desktop Environment (Gnome, Unity, Cinnamon with additional packages/programs)
Also, feel free to talk to me any time if you want to get started using Linux. :3
#224249 E3 Conferences - 2015
Posted by Alice on 02 July 2015 - 09:57 PM in General
Sandstorm, on 02 July 2015 - 02:44 PM, said:
Finally, someone gets it. My parents think I'm crazy.
I also want a shell terminal up on my shelf. Preferably with the ability to hook up a Bluetooth keyboard to the VR helmet but I can use a holographic if needed, I guess. Nothing like being spammed with emails and being able to go fix the problem without even getting out of bed.
#224126 E3 Conferences - 2015
Posted by Alice on 02 July 2015 - 03:57 AM in General
slow-coder, on 29 June 2015 - 05:50 PM, said:
but if you want, it is a neat toy to play around with
If you read the post you would see that I mentioned at least once that it should be able to run Windows 10 (probably Metro or whatever that is) applications.
#224125 CCEmuRedux - ComputerCraft Emulator Redux
Posted by Alice on 02 July 2015 - 03:53 AM in General
cyanisaac, on 01 July 2015 - 12:46 AM, said:
Please read the whole post.
tomass1996, on 22 May 2015 - 05:46 PM, said:
Mikk809h, on 22 May 2015 - 05:26 PM, said:
or atleast the ability to choose the computercraft.jar file?
(i know it's been asked alot, but i guess many wants a "detailed" answer, or what its known as)
I've been meaning to take a look at it, unfortunately I've been MIA for a while due to University and the like.
Updating ComputerCraft should and most likely will be a easy task.
I'm not really in the loop about everything at the moment, but is 1.74pr20 reasonably stable?
The issues with the colours in the screenshots above is just that the numbers ranging [0-16] representing colour internally have been flipped, for whatever reason, but that's trivial to fix.
I can't make any promises about the choosing ComputerCraft version or jar. But I'll try to have a look at it sometime soon.
ItsRodrick, on 22 May 2015 - 05:32 PM, said:
Oh, and I made to myself this small Batch that allows me to use any versions:
cd "%appdata%\.ccemuredux" javaw.exe -Xmx512M -cp %appdata%\.ccemuredux\bin\jackson-core.jar;%appdata%\.ccemuredux\bin\jackson-annotations.jar;%appdata%\.ccemuredux\bin\jackson-databind.jar;%appdata%\.ccemuredux\bin\guava.jar;[b]%appdata%\.ccemuredux\bin\computercraft.jar[/b];%appdata%\.ccemuredux\bin\gdx.jar;%appdata%\.ccemuredux\bin\gdx-backend-lwjgl.jar;%appdata%\.ccemuredux\bin\gdx-platform.jar;%appdata%\.ccemuredux\bin\lwjgl.jar;%appdata%\.ccemuredux\bin\lwjgl-platform.jar;%appdata%\.ccemuredux\bin\ccemuredux.jar com.xtansia.ccemu.desktop.DesktopLauncher
Find the %appdata%\.ccemuredux\bin\computercraft.jar, place a (different named) computercraft.jar there and rename it in the Batch.
#223799 E3 Conferences - 2015
Posted by Alice on 29 June 2015 - 03:54 PM in General
DannySMc, on 24 June 2015 - 07:52 PM, said:
gametechish, on 24 June 2015 - 07:47 PM, said:
Bomb Bloke, on 22 June 2015 - 09:42 AM, said:
Just ten years ago, we didn't have the processor power to make it practical. These days, I can hook up a 3D camera to my computer and scan in real-time. In another ten years, VR headsets for every day use will likely be pretty mainstream. Maybe in twenty, ocular implants will start to emerge.
We're all incredibly privileged.
Wait till the DIY guys get there hands on a HoloLens
I know Im going to be trying to install Debian on it(and make it functional)
OMG We can make a CC Emulator for HoloLens!!!!!!!!!!!
Omg this is the best idea ever!! Computercraft emulator on a holo lens xD but with better screen ratios run it in C xD
In theory this could easily work. Microsoft is attempting to move Windows to use an API that is spread out throughout all platforms. Creating applications is now easier than ever, especially with the new XAML framework and C# implementations of code for the Windows 8.1 operating system. If we can implement things like this in Windows 10, and perhaps create a Metro app (because that's what the C# code is) to run a ComputerCraft machine emulator, this could easily be possible. Development can be done on a computer and tested on a computer, and in theory only minor graphical porting should be required to run it on Holo Lens, and even Windows Phone devices.
tl;dr: make it run on a Windows 10 computer and it'll be runnable on Holo Lens
#222970 Standalone CC OSes.
Posted by Alice on 24 June 2015 - 01:17 AM in General
Dr. Poof, on 24 June 2015 - 01:01 AM, said:
oeed, on 24 June 2015 - 12:40 AM, said:
Alice, on 24 June 2015 - 12:16 AM, said:
I'll get to work on setting up a VM for testing and writing code. You have one week, if it's not too hard.
Chill.
Time will tell of course, but there's no use it making an emulator of ComputerCraft in any form if it doesn't accurately simulate ComputerCraft. So having full pixels is basically a must if it does get added, which seems increasingly likely.
I'm planning to implement this in a freestanding, non-linux operating system. It'll be hard, sure, but once I get drivers for things (I plan to make this for the raspi, so the hardware is pretty standard), implementing Lua and the CC libraries (including pixel rendering) will be MUCH easier.
The PKGBUILD is simply a script to build it from source.
This is going to be a POSIX / ncurses compatible port that I am writing for Lua ComputerCraft.
#222962 Standalone CC OSes.
Posted by Alice on 24 June 2015 - 12:24 AM in General
Dr. Poof, on 24 June 2015 - 12:21 AM, said:
Alice, on 24 June 2015 - 12:16 AM, said:
Dr. Poof, on 24 June 2015 - 12:14 AM, said:
Alice, on 23 June 2015 - 11:55 PM, said:
Not _too_ hard.
I'll get to work on setting up a VM for testing and writing code. You have one week, if it's not too hard.
The code itself is not complicated. The problem, really, is allocating time for it. I'll have about a month of free time from July the 6th to the 31st (I think). So I'll start then.
Alice, on 24 June 2015 - 12:20 AM, said:
Dr. Poof, on 24 June 2015 - 12:19 AM, said:
ardera, on 23 June 2015 - 09:38 PM, said:
and modify raspbian/archlinux/ubuntu (whatever you want) to boot in this application. It's way to complicated to make a new linux distro.
It's just a matter of writing a couple Makefiles.
Arch, m8.
I meant to quote this: "It's way to complicated to make a new linux distro."
Plus, m8, makefiles are way better.
EDIT: Give me a name for this project and I'll go ahead and make a GH repo
I'm gonna set up a new GitHub repo once I got the VM set up, then I'll post my repo. You can do whatever you feel like.
This was to make "Standalone CC OSes." Not OSes programmed off of ComputerCraft code.
#222960 Standalone CC OSes.
Posted by Alice on 24 June 2015 - 12:20 AM in General
Dr. Poof, on 24 June 2015 - 12:19 AM, said:
ardera, on 23 June 2015 - 09:38 PM, said:
and modify raspbian/archlinux/ubuntu (whatever you want) to boot in this application. It's way to complicated to make a new linux distro.
It's just a matter of writing a couple Makefiles.
Arch, m8.
#222958 Standalone CC OSes.
Posted by Alice on 24 June 2015 - 12:16 AM in General
Dr. Poof, on 24 June 2015 - 12:14 AM, said:
Alice, on 23 June 2015 - 11:55 PM, said:
Not _too_ hard.
I'll get to work on setting up a VM for testing and writing code. You have one week, if it's not too hard.
#222951 Standalone CC OSes.
#222945 Standalone CC OSes.
Posted by Alice on 23 June 2015 - 11:42 PM in General
Also, we can make packages for the distro. Arch has the AUR, so we can make a PKGBUILD from that.
Which also means we would need a Git repo to use. Would I set this up later or would you like to get started on this?
Oh, another note, I planned on implementing the API in a library called 'cqueues', it works great with file-descriptor based events and I've actually been thinking about making a CC wrapper for quite a while now!
This also means: SOCKETS AND MULTITHREADING WHOOO
#222927 Standalone CC OSes.
Posted by Alice on 23 June 2015 - 08:34 PM in General
#222926 What Do You Look For in a Programming Language?
Posted by Alice on 23 June 2015 - 08:32 PM in General
Anfred, on 21 June 2015 - 03:27 AM, said:
I think lua and CC may be the best possible place to start... Well, unless you create a better way! My dream is to have a language like lua, with the processing lang incorporated. Processing is the lang used in arduino microcontrollers, and is the standard for beginner robot building.
It would mean arduinos could be programmed in lua, if a custom firmware was written.
Currently, there are micro versions of java and python, but those langs are terrible for limited ram -- there is only 16kb of ram in some boards!
Lua is only available for the "nodemcu" wifi boards and the esp8266 chip. The new digistump "Oak" ($10) is a great wifi dev board with open firmware that needs lua support. This would finally bridge the gap between CC and Arduino as learning solutions, creating the best possible way to learn computer programming for software, the internet of things, and robots.
It would corner the market for the future of code education!
You are halfway right. Lua would be great for this. However, to interface to the actual device, wouldn't it be better to use something like C?
Also, I understand that people want ComputerCraft in real life more than anything, but let's try to stick to at least getting it running like this, before we go to microcontrollers.
#222918 Standalone CC OSes.
Posted by Alice on 23 June 2015 - 07:47 PM in General
ardera, on 23 June 2015 - 02:58 PM, said:
Alice, on 23 June 2015 - 09:50 AM, said:
But that doesn't matter as you can also use IPv4/6 adresses without 4/8byte sized integers.
Also LuaJ uses 8byte sized doubles, using a 52bit mantissa -> even more storage possible than with Lua's integers (32bits). With a smart system, you can get the full 64bits of information out of a double.
I suppose that's true, Google has this glorious technique of thinking me typing "IPv6" meant "IPv4." Anyways, we'd have to modify Lua to use doubles instead of integers. Probably not too hard?
#222917 Post the status of your WIP project!
Posted by Alice on 23 June 2015 - 07:43 PM in General
Dr. Poof, on 23 June 2015 - 04:06 PM, said:
Alice, on 23 June 2015 - 05:17 AM, said:
Dr. Poof, on 23 June 2015 - 12:19 AM, said:
Alice, on 22 June 2015 - 02:19 AM, said:
[namedspoler=Personal]
My dotfiles (alt "real" name) are always under development.
Drunken Adventure is really barely done.
lidentd is getting there, I guess?
Boomstick is technically releasable but isn't (and probably won't be, for a while) complete.
[/namedspoiler]
hashbang.sh is mostly done, I believe. Feel free to bugtest, however.
hashbangctl is awaiting more fixes.
hashbang dotfiles are pretty much suitable.
what even is a hashbang?
#!
That explaIns nothing
Then you would have no interest in them.
- ComputerCraft | Programmable Computers for Minecraft
- → Alice's Content