« first day (2790 days earlier)   

12:36 AM
CMC: Output all the ascii characters (32-126) except those whose values equal at least one of your source characters (in unicode) modulo 95
 
Anyone know what companies make good computer monitors
I've never actually bought one before, I've always just used my dad's old ones
 
@Pavel Surprisingly, Dell
 
Huh. I never think about Dell. They're... really boring, I guess.
@Mego ._. of nearly 400 monitors they have for sale, 49 support display port.
Also I never realized until today how expensive monitors are
 
1:08 AM
@Pavel LG
Cheap and great color accuracy/brightness
 
1:23 AM
LGs are also good. We use both LGs and Dells at work
 
Golfed a different approach while holding a sleepy baby; will add an explanation later. — Giuseppe 57 mins ago
golf compels us all
 
any thoughts on my KoTH in the sandbox?
 
1:42 AM
brand engagement has plummeted to an all time low
 
I made a poor life choice today. I've decided to create a new 2D language and write an interpreter.
 
@Draco18s Any gimmick to distinguish it? I usually like learning 2D languages if they're not too oblique
 
@JoKing Multiple simultaneous instruction pointers.
 
Off the top of my mind, Cardinal, Beeswax and Fission all have multiple pointers
 
The syntax is (mostly) based on ><> though the full instructionset of ><> isn't (yet?) supported and a few instructions use different characters.
I am unfamiliar with all of Cardinal, Beeswax and Fission
@JoKing Fission and Beeswax are decent comparisons to what I'm doing. Square grid instead of Orthogonal, my pointers have "energy" similar to Fission, although in my case, instruction pointers headed in the same direction that end up in the same cell will merge (the newest one adds its energy to the older one, then is destroyed).
The reason I started doing this is because I wanted to create a runic enchantment system for a game project and the 2D language....space was essentially the right idea: Mana enters from given points on given triggers (atm only on-program-start implemented) and flows from rune to rune until it runs out of energy. If an instruction requires more energy than an instruction pointer has, then the IP doesn't execute the instruction and doesn't move (essentially a NOP).
So I've also got commands that call out to Unity code; e.g. Q invokes Physics.OverlapSphere()
 
2:04 AM
For running Python on embedded systems, for CPython— can I take like the pyc files and execute those somehow? I don't want to embed all the python std lib files as not enough ram
 
picture depicts: Overlap Sphere (dist 4), get the position of the first object, push self onto stack, get position of first object, calculate distance between two vectors, print output, terminate.
 
@Downgoat not sure what you mean precisely
 
@quartata i.e. precompile python to CPython bytecode or w/e it does internally
 
right that's what pyc files are
if you run compileall with -b I believe it'll place the pyc files at the same directory level as the py files
you can then safely eliminate the py files
it's technically a carryover from Python 2 but
 
compileall? is that like a subcommand
 
2:15 AM
python -m compileall
Without -b it goes into __pycache__ like normal
 
@quartata So if I do import re, do I need re module in PYTHONPATH or does the pyc have everything?
 
If the pyc is in the same place as where the source py would be expected, then it will work without it
The reason why it's an important distinction is because in Python 3.x pyc files go into __pycache__/ rather than cluttering up the top-level (which was the behavior in Python 2). And if you don't have the py files it's not going to load from __pycache__
 
@quartata so If I were to copy over python executable and just this pyc file— everything would work ok?
 
I don't think Python would work without at least imp?
I don't see the point in using Python without its standard library though
 
ok well rust it is then
 
2:24 AM
Lol what
 
I want to use a language that is not C++ but can interface with C api easily
 
Lua
 
ew
im not an animal
 
It's what it was made for...
 
if I'm using Lua I might as well just use C/C++
OO pls
 
2:26 AM
Lua has OO?
Well anyways
I could try to find out which modules it needs
 
@quartata Lua OO is like ES5 OO I thought
 
Lua has OO in the same way that ES5 has OO
Nina'd
*Ninja'd
 
encodings, io and importlib
Minimum
Probably more
 
I would use VSL but it doesn't have generic yet :(
 
@Draco18s Neat. Let me know when you think it's in a releasable state and I'll be sure to give it a try
 
2:27 AM
These are fundamental components, they're just not in the C part of the interpreter
 
I have 64KB of RAM I don't think that's enough
python exe is 16KB on its own
not including dylibs
 
what are you targeting??? I thought this was iOS
 
@quartata no embedded arm microprocess
 
You actually have a libc you can use?
 
for what?
 
2:30 AM
do you even have a kernel?
you were doomed to C from the beginning
 
@quartata yes— it is weird but if it has int main() i can get it to run
 
"im not an animal" -downgoat
 
@JoKing It's pretty solid atm. Going to get a few more operators in and push it to Github probably tonight. (just added vector dot and cross products, for example)
 
@quartata opls any compiled language that's not Swift should work
oh wait
 
@Draco18s Whenever you're bored, please convert to 3D ;p
 
2:34 AM
has anyone used crystal here
 
@Downgoat No. You're not going to be able to fit the Rust runtime
 
@Quintec You're the second person to make that kind of comment XD
 
@quartata O__o is it really that big for even simple program
smh so much for 'C' replacement
 
I feel like I need more context
 
@Downgoat You could use the freeze utility in Python
 
2:36 AM
Are you working freestanding
 
@Mego he's working on an embedded system with 64 KB of RAM apparently
 
@Draco18s Someday, you may hear the tale of how I tried to make a 4D language when I was bored.
 
@quartata no
 
Oh yeah Python isn't an option
 
2:37 AM
Frankly I would say it's time for assembly but
 
@quartata C++ works fine so far but it's ugly
 
@Quintec I've attempted to navigate 4+ D mazes before. I twas a few years ago and I think the highest dimensionality was 6. 3x3x3x3x3x3. Was a right pain to wrap your brain around.
 
@Downgoat what libc are you using
 
That it is, It was a headache to try to visualize the instruction pointer traveling through time... ;p
 
Especially backwards!
 
2:39 AM
To grant some perspective: your system has as much RAM as the Quest for Tetris computer
Start thinking in those terms
 
@quartata it doesn't have libc but contains most POSIX functions
 
You probably can do Rust freestanding but I can't make any ABI promises
 
@Downgoat C#
 
The reason why I feel like I'm missing something is because you're working with something at the microcontroller level. This is assembly land
 
@quartata Great idea - use QFTASM!
 
2:52 AM
Y'all have that QFTASM GCC backend yet
 
Funny
 
I could have sworn I remembered someone said they were working on that
 
That would be big Q
 
@Pavel I haven't finished it because there are other things that need to be worked on in parallel
Not all of which are under my control
 
3:11 AM
@Pavel C# is very very heavy
 
@Downgoat I read "Can interface with C easily" and by the time I realized the other requirements it was too late to edit
 
@quartata :| you don’t need ASM to program microcontrol
 
3:48 AM
@JoKing Aand pushed to github. github.com/Draco18s/RunicEnchantments Created in Unity 2018.2.0f2, but I'm pretty sure any version 5.0 and later would open it, I'm not using any crazy newfangled features (other than the UI stuff added in 4.6). Hit run, put code in the box, click the button. There's probably still one or two operations that might attempt to parse a Vector3 as a double (structs are ValueTypes that aren't Integers; who knew?) Enjoy!
 
@Draco18s Your solution file has a problem:
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RunicEnchantments", "Assembly-CSharp.csproj", "{8BE25938-E7BC-CE77-0A05-88C0465E0903}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RunicEnchantments", "Assembly-CSharp-Editor.csproj", "{4D2DF87A-3767-2565-957E-1E54F9EE9204}"
EndProject
Two projects can't have the same name
 
that from the sln files?
 
Yes
Also you have a hardcoded path to unity
So it won't build on anyone else's system
 
I haven't done anything to them other than what Unity generated. Don't think that the project would run without Unity. Oh, stupid paths. F* you Unity.
 
Why did you decide Unity was a good idea for a programming language in the first place
 
3:53 AM
Because this is the baseline work for another project...which is/will be a Unity game
 
You could have isolated the actual programming language in a non-unity project that people might be able to actually use
 
I'll have to do that tomorrow. Its midnight.
 
@Draco18s If you make a console app we can get it on TIO
 
That said, it'd have to be a stripped down version as several of the commands reference Unity functions. E.g. the Q command
Was planning on doing that anyway, I just wanted my full feature set first. ;)
@Pavel Having it on TIO would be cool. Definitely a "sometime next week" sort of thing though.
 
@Draco18s Why sometime next week, you just said tomorrow
 
4:01 AM
@Pavel Meant that as a "Not a goal for tomorrow, but eventually" sort of thing
I can fiddle with it, but not making it my priority
 

« first day (2790 days earlier)