You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -8,20 +8,20 @@ A pure Go port of [Facebook's Yoga](https://github.com/facebook/yoga).
8
8
9
9
Read [tutorial](https://blog.kowalczyk.info/article/9/tutorial-on-using-github.comkjkflex-go-package.html) or look at `_test.go` files.
10
10
11
+
## Status
12
+
13
+
The port is finished. The code works and passess all Yoga tests.
14
+
15
+
The API is awkward by Go standards but it's the best I could do given that I want to stay close to C version.
16
+
17
+
Logic is currently synced up to https://github.com/facebook/yoga/commit/f45059e1e696727c1282742b89d2c8bf06345254
18
+
11
19
## How the port was made
12
20
13
-
You can read a [detailed story](https://blog.kowalczyk.info/article/wN9R/experience-porting-4.5k-loc-of-c-to-go-facebooks-css-flexbox-implementation-yoga.html)
21
+
You can read a [detailed story](https://blog.kowalczyk.info/article/wN9R/experience-porting-4.5k-loc-of-c-to-go-facebooks-css-flexbox-implementation-yoga.html).
14
22
15
23
In short:
16
24
17
25
* manually ported [C code](https://github.com/facebook/yoga/tree/master/yoga) to Go, line-by-line
18
26
* manually ported [tests](https://github.com/facebook/yoga/tree/master/tests) to Go
19
27
* tweak the API from C style to be more Go like. The structure and logic still is very close to C code (this makes porting future C changes easy)
20
-
21
-
## Status
22
-
23
-
The port is finished. The code works and passess all Yoga tests.
24
-
25
-
The API is awkward by Go standards but it's the best I could do given that I want to stay close to C version.
26
-
27
-
Logic is currently synced up to https://github.com/facebook/yoga/commit/f45059e1e696727c1282742b89d2c8bf06345254
0 commit comments