Skip to content

krondorl/polyglot-programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polyglot Programming

These are practice tasks based on multiple programming languages simultaneously.

Inspiration

I was inspired by ThePrimeagen's course "Polyglot Programming: TypeScript, Go, & Rust" to start this repository.

Language

TypeScript, Go, Rust and Java are currently in this repo, but I might add more languages later.

Source Code

The code is in the src/ folder.

Installation of Programming Language Tools

First, the TypeScript, Go, and Rust tools must be installed.

Running the Code

Go to the language folder then execute the following:

Typescript

  1. npm install (for the first time to install packages)
  2. npm run dev (to run the program)

Go

go run .\filename.go for example: go run .\dog_age_calculator.go

Rust

cargo run

Java

mvn compile
mvn package
mvn exec:java -Dexec.mainClass="com.yourpackage.MainClass"

C

gcc -o dog-age-calculator main.c

Haskell

ghc .\main.hs

License

Please see the LICENSE file.

History

Started in March, 2024.

Icon Credits

Icons are used from devicons / devicon under MIT license.

The MIT License (MIT) Copyright (c) 2015 konpa.