README: Update motivation
- commit
- aacf22d3a12a45a4789edd1f6cdd671cf668fddf
- author
- jwijenbergh · · 2023-09-28 15:07 UTC
- parent
- 52f4db2
- signature
- GPG Unverified
1A2298F6C34F96E5The key is unknown
1 file · +2 -1
M README.md +2 -1
| @@ -5,7 +5,8 @@ | |||
| 5 | 5 | Autogenerated GTK4+Adwaita bindings for Go leveraging [purego](https://github.com/ebitengine/purego) | |
| 6 | 6 | ||
| 7 | 7 | # Motivation | |
| 8 | - | I created this library because I found that alternative libraries using Cgo had much too slow compilation speed. For my laptop around 15 minutes to build a simple example for [gotk3](https://github.com/gotk3/gotk3) and also [gotk4](https://github.com/diamondburned/gotk4). | |
| 8 | + | I created this library because I found that alternative libraries using Cgo had much too slow compilation speed. For my laptop around 15 minutes to build a simple example (*without build cache*) for [gotk3](https://github.com/gotk3/gotk3) and also [gotk4](https://github.com/diamondburned/gotk4). Whilst this is maybe not a big problem for development, I found it annoying for CI and package building where you would not want to rely on a cache. Additionally, having [Cgo](https://pkg.go.dev/cmd/cgo) involved means harder cross compilation. | |
| 9 | + | ||
| 9 | 10 | This is not a fault for these libraries as CGo compilation is just inherently slow in Go. In this project I want to test a new approach by levering purego which allows you to load libraries using dlopen without needing cgo. | |
| 10 | 11 | ||
| 11 | 12 | Compilation speed currently is around 40 seconds for me on basic examples. | |
| @@ -5,7 +5,8 @@ | |||||
| 5 | Autogenerated GTK4+Adwaita bindings for Go leveraging [purego](https://github.com/ebitengine/purego) | 5 | Autogenerated GTK4+Adwaita bindings for Go leveraging [purego](https://github.com/ebitengine/purego) | ||
| 6 | 6 | ||||
| 7 | # Motivation | 7 | # Motivation | ||
| 8 | - | I created this library because I found that alternative libraries using Cgo had much too slow compilation speed. For my laptop around 15 minutes to build a simple example for [gotk3](https://github.com/gotk3/gotk3) and also [gotk4](https://github.com/diamondburned/gotk4). | 8 | + | I created this library because I found that alternative libraries using Cgo had much too slow compilation speed. For my laptop around 15 minutes to build a simple example (*without build cache*) for [gotk3](https://github.com/gotk3/gotk3) and also [gotk4](https://github.com/diamondburned/gotk4). Whilst this is maybe not a big problem for development, I found it annoying for CI and package building where you would not want to rely on a cache. Additionally, having [Cgo](https://pkg.go.dev/cmd/cgo) involved means harder cross compilation. |
| 9 | + | ||||
| 9 | This is not a fault for these libraries as CGo compilation is just inherently slow in Go. In this project I want to test a new approach by levering purego which allows you to load libraries using dlopen without needing cgo. | 10 | This is not a fault for these libraries as CGo compilation is just inherently slow in Go. In this project I want to test a new approach by levering purego which allows you to load libraries using dlopen without needing cgo. | ||
| 10 | 11 | ||||
| 11 | Compilation speed currently is around 40 seconds for me on basic examples. | 12 | Compilation speed currently is around 40 seconds for me on basic examples. | ||