<commit_before># halk2

Live coding extension for Haxe programming language.

Supported targets: flash, neko, html5, cpp(desktop)

------

## Installation

- haxelib git halk https://github.com/profelis/halk2.git
- goto haxelib/halk/(version)/
- `cd haxelib && haxe build.hxml`  // generate run.n


## Usage

#### Default build (without halk magic)

`haxelib run halk build.hxml` // simple haxe project

or

`haxelib run halk test flash` // openfl project

#### First build (magic starts here) (additional args: --no-inline)

`haxelib run halk ... -halk`

#### Incremental build (skip all steps, only haxe build) (additional args: --no-output --no-inline)

`haxelib run halk ... -halka` // allow -halk + random char (halk3, halke, halki, etc)

## Manual usage (not recommended for openfl/lime projects)

- Set magic define `-D halk_angry`
- Build with `--no-inline` flag
- Rebuild with `--no-inline --no-output` flags

### Recommends

Useful compiler flags `-debug -dce no  --connect 4444`

for lime project

```<haxeflag name="-debug"/>
<haxeflag name="-dce no"/>
<haxeflag name="--connect 4444"/>```

More info about `--connect` http://haxe.org/manual/cr-completion-server.html 

### Known problems

If you see `EUnknownVariable(__dollar__#####))` set `--no-inline` (autoset in `haxelib run halk`)<commit_msg>minor<commit_after># halk2

Live coding extension for Haxe programming language.

Tested targets: flash, neko, html5, cpp(desktop)

------

## Installation

- haxelib git halk https://github.com/profelis/halk2.git
- goto haxelib/halk/(version)/
- `cd haxelib && haxe build.hxml`  // generate run.n


## Usage

#### Default build (without halk magic)

`haxelib run halk build.hxml` // simple haxe project

or

`haxelib run halk test flash` // openfl project

#### First build (magic starts here) (additional args: --no-inline)

`haxelib run halk ... -halk`

#### Incremental build (skip all steps, only haxe build) (additional args: --no-output --no-inline)

`haxelib run halk ... -halka` // allow -halk + random char (halk3, halke, halki, etc)

## Manual usage (not recommended for openfl/lime projects)

- Set magic define `-D halk_angry`
- Build with `--no-inline` flag
- Rebuild with `--no-inline --no-output` flags

### Recommends

Useful compiler flags `-debug -dce no  --connect 4444`

for lime project

```<haxeflag name="-debug"/>
<haxeflag name="-dce no"/>
<haxeflag name="--connect 4444"/>```

More info about `--connect` http://haxe.org/manual/cr-completion-server.html 

### Known problems

If you see `EUnknownVariable(__dollar__#####))` set `--no-inline` (autoset in `haxelib run halk`)
`-debug` required for `cpp` target 
{'fraction_non_alphanumeric': 0.15602568945976578, 'fraction_numerical': 0.009066868152625614, 'mean_word_length': 3.6784452296819787, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2573925', 'n_tokens_mistral': 985, 'n_tokens_neox': 921, 'n_words': 292}