Discussion New Language - Discussion

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
Officially working on this now. Currently typing up the definition (basically, what the language has and how it works.) at the moment.

Questions though.
Public or pub keyword?
Private or priv keyword?
Anyone care if I eliminate scopes, and make it 100% library-based?
Does anyone have a better name for libraries!?
Start/end blocks, or { } blocks?
C-Like function declarations (return-type name(arguments...)), or normal JASS-Type declarations (I can do any other kind if anyone wants. As long as people agree on it. I just think that C-Like functions are cool, but that's my personal opinion)?
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
public or [del]pub[/del] keyword?
private or [del]priv[/del] keyword?

Anyone care if I eliminate scopes, and make it 100% library-based?

Please do that. Scopes are lame.

Does anyone have a better name for libraries!?

I prefer the term 'library'. 'package' if you must change it.

Start/end blocks, or { } blocks?

I like both for different reasons.

C-Like function declarations (return-type name(arguments...)), or normal JASS-Type declarations (I can do any other kind if anyone wants. As long as people agree on it. I just think that C-Like functions are cool, but that's my personal opinion)?

I like C-like declarations, but I find the 'void' keyword to be lame.
 

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
> class

I'm planning on a class-type already.

> void' keyword to be lame.

I was going to use null.
 

GetTriggerUnit-

DogEntrepreneur
Reaction score
129
null or void is the same.

If you put none, it looks like the class' initialization. (fail :D)

Rather keep void or null or function.

----

Trufax, but it would be confusing if | had both functions.

Yea* my bad
(the * points my idiocy located into my retarded memory. :O)

----

Maybe an easy way to debug the codes such as:
debug << "C style"; (debugging only)
becomes call BJDebugMsg("Jass style");
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
Maybe an easy way to debug the codes such as:
debug << "C style"; (debugging only)
becomes call BJDebugMsg("Jass style");

The << operators are ugly, if anything you should just use something like:

print "message"

or

print("message")
 

Sevion

The DIY Ninja
Reaction score
413
The << operators are ugly, if anything you should just use something like:

print "message"

or

print("message")

I second this.

> What is wrong with scopes?

Scopes are non-standard. Libraries, Structs, and Classes are more standard.
 

Nestharus

o-o
Reaction score
84
use namespace instead of library : \

use class keyword when dealing with vars+methods
struct keyword for vars only

Really, it should all be struct though, unless you plan on using a hashtable implementation for classes, which I seriously don't suggest ^_^.

>print("message")
No, use printf...


Furthermore, allow access to the lexical environment

Provide common things like collections and heaps
 

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
You know, the more features I implement, the longer it takes to create.
It'll be awhile before I get everything working correctly.

> use namespace instead of library : \

I think I like namespace.

> allow access to the lexical environment

Explain?
 

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
> If there are any {} in this language, I assure you I would rather code with vanilla JASS.

Why?

> Actually, you should just do the compiler. I'd like, if you want, to do an IDE for your compiler.

I'm not quite sure I understand what you mean...
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
If there are any {} in this language, I assure you I would rather code with vanilla JASS.

I may have agreed with you on this point in the past, but I think that since these sorts of blocks are so widely used in actual coding languages, it might be better to use them, in order to make veteran coders (who are new to JASS) able to adapt quickly, as well as make veteran JASSers (people who become familiar with this language) able to switch to other languages.

use namespace instead of library : \

namespace is uglier than library and package.

>print("message")
No, use printf...

...No. Use print. Why add an extra random letter on it?

Actually, you should just do the compiler. I'd like, if you want, to do an IDE for your compiler.

I would also like it if the compiler was independent of the IDE.
 

GetTriggerUnit-

DogEntrepreneur
Reaction score
129
Well, here's a simple comparison.

IDE what you developp in. -- Trigger Editor
Compiler what turns your code into readable Jass.(what ever language is used) -- Jasshelper

Like... Let's say C++ (but that must be do-able in python too)

Code:
int main(int argc, char *argv[])
{
    // argv[0] could be the in file
    // argv[1] could be the out file
}

In my IDE that I would do in Java, I'd call your Compiler


Code:
String[] cmd = new String[3];
cmd[0] = "compiler.exe"; // program
cmd[1] = "in.j"; // input file
cmd[2] = "out.j"; // output file
Runtime.getRuntime().exec(cmd); // execute compiler
// Then done.
 

Nestharus

o-o
Reaction score
84
>...No. Use print. Why add an extra random letter on it?

print format...

>namespace is uglier than library and package.

Not at all.. namespace is a standard used by many languages...

>lexical environment
After processing static text into the lexical crap (lines, structures, etc), let scripting languages access that huge structure for manipulation, like changing what lines are, adding new lines, copying structures, etc.

>Why?
Lye lye, keep it close to JASS... follow JASS syntax like vjass does. You could do a C Style syntax and what not, but keep it in its own block. Only things that should compile plainly are things in JASS style syntax.

So as not to *100% break* older resources, follow current vjass conventions for the current features. You could add on and what not, but the current features should stay supported.

If you were doing 100% entirely dif, then put it in its own language block and go all out.

My suggestion: get vexorian to put the compiler he's working on out so you can fix up vjass and write your own language or w/e (with custom syntax) with its own language block need be.

http://www.wc3c.net/showpost.php?p=1120197&postcount=1775

Please do the right thing ><.
 

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
> My suggestion: get vexorian to put the compiler he's working on out so you can fix up vjass and write your own language or w/e (with custom syntax) with its own language block need be.

Do you mean fix JassHelper, or get him to release the new one he's working on, and add it to that? o_O
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top