Skip to content

Instantly share code, notes, and snippets.

View jefvel's full-sized avatar
🥚

Aksel jefvel

🥚
View GitHub Profile
@ZwodahS
ZwodahS / how_to_build_for_mac_haxe_heap.md
Last active July 6, 2022 07:37
How to build .app for Haxe/Heaps

How to build .app for Haxe/Heaps

Preparing your game

Normally you would load your resources from the same directory as your binary, but when building for Mac, you will have to do it slightly differently. Instead of loading your res from ., your should load it from ../Resources/.

Mac .app structure

Game.app
|_Contents
  |_Info.plist
@haxiomic
haxiomic / ObjectPool.hx
Last active June 28, 2024 03:42
Structure of Array and Array of Structures in Haxe
/**
* ObjectPool is a type building macro to create array-of-structure or structure-of-array pools.
* With the intention being to improve access performance, both in CPU cache coherence and by avoiding the GC
*
* This implementation is a minimal working proof of concept
*
* Improvements you may want to make
* - Support deallocation of instances and space reclaiming
* - Replace haxe.io.Bytes because field access has overhead
*
@Yanrishatum
Yanrishatum / hxsl-cheatsheet.md
Last active July 21, 2025 06:20
HXSL cheat-sheet

HXSL cheat-sheet

This is a WIP of a cheat-sheet that I will finish Eventually™

Types

Mapping of the shader types to Heaps types:

Float = Float
Int = Int
Bool = Bool
@daryltucker
daryltucker / Archlinux-usr_local.mkd
Created April 16, 2015 02:23
/usr/local/ on Archlinux

/usr/local on Archlinux

  1. Enable /usr/local/lib/
    • echo '/usr/local/lib' > /etc/ld.so.conf.d/usrlocal.conf
    • ldconfig
  2. Enable /usr/local/bin/ /usr/local/sbin/
    • Make sure both of these are in your PATH variable in /etc/profile