sadkeyvanfar / language-lab

Samples of different programming languages

Repository from Github https://github.comsadkeyvanfar/language-labRepository from Github https://github.comsadkeyvanfar/language-lab

🧪 Language Lab

Status: 🛠️ Active – Educational Sample Code Repository


Overview

Language Lab is a curated collection of simple and educational sample programs organized by language. It’s designed to help learners explore and compare the basics of programming syntax and features across multiple languages.


Project Structure

Each language folder contains topics such as:

  • Syntax basics
  • Input/Output
  • Control structures
  • Threading or concurrency
  • System calls (where applicable)

Purpose

  • Provide hands-on learning through runnable code samples.
  • Act as a reference or playground for exploring different programming styles and patterns.
  • Help newcomers understand how core concepts differ or overlap across languages.

Getting Started

  1. Clone the repository:

    git clone https://github.com/your-username/language-lab.git
    cd language-lab
  2. Navigate to the language you want to explore:

    cd c/src/
  3. Compile & run (example for C with Make):

    make
    ./build/loop-example
    

💡 Each language folder may include its own Makefile, IDE tasks, or build instructions.

Requirements

  • C/C++: gcc, clang, or LLVM toolchain
  • Java: JDK 8+
  • Fortran: gfortran or equivalent, ...
  • make or cmake for building (where applicable)
  • Basic understanding of programming fundamentals

Samples & Topics

You’ll find samples grouped under folders like:

  • basic/ – core syntax, types, loops, functions
  • io/ – file and console input/output
  • threading/ – simple multithreading examples
  • syscalls/ – low-level system interactions (C)

License

Licensed under the Apache License. Feel free to reuse, modify, and share.

About

Samples of different programming languages

License:Apache License 2.0


Languages

Language:Java 26.1%Language:Common Lisp 17.9%Language:C 16.2%Language:JavaScript 12.2%Language:Perl 11.8%Language:Clojure 9.2%Language:Kotlin 2.2%Language:Fortran 1.4%Language:Makefile 1.2%Language:Shell 0.4%Language:Ruby 0.2%Language:Pascal 0.2%Language:C++ 0.2%Language:Assembly 0.2%Language:Go 0.2%Language:CMake 0.1%Language:Haskell 0.1%Language:TypeScript 0.1%Language:HTML 0.1%Language:Rust 0.1%Language:COBOL 0.0%Language:Ada 0.0%Language:QuickBASIC 0.0%Language:Python 0.0%