Juliar.Future Function Hoisting

February 14, 2017 | Views: 1847

Begin Learning Cyber Security for FREE Now!

FREE REGISTRATIONAlready a Member Login Here

Juliar.Future (J.F) provides function hoisting.

In each Juliar.Future script, you should have a main() function. If you don’t have this function, that means the file cannot be called directly and must be required.

So let’s create our main function
function main() = {

This means that our main function has a hello. Unlike C/C++ and python, J.F supports function hoisting. That means that you can put functions below and above other functions without getting any uninitialized errors.

So you are allowed to do this:

function main() = {

function hello() = {


This will execute correctly even though function hello has not been defined.

This is a simple and great feature of J.F. So you can put your functions in any order you want without worrying whether they have been read or not.

Quick facts about Juliar:

1) Functional, but not really – Unlike C,JAVA, LISP…Juliar is completely different. It does use Functional ideology but in its own kind of way.

2) Easy to Learn – You can be a coding hero within hours.

3) Cross Platform – The Juliar code you write on one Machine can be used on Windows, Macintosh, and Linux. As well as Android, iOS, Windows Phone, and Xbox

4) Professional – Create High Quality Websites, Professional Articles, and Powerful Presentations.

5) Web Server – You can use Juliar as a web development language. Create powerful websites with dynamic content!

6) Multithreaded – Juliar is automatically multithreaded. However, you can manually control when to use it. Useful for Networking.

7) Sandbox – Juliar runs in a closed environment = Less Memory Exploits.

8) Write Once – We will take care of upgrading the algorithms and using latest technologies. So you don’t have to.

9) Open Source – Juliar is open source and only interpreted or compiled at run time.

10) Growing Community – Juliar has a strong community who are willing to help you with any questions you might have.

Share with Friends
Use Cybytes and
Tip the Author!
Share with Friends
Ready to share your knowledge and expertise?
  1. Question: How can I run .jrl on (Kali) Linux please? if I run “java -jar file.jrl output”, it only gives me output “2”, even if my method is prinLine(“Something…”); in my main function.

    • There are two ways to execute right now:

      java -jar JuliarCompiler.jar test.jrl . false


      ./JuliarCompiler.jar test.jrl . false

      It outputs error code 2 (which will be replaced soon with a message), but all that means is that you don’t have 3 arguments (which is currently required in this alpha version)
      So, in your case it seems to be missing the flag false.

      You might be wondering what false is? It’s basically a compiler flag. Due to current settings, it’s best to run the script in interpreter as the compiler may glitch and produce unexpected results. So it is NOT advised to have true at this point and time.

    • Actually I noticed a small bug. It will output JuliarCompiler.class for whatever you put into output file. Back to the testing phase! Will try to fix this by end of the weekend.

    • Just wanted you to know that we are working out a dependency problem that causes the scripts you make to not run. We are planning to fix it over the weekend.

Comment on This

You must be logged in to post a comment.

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Support Cybrary

Donate Here to Get This Month's Donor Badge


We recommend always using caution when following any link

Are you sure you want to continue?