-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More text, outline of further writing.
- Loading branch information
1 parent
13aa147
commit 8ed7608
Showing
1 changed file
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,31 @@ | ||
# kilo text editor in Golang | ||
|
||
[Build Your Own Text Editor](http://viewsourcecode.org/snaptoken/kilo/index.html) | ||
only in Go instead of C. | ||
I did [Build Your Own Text Editor](http://viewsourcecode.org/snaptoken/kilo/index.html) | ||
only in Go instead of C. I tried to keep the spirit of `kilo`: a single | ||
file of source code, everything as simple as possible. | ||
|
||
I tried to check in after completing each step, but | ||
sometimes I combined a few steps, or fixed bugs between | ||
steps. | ||
|
||
# Compare C and Go | ||
|
||
I have some experience with C, but I'm learning Go. I'd like | ||
to use this project to compare the two languages, as well as | ||
to internalize Go. | ||
|
||
Using [sloccount](???) | ||
|
||
CKilo: 971 lines of ANSI C | ||
GoKilo: sloccount doesn't work | ||
|
||
## Better | ||
|
||
Go's `range` operator made most iterations much simpler. | ||
|
||
Go's standard packages had a type `bytes.Buffer` that | ||
replaced `struct ab` in the C version. | ||
|
||
## Worse | ||
|
||
## Just Different |