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
963
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.
  • Varine Varine:
    Which is unique I guess.
  • The Helper The Helper:
    Actually I was just playing with having some kind of mention of the food forum and recipes on the main page to test and see if it would engage some of those people to post something. It is just weird to get so much traffic and no engagement
  • The Helper The Helper:
    So what it really is me trying to implement some kind of better site navigation not change the whole theme of the site
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top