Making programs??? Creating languages???

xPass

All aboard the xPass Express!
Reaction score
26
How do people actually make installers and applications such as Windshield Installer (how to spell??? :nuts:) and Warcraft III???

How do they create computer languages that support their programs such as JASS, etc.???

How do we know what natives and functions are there in a language when it was first created???

Lastly, how does a program know what is the language talking about and how to activate the functions?


Hopefully some of you can answer this puzzling questions, which might help some people (ESPECIALLY ME!!!) :D
 

UndeadDragon

Super Moderator
Reaction score
447
How do people actually make installers and applications such as Windshield Installer (how to spell??? :nuts:) and Warcraft III???

How do they create computer languages that support their programs such as JASS, etc.???

How do we know what natives and functions are there in a language when it was first created???

Lastly, how does a program know what is the language talking about and how to activate the functions?


Hopefully some of you can answer this puzzling questions, which might help some people (ESPECIALLY ME!!!) :D

1. Installers are usually created by an archive, which is extracted into the correct places on the hard drive.

2. Sub-Programming Languages can be made fairly simply. You just need to interpret the code and convert it into your functions which are built into the program.

3. We know what functions there are in a certain language from the documentation. Every programming language will (at least should) be well documented.

4. A program doesn't really know what the language is talking about. It just understands low level programming. Therefore, when a program is compiled it is actually converted into low level code and the computer can understand this. How to call functions depends on each language, but it is usually just functionName(parameters).
 

xPass

All aboard the xPass Express!
Reaction score
26
3. We know what functions there are in a certain language from the documentation. Every programming language will (at least should) be well documented.
I mean the people who create the language, how do they know it?
 

Slapshot136

Divide et impera
Reaction score
471
pretty much what UndeadDragon said, let me just elaborate a bit

1. they usually also have some options of how the program runs, where to put shortcuts if any, and possibly write some stuff in the registry (maybe like an activation key)

2. sub-languages can be very basic or very complex based on what your intended purpose is - you could look at the B.net commands from wc3 as a very simple programming language (/f a xxx, /w xxx yyy, /time, etc.)

3. when it was first created? the original documentation hopefully, otherwise look at all the libraries that it has (libraries are like a set of functions that usually relate to a specific thing, say networking or graphics) - normally these libraries are expanded and updated as the language evolves

4. it just goes step by step very fast starting with the "main" function - whenever a function is called, it goes to the function, does whatever the function does, and then returns to where it was - this gets more complicated with threads, but generally the same thing applies - the program has no clue if what it will do will cause the system to explode unless you specifically program that in - normally the operating system will catch you from doing anything too bad though (but angry beeps are sometimes to be expected from certain actions)

3. (edit) - either the code is defined to run in an operating system or environment (say .exe files in windows, or java applets in a browser), where windows/the browser has specifications as to what to do with the program, or they look at the hardware and see what it can do and then code such that the hardware can run it - by hardware I generally mean the CPU and its instruction set
 

UndeadDragon

Super Moderator
Reaction score
447
I mean the people who create the language, how do they know it?

If you are talking about the actually programming language, I'll use C++ as an example. When C++ is compiled, it is converted into Assembly (I think). This assembly is then assembled into binary, which the computer's processor can actually run. To create a new high level programming language you would need to be good with a low level programming language such as Assembly.

I would not reccomend it as the couple of months I spent with Assembly in computer architecture were not nice :p
 

tooltiperror

Super Moderator
Reaction score
231
Though, undead, creating a simple language with regexp's can be rather easy with Perl, Python, or Ruby (and probably others).
 

UndeadDragon

Super Moderator
Reaction score
447
Though, undead, creating a simple language with regexp's can be rather easy with Perl, Python, or Ruby (and probably others).

True, but if you want a full language you would have to resort to using a low level language as a base.
 

seph ir oth

Mod'n Dat News Jon
Reaction score
262
Lastly, how does a program know what is the language talking about and how to activate the functions?

Let's start at the nitty gritty that the others left out to answer this one.

You got a wire. You feed it electricity. It is now "ON". This is the basis for all computing.

With that, you can make transistors, clocks, logic gates (AND, OR, XOR, etc.) that can do problematic kinda stuff. If you want to know how a really basic computer works, google-search a 1-bit ALU. A 1-bit ALU can add and subtract binary numbers (0 + 0 = 0, 0 + 1 = 1, 1 + 1 = 1 carry 1). If you put together 1 bit ALU's you can make more complex ALU's that handle larger numbers.

The next step up would be a machine language. This language is really basic programming (e.g. add $s1, $s2, $s3 would add the contents in the s2 and s3 addresses and save it into s1). The addresses' size can be specified by whatever machine language you are using, but most are 32 or 64 bit.

Here's an example machine circuit:

Figure_4.15.jpg


The PC counter feeds the line of code to the instruction memory which reads the 32/64 bits and breaks it up to do its separate things. In this case, the first few bits are instruction lines, which decide what function is executed (jump for loops? add? subtract?), the others are values for addresses or other things (don't wanna get too specific).

So, with machine language, you can form more complex languages. One line of code in a higher programming language can be anywhere from a few lines of machine code to many lines. It's a lot of parsing information, and is quite annoying imo.

If you're truly interested in this stuff, consider looking into computer science/computer engineering fields.
 

xPass

All aboard the xPass Express!
Reaction score
26
A question back: How do the authors of a book know the names of the characters in the book?

This is kinda long ago... Though for your question, it's still easier than creating languages :banghead:
 
General chit-chat
Help Users
  • 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 The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      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