Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rian
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
rian
13y ago
Ah, I don't think ref counting is generally considered GC. It's more like RAII and used in C++ elsewhere via shared_ptr.
62.
▲
by
rian
13y ago
I'm a bit skeptical of the results of that paper without the seeing the source code and in what contexts they are performing the comparison. One can always find situations where one scheme is faster than the other but I'm not tota
63.
▲
by
rian
13y ago
Weak ptr/reference. Also I would say that it's very uncommon to do/need something like this so it shouldn't be cited as an reason for cycles to be generally handled.
64.
▲
by
rian
13y ago
My point is that, what GCs do at runtime (discover garbage) can be done statically in all of these cases. The sole reasons GCs do that work at runtime is because of cycles. Cycles aren't common at all and the answer shouldn't be &
65.
▲
by
rian
13y ago
Yes I think you would use a ref counted resource in that case. For your tangled mess of database connections I can't imagine ref counting not being adequate in those scenarios as well.
66.
▲
by
rian
13y ago
1. Can you give an example of some of these systems? 2. Designing your code in such a way that requires it to invoke the GC seems counter-productive. If your algorithm is producing a bunch garbage that is statically known, why not just rele
67.
▲
by
rian
13y ago
Classic RAII in C++ is a limited form of ref-counting (only one ref). I have to disagree with your second statement, ref-counting is extremely fast. If you consider it a GC then it's the fastest GC. It's also deterministic and d
68.
▲
by
rian
13y ago
Examples of a situation where you don't want a resource associated with a variable/storage location? Global variables exist and can be used to hold resources. If you have a resource that's not associated with any single funct
69.
▲
by
rian
13y ago
Naked New/delete have been taboo since auto_ptr hit the scene.
70.
▲
by
rian
13y ago
This is totally on point. Ref-counting / RAII is the only sane way to do resource management. It's super lightweight and easy to understand. The vast majority of resources are short-lived and don't create cycles. Our garbage
71.
▲
by
rian
13y ago
I'm not totally sure what the intention of this article is. Is it to deter people away from using node as an application platform? Is it to deter people away from web programming in general? Is it to deter people away from using Macs?
72.
▲
by
rian
13y ago
This is already the case in Haskell. Look up functor
73.
▲
by
rian
13y ago
Article/media is a bit sensationalistic in describing this as an early computer. The programming language (a list of letters) doesn't support arbitrary logic, branching and doesn't have a notion of memory. In that way, it
74.
▲
Davfuse: FUSE file systems as WebDAV servers
(github.com)
1 points
by
rian
13y ago
|
0 comments
75.
▲
by
rian
13y ago
Sorry, I knew it was intentional but I mean, despite the sarcasm, it still feels condescending. Just the pure existence of an article with the title "How to work with women," no matter how accurate, would still be condescending and bigoted.
76.
▲
by
rian
13y ago
Is it just me or is this article a bit condescending? This makes it seem like software engineers are exotic creatures that normal people require a guide like this to work with. What if someone made "How to work with PMs" or better yet "How
77.
▲
by
rian
14y ago
awesome post! one suggestion: following your explanation it seems like the type constructors are more responsible for determining whether it is sum or product type instead of the data constructors. this tripped me up when i was trying to fi
78.
▲
Plop: Low-overhead profiling for Python
(tech.dropbox.com)
42 points
by
rian
14y ago
|
9 comments
79.
▲
by
rian
14y ago
this also exists if you're looking for something that is compatible with wsgi and supports intelligent http caching https://github.com/dropbox/dropboxwsgi
80.
▲
Dropboxwsgi: http server on top of dropbox
(github.com)
2 points
by
rian
15y ago
|
0 comments
81.
▲
by
rian
15y ago
goroutines = (poorly implemented) cheap threads threading (or CSP) is nothing new conceptually. yes, i agree, the go language has popularized a cheap threading implementation but the same design concepts we've applied to unix processes and
82.
▲
by
rian
15y ago
people who program actually have a lot to learn from the fashion industry. trends are fine as long as trends are iterated on quickly. in comparison, it's taken programmers 15 years to make the half-assed-jump from java to go. and even then,
83.
▲
by
rian
15y ago
i truly believe go contributes negative work to society. it's basically C/C++/Java/C# with syntactic sugar except it's different enough to get bored programmers to waste their precious time reporting all their code. if you want to learn a n
84.
▲
Hilary Mason Speaks at Dropbox
(tech.dropbox.com)
7 points
by
rian
15y ago
|
0 comments
85.
▲
by
rian
15y ago
sweet this is what i use dropbox for!
86.
▲
by
rian
15y ago
hey jerrya, this is fixed in the beta version available here: http://forums.dropbox.com/topic.php?id=44811 . it's awesome.
87.
▲
by
rian
15y ago
IMHO i think node.js sucks because it forces you to manually pass callbacks around. can't it remember my call site for me and use coroutines or call/cc or yield or something? even fork() exists on UNIX (or pthread_create()). why is passing
88.
▲
by
rian
15y ago
look dude, you're right. monads are freaking awesome. it's because a lot of things in CS can be shown to "be monads", it's called turing completeness. http://en.wikipedia.org/wiki/Turing_completeness unix pipes as monads: http://okmij.or
89.
▲
by
rian
15y ago
sigh, http://boost-spirit.com/home/
90.
▲
by
rian
15y ago
the simple use of "Either" does not instantly qualify something as "monadic" you know what else is monadic? NULL pointers. oh wait, you know what else is monadic? unix pipes. you know what else is monadic? CPP. really old shit. just because
More ›