Genetic Algorithms library written in Go / golang

Overview

Description

Genetic Algorithms for Go/Golang

Install

$ go install git://github.com/thoj/go-galib.git

Compiling examples: $ git clone git://github.com/thoj/go-galib.git $ cd go-galib $ cd examples $ go build floating.go $ ./floating

Use

See example/*

You might also like...
Chip-8 emulator written in Go
Chip-8 emulator written in Go

Welcome to Chippy 👋 Chippy is a CHIP-8 emulator that runs Chip-8 public domain roms. The Chip 8 actually never was a real system, but more like a vir

Mini lisp interpreter written in Go.

Mini Go Lisp Mini lisp interpreter written in Go. It is implemented with reference to the d-tsuji/SDLisp repository written in Java. Support System Fu

❄️ Elsa is a minimal, fast and secure runtime for JavaScript and TypeScript written in Go

Elsa Elsa is a minimal, fast and secure runtime for JavaScript and TypeScript written in Go, leveraging the power from QuickJS. Features URL based imp

🏃 An x86-64 assembler written in Go.

asm An x86-64 assembler written in Go. It is used by the Q programming language for machine code generation. Architectures Linux x86-64 (ELF binaries)

A Lisp-dialect written in Go
A Lisp-dialect written in Go

Lispy ✏️ Intro Lispy is a programming language that is inspired by Scheme and Clojure. It's a simple Lisp-dialect I built to better understand Lisp an

Expr – a tiny stack-based virtual machine written in Go

Expr – a tiny stack-based virtual machine written in Go The executor is designed to interpret a simple expression language and it's useful in delegati

A standalone nREPL/prepl client written in Go and heavily inspired by Grenchman

Trenchman A standalone nREPL/prepl client written in Go, heavily inspired by Grenchman Trenchman is a standalone nREPL/prepl client, which means that

T# Programming Language. Something like Porth, Forth but written in Go. Stack-oriented programming language.

The T# Programming Language WARNING! THIS LANGUAGE IS A WORK IN PROGRESS! ANYTHING CAN CHANGE AT ANY MOMENT WITHOUT ANY NOTICE! Something like Forth a

◻️ A Whitespace interpreter written in Go.

whitespace-go A Whitespace interpreter written in Go. Whitespace is a esoteric programming language made up entirely of spaces, tabs, and newlines. Th

Comments
  • Upgrade for go 1.2 compatibility

    Upgrade for go 1.2 compatibility

    This is an upgrade that, in short:

    • Replaces container/vector with slices, when appropriate, or container/list otherwise
    • Brings the examples namespace up to par with modern go 1.2 installation

    I made some assumptions about how you were using the container/vector (now deprecated), but the program still appears to run. I went ahead and upgraded the examples, too. They're in the github.com/thoj namespace so you can install directly from there and use anywhere on the system.

    That's about it. I'd appreciate if you could review my update to make sure it looks clean -- I left the original code commented out.

    opened by booherbg 1
  • Add GAMutatorRandom to replace one gene with a random one.

    Add GAMutatorRandom to replace one gene with a random one.

    This is not super-efficient because it creates a complete randomized genome, but it's good for my current needs and does not require to change the GAGenome interface.

    opened by subruber 0
  • Fix MutatorMulti for > 2 mutators and make code more idiomatic

    Fix MutatorMulti for > 2 mutators and make code more idiomatic

    Hello, I have fixed an issue with the GAMutatorMulti. The current code does not select the mutators with equal probability except in the case of 2 mutators (and the trivial case of 1 mutator).

    I also cleaned up the code a bit, made it more idiomatic and added a test (which I used to test my fix).

    Thanks!

    opened by subruber 0
  • Probably broken

    Probably broken

    When I launch examples/ordered_int.go it writes down 10 absolutely same Genomes, and all are mostly wrong ... (for example: [0 1 2 16 6 13 3 5 10 9 8 11 4 14 15 7 12] with fitness 88.00)

    opened by Hinogary 0
Owner
Thomas Jager
Thomas Jager
Gentee - script programming language for automation. It uses VM and compiler written in Go (Golang).

Gentee script programming language Gentee is a free open source script programming language. The Gentee programming language is designed to create scr

Alexey Krivonogov 100 Oct 11, 2022
A BASIC interpreter written in golang.

05 PRINT "Index" 10 PRINT "GOBASIC!" 20 PRINT "Limitations" Arrays Line Numbers IF Statement DATA / READ Statements Builtin Functions Types 30 PRINT "

Steve Kemp 289 Nov 23, 2022
A simple virtual machine - compiler & interpreter - written in golang

go.vm Installation Build without Go Modules (Go before 1.11) Build with Go Modules (Go 1.11 or higher) Usage Opcodes Notes The compiler The interprete

Steve Kemp 260 Nov 16, 2022
interpreter for the basic language written in golang

jirachi interpreter for the basic language written in golang The plan supports the following functions: Arithmetic Operations (+, -, *, /, ^) Comparis

菜菜 6 Sep 17, 2022
ReCT-Go-Compiler - A compiler for the ReCT programming language written in Golang

ReCT-Go-Compiler A compiler for the ReCT programming language written in Golang

RedCubeDev 7 Nov 20, 2022
ReCT-Go-Compiler - A compiler for the ReCT programming language written in Golang

ReCT-Go-Compiler A compiler for the ReCT programming language written in Golang

null 8 Nov 17, 2022
A POSIX-compliant AWK interpreter written in Go

GoAWK: an AWK interpreter written in Go AWK is a fascinating text-processing language, and somehow after reading the delightfully-terse The AWK Progra

Ben Hoyt 1.6k Nov 17, 2022
A basic Forth parser written in Go.

GoForth ======= I got really interested in Forth and thus I began making a parser, of sorts, in Go. Though I don't intend for it to catch on, it's st

Artem Titoulenko 21 Mar 1, 2022
A customisable virtual machine written in Go

== About GoLightly == GoLightly is a lightweight virtual machine library implemented in Go, designed for flexibility and reuse. Traditionally popular

Eleanor McHugh 217 Nov 16, 2022
A dialect of Lisp extended to support concurrent programming, written in Go.

LispEx A dialect of Lisp extended to support concurrent programming. Overview LispEx is another Lisp Interpreter implemented with Go. The syntax, sema

null 181 Nov 22, 2022