Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4681385y@devTea all this extra time in semi-isolation. may as well make some rookie mistakes in a new language.
on a semi related note, i was starting to think this endless loop was affecting you too. -
The best go fail in my opinion was when it unrolled a really long (million iteration) loop for someone on stack overflow and made a 4gb executable
-
C0D4681385y@SevenDeadlyBugs good to know, i haven't made it to a point of worrying about performance yet, as you can see, im only messing around with 10 iterations at the moment, but ill keep this in mind when i do scale up to real use cases.
-
@SevenDeadlyBugs thats a "tip" that i expected to be common knowledge and was severely disappointed when i learned the most people dont know. If i ever interview someone, thats gonna be one of the questions
-
mr-user13525yArray and linked list are two different thing. Array work by allocating new memory when it size is full and allow random access.
Some language should just implement true array -
@Kashmir I think it's a tree of hashmaps or something equally horrible that involves a hashmap. I think so because if you use string literals as keys it's exactly as fast as numbers, which I can only explain with stringnames and hashmaps.
Related Rants
Go is fast they said, Go is lightweight they said.
package main
import "fmt"
func main() {
var nums []int
for i := 10; i > 0; i++ {
nums = append(nums, i)
i--
}
fmt.Println(nums)
}
# htop
| PID | USER | VIRT | %CPU | %MEM
| 12048 | root | 16.9g | 101.3 | 94.2
WTF is eating my resources to hell and.... oh... oh im a dickhead!
rant
infinite loops are bad
dont do that again
go
golang
such slow
love the hamster
much wow