« first day (24 days earlier)      last day (43 days later) » 

11:10 PM
Should I use a file for each class in Python? (This is for Jagony)
 
"at Freddie Mercury's keyboard"
^ would be quite fun
 
That'd be AFMK...
 
@Zacharý no. group related things together
what classes do you need?
I can only imagine maybe 2, 3
 
@Riker alot.
 
@Zacharý Not necessarily. Split them by functionality/purpose
 
11:11 PM
you should'nt have that many afaict
what are they?
 
Jagony_Object Jagony_Boolean Jagony_Integer Jagony_Float Jagony_String, Jagony_Array Jagony_Variable Jagony_Method and maybe some more eventually
 
1. eugh those names
2. why do you recreate every single type?
 
It's esoteric
 
3. wait, are methods defined away from classes?
4. in what genre? there's only so much you can do to an int before it's not an int
 
No, they're part of classes, it's just they need a separate type
Oh! Forgot Jagony_Class
 
11:13 PM
ok
yeah those can probably be grouped into a single file
(int, float, string, array, etc.)
but again, why are you re-implementing?
what source lang is this? python?
 
System.Types.Class.Declare(System.MainClass).Chain(System.MainClass.DefinePublic‌​StaticMethod(System.MainClass.MainMethod)). ...
Yes, the source language is Python
It's Java+agony = Jagony (OOP to its fullest extent)
 
@Zacharý eli5?
ok yeah no don't implement a java-based esolang in python that's just dumb
 
@Riker wut? What is this?
THe reason I'm implementing it in Python is the overloading of ., since objects need to be created on reference. I might transpile it to Java.
 
@Zacharý explain it like I'm 5, basically explain it simply
google eli5 for more info
 
The gist is that it's a language where everything is ACCESSED like objects, in addition to being objects.
So System.Type.Class.Declare(System.MainClass) declares a new class, that way the methods of a class can be accessed ... I have a room for Jagony, if you want to take it there
 
11:20 PM
ya
36 messages moved from The Nineteenth Byte
ok anyway @Zacharý seems like what you're doing could be much easier done in java
I'm not a java expert but I feel like it would be easier, since you don't have to reimplement the parser as much
but if you want to do it in python, go ahead
I'd recommend a couple things
 
I would actually have to PARSE it in Java... since I can't just evaluate it.
 
>_>
1. implement the system class and make it the only base class, i.e. all other things are a subset
(advanced math (trig?), string operations, etc.)
2. make the types correspond to the base types >_> (int = java ints | python ints)
 
That's the thing: I'll just be evaluating the code on-the-fly. Actually, I'll be running some code, while transpiling other bits of code, then running the result. It's just a hack. It might end up longer than Verbosity... lol
 
that seems like a really bad idea though
 
If I make System.Types.Integer correspond to int in any language, I can't stick on a method.
 
11:24 PM
why not make it basically java with weirder types?
@Zacharý hm, you sure you need it based on java then?
by basde on I mean takes inspiratino from
not implemented in
 
It's not really based on Java, just the name is.
 
ah
well, python ints have methods
 
Because Java is THE oop language people think of
 
but I see what you mean
really? not for me
 
I can't stick on a new method to int...
 
11:25 PM
I think of c++
 
Everything's in a class in Java...
 
well, everything's an object in javascript
that doesn't mean when a C++ writer sees "object" or "struct" they think "JS"
 
I would do JavaScript, but I can't reference a non-existent object.
System.Types.Class.Declare(System.MainClass) wouldn't work because System.MainClass would be undefined
 
ya I get that
 
Wait, can you overload . in Ruby?
 
11:27 PM
no clue
 
If so, that'd be much better as I can stick methods onto native types o_O
method_missing! I'm an idiot!
I'll probably attempt to rewrite the code in Python one time (it borked because of not being able to directly modify parameters, and I was too tired to think so I deleted the code >_<)
And ofc, I want to FORCE anyone programming in Jagony to go through the agony of only using a-z, A-Z, (, ., ) as program characters... mwahaha
 

« first day (24 days earlier)      last day (43 days later) »