Discussion New Language - Discussion

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
In another thread, someone commented about having someone else work on vJASS (at least that's what I think he implied), so I replied that I had been planning to make a language built specifically as a "holy crap, I'm bored so I'm making this" kind of project.

But for an hour or so, I started thinking.
We could really, REALLY use a new language. cJASS is broken last I heard, and it seems vJASS has a lot of bugs (I don't pay attention to this stuff unless it directly affects me, so meh. :/ ), and each are developed by a single person.

I personally believe this is very inefficent, and by making a new language, with a team of people working on it, we can create a brand-new language, which has minimal bugs and/or issues, has frequent updates, cross-platform, and has the features people want.

So I mainly want to ask this: Would you want a brand new language, which has all the features that vJASS currently has (and cJASS, possibly.), built into a fast compiler, which has as few as possible bugs (hopefully, at least.).

(Now, despite what I had said about having a team work on this, I'd be more than happy develop the language and build the parser myself. I just need input on features.)

PS: This will be written in C, and will be as cross-platform as possible.
 

Laiev

Hey Listen!!
Reaction score
188
acceptable but what exactly you want to make? i mean, new methods to do things and those things already destroy/remove/null things to prevent bugs? or i don't get what you want :banghead:

because some extra language = more things to people learn
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
I'm fine with vJass right now

not really in the mood to learn everything all over again
 

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
Because Vexorian is lazy, maybe? Or is unwilling to add things.

I'd make this as close as possible to vJASS, in terms of features, so it wouldn't be hard to learn (though I'll likely have a more features).
 

Laiev

Hey Listen!!
Reaction score
188
like <example> everything you just start any variable with location/group, then start some script which will check when the endfunction come and already remove/destroy that location/group and null then without any other command?
 

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
Erm, sorry. Not sure I understand what you mean.
Your saying something about automatic leak-checking?
I could possibly do that, if I can find an efficent way to do so.
 

Laiev

Hey Listen!!
Reaction score
188
yes, is a leak-checker-remove


something like this:

JASS:
function Test takes nothing returns nothing
    local location point

this will run other script in the 'new language'
JASS:
&#039;save&#039; location point in P

then continue the trigger
JASS:
...
    call ...
    call ...
endfunction

when the save map read the 'endfunction' the script will search for EVERY thing saved in the script and will clear and remove <just like newgen, when you save the map, it convert every vjass to jass>
JASS:
&#039;load&#039; location point from P
call RemoveLocation (point)
set point = null
 

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
> 'new language'

Just call it "X Code" or something like that for now. Easier than "new language".

And yes, that should be perfectly possible, and it's very likely I'll add it.
 

Nestharus

o-o
Reaction score
84
Personally, I'd be happy if I could code jass using an interpreted language and have access to a lexical object that contained the environment : |.

Also, one time extraction of map archive depending on what I'm using (war3map.j, etc) and one import.

If the core is around this idea, that'd be awesome. The interpreted language could be written using #s to signify preprocessing. Also the scripts should know where they are in the lexical environment (static text). Interscript communication (all one file), and etc.

The language you'd write would work in this core and be like a standard distribution for extending JASS.

Make it like this and that will be golden : ). I suggest Lua as Grimoire already uses it... ><

And use this distribution please: http://luaforwindows.luaforge.net/

And be sure to rewrite stuff like ObjectMerger to work with 1 import concept (should be inside of the core).

I'm fine with vJass right now

not really in the mood to learn everything all over again

lol... vjass is so screwy. cJASS and Zinc are more screwy though ^^.
 

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
Well, I was personally thinking of creating a whole new language, with vJASS like features (of course, I'd add structs, a library-like implementation, storage enhancers, etc), and then adding some way to add new scripting languages, such as Lua, or Euphoria (the one you've been talking about), and others.

I'm not 100% sure on how to do this yet. I've got a lot of research to do.
 

Romek

Super Moderator
Reaction score
964
Don't forget that the only language Wc3 can read is vanilla JASS. Whatever you do will need to be able to compile to that; nothing more, nothing less.
 

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
Yes, thank you. I'll be sure it makes valid code. Even if it takes months of working on it.
 

Nestharus

o-o
Reaction score
84
Yes, thank you. I'll be sure it makes valid code. Even if it takes months of working on it.

if it takes months, sc2 will be out within 2-3 months of you doing your first release, hence the reason I mentioned doing a core that could be applied to anything and working off of that.. ><

Make your stuff reusable or you'll regret it later : D.
 

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
Well, I've been thinking of making the parser read a simple XML file (or something like it), which actually defines the language, and have the parser output code based on the XML files definitions.

How's that sound?
 

Nestharus

o-o
Reaction score
84
uh huh, but you should replace preprocessing directives in all languages (#) with an interpreted language that's part of the core.. : |, as well as lexical environment.
 

tooltiperror

Super Moderator
Reaction score
231
Make C++ loops.

JASS:
     for(int x = 0; X&lt;10; X++)
          {
               call BJDebugMsg(I2S(x))
          }


Also, maybe a global variable keyword?

JASS:
 function global takes nothing returns nothing
     global integer x = 0
 endfunction


Or, maybe, a global function call.

JASS:
 function global takes variable variable, string name, value value, returns nothing
     globals
        variable name = value
     endglobals
 endfunction


Something to that effect, I think it would be possible, you just have to add some fancy stuff. Still an idea.

Edit: Me, and maybe Weep, could beta test for Macs, if you go through with it.

EditEdit: And prettier text macros, please? Maybe, a keyword, or a better syntax? Maybe with asteriks?

JASS:
 *textmacro example *unit
     call KillUnit(*unit*)
 *endtextmacro
 

Jesus4Lyf

Good Idea™
Reaction score
397
Or, maybe, a global function call.

JASS:

 function global takes variable variable, string name, value value, returns nothing
     globals
        variable name = value
     endglobals
 endfunction
I like how that doesn't make sense.

>yes, is a leak-checker-remove
I like how that changes what the map does. Nothing in WC3 actually leaks, thanks to the FogState hashtable --> agent thing. What if you purposely "leak" a sequence of locations, so that you can iterate through handle ids later and retrieve them for use?
 

tooltiperror

Super Moderator
Reaction score
231
Of course it doesn`t.

It was almost thinking without logic, if you will.

The idea was thinking of C in JASS with the JASS and C misfigured.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      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