# Go2hx Work in Progress

**URL:** https://community.haxe.org/t/go2hx-work-in-progress/2821
**Category:** Showcase
**Tags:** macro
**Created:** [December 27, 2020, 12:43pm UTC](https://community.haxe.org/t/go2hx-work-in-progress/2821 "2020-12-27T12:43:38Z")
**Posts on this page:** 1
**Showing post:** 15

<div class="post-metadata">

### Author: ![PXshadow](https://community.haxe.org/user_avatar/community.haxe.org/pxshadow/32/907_2.png) [@PXshadow](https://community.haxe.org/u/PXshadow)
#### Post date: [February 6, 2025, 9:15am UTC](https://community.haxe.org/t/go2hx-work-in-progress/2821/15 "2025-02-06T09:15:33Z")

</div>

# go2hx alpha version 0.1.0 is now released! 🎉

- [Getting started!](https://github.com/go2hx/go2hx/?tab=readme-ov-file#getting-started)
- [Stdlib Api](https://go2hx.github.io/api/)
- [Website](https://go2hx.github.io/)

### Little backstory

_(Feel free to skip if not interested)_  
I started off 2024 thinking it would be the year of a release and that massive improvements would be able to be made in relatively small intervals of time. In the end it was counter productive and caused the project to be in a limbo state, unable to hold to it’s goals.

Regardless improvements did get made and by the end of the year the mid goals for 2024 were starting to get realized.

A push was made to get [Chroma](https://github.com/alecthomas/chroma) a syntax highlighter in Go to get correctly compiled. Although this fell short because of more work needed for specific std libraries like [embed](https://pkg.go.dev/embed) and [encoding/xml](https://pkg.go.dev/encoding/xml), it did get the underlying regex engine it uses called [regexp2](https://github.com/go2hx/regexp2) to start to work. It also helped me make many improvements to the compiler to make this release possible such as a per function regression tracker, full support for goto statements, defer recover patterns, among many other.

### Why release if it’s not finished?

Because it’s able to provide value today, it’s stable where stated, and a release means to me that the project is open to feedback, testing and more regular updates, which it is.

## Sub-specification

_(At time of posting)_

- All language features except, goroutines, channels, and generics.
- All passing stdlibs (automatically updated via CI on the [website](https://go2hx.github.io/)) currently 20 stdlibs.
- No unsafe support and no CGO (C extern system for Go)

### Libs transpiled and released for direct use

## [regexp2](https://github.com/go2hx/regexp2) [[api]](https://go2hx.github.io/regexp2/api/github_dot_com/dlclark/regexp2/Regexp2.html) [[examples]](https://github.com/go2hx/regexp2/blob/master/Example.hx) ( original [[go library]](https://github.com/dlclark/regexp2) )

A full-featured regex engine, based on the .NET engine

```sh
haxelib git go2hx_regexp2 https://github.com/go2hx/regexp2

```

## [Go’s standard library](https://github.com/go2hx/go2hx/blob/master/stdgo) [[api]](https://go2hx.github.io/api) [[examples]](https://github.com/go2hx/go2hx.github.io/tree/master/samples/cases) ( original [[go documentation]](https://pkg.go.dev/std) )

```sh
haxelib git go2hx https://github.com/go2hx/go2hx

```

`stdgo.X`, where `X` is the stdlib, [Table of working stdlibs](https://go2hx.github.io/).

```haxe
trace(stdgo.unicode.Unicode.isGraphic('x'.code)); // true
trace(stdgo.image.color.Color.yCbCrToRGB(81, 240, 90)); // red

```

## Outro of some nice memories along the way

 ![1 week sprint to release](https://community.haxe.org/uploads/default/original/2X/f/faad6c47dc25c2c6e374ff59e0788f340aabe2c7.jpeg)  
 ![depedency splitter creating the deathstar](https://community.haxe.org/uploads/default/original/2X/1/196084751a778105bcdba1803ef9cc2ec21fa8c3.jpeg)  
 ![stairscase progress for a testsuite](https://community.haxe.org/uploads/default/original/2X/5/5ec02107fd09ece30891cdbea621d34b91432b20.jpeg)

 ![Trying out js minifier](https://community.haxe.org/uploads/default/original/2X/6/6f804371633f7d5d1ce8e5046692a73cad5f33be.png)

 ![Lots of CI testing!](https://community.haxe.org/uploads/default/original/2X/d/d181ef826538b900a930b8fe62dcb923c137a949.png)

![regexp2 first time tests running](https://community.haxe.org/uploads/default/original/2X/a/a01db47df80bfd4cfac28abd1f7468836cd58fbd.gif)

Try it out and have fun with it!  
Feedback, issues, ideas are all welcome!

---

_[View the full topic](https://community.haxe.org/t/go2hx-work-in-progress/2821)._
