Viewing profile — letzjuc
letzjuc
HN member- Joined
- Sun, Jan 26, 2014, 11:35 PM UTC
- HN karma
- 57
- Public activity
- 24 items
- HN profile
- View on Hacker News ↗
About letzjuc
No profile information was provided.
Recent public activity
-
comment
Comment #7407212
> how a container is searched should be abstracted away in the container's implementation lol, no, god no. I think you got the STL completely wrong.
-
comment
Comment #7347960
Indeed. It should be: >TL;DR: concurrency is unspecified in _C99_. Since it is specified in C11's memory model.
-
comment
Comment #7317949
Anyone knows why anyone would impose these limits to crowdfunding?
-
comment
Comment #7316753
In a non-deterministic garbage collector memory _might not_ be released when the last reference goes out of scope (and this is often the case).
-
comment
Comment #7316742
forcing strict evaluation feels like a mess, template haskell feels like a mess, debugging space leaks feels like a mess, not to mention that the haskell learning curve is very hig…
-
comment
Comment #7315733
Do that and tell us how many people use your language. We'll be waiting.
-
comment
Comment #7315697
Why use new/delete when you have make_shared and make_unique? Like 99.99999999% of the time you can use those. Like the only situation where I think they might be not enough is for…
-
comment
Comment #7315646
> And reference counting also renders the point of determinism moot - now you never know if releasing a reference while trigger freeing a resource. You know that releasing the last…
-
comment
Comment #7315540
>You asked for a situation where the lifetime of a resource can't be directly tied to the lifetime of a single storage location. I don't think I asked for that but correct me if I …
-
comment
Comment #7315513
The solution above works even if your graph has cycles. Of course if you know that it doesn't you can just build the graph with unique_ptrs.
-
comment
Comment #7315444
It's simple. The key is that something has to have _ownership_ of the products. [1] User decides to view a couple of orders. Orders reference products. Those products are managed b…
-
comment
Comment #7315383
Could you elaborate?
-
comment
Comment #7315366
I fail to see why you need cycles' support for that.
-
comment
Comment #7315330
Have a vector of shared_ptr that own the objects in the graph and build a graph with weak_ptr ? Removing an object is just as easy as removing an element from the vector. (If you t…
-
comment
Comment #7315251
Then the lists should only have a weak_ptr to the object. Something is handling both list [1], that something could own the object, or maybe something external to that. Giving owne…
-
comment
Comment #7315237
Because it is deterministic? (i'm just guessing that what you call "proper" garbage collector is non-deterministic). Furthermore, the only "advantage" I see in garbage collectors i…
-
comment
Comment #7311794
In Germany I get paid around 3.500 Euro brutto per Month for pursuing my PhD at my university. Same conditions as the parent post: expected duration 5 years, 20% work time dedicate…
-
comment
Comment #7293676
well there is clang-format and clang-tidy and they are really easy to set up in CMake (I use "make format").
-
comment
Comment #7285654
This is no gotcha; he deliberately shoots himself in the foot by using a "weird" integer type. The right solution is to use value_type from container/iterator_traits (that is what …
-
comment
Comment #7269653
> but I don't think "Run your code through a formatter when you're done hacking it together" is a viable, maintainable, or scalable policy. Just hook clang-format or clang-tidy wit…
-
comment
Comment #7205774
Yes, it does. Drepper's two points on the mails are the same points I made above: - your code is not valid C code, fix that. - these changes are pointless, since _unused0 could cre…
-
comment
Comment #7205702
In ISO C (7.1.3): All identifiers that begin with an underscore are always reserved for use as identifiers with file scope in both the ordinary and tag name spaces. In ISO C++ (17.…
-
comment
Comment #7205663
Well, I'm sorry to disagree with you but Drepper is right. In C and C++ identifiers starting with an underscore are reserved for the implementation. Standard library implementors d…
-
comment
Comment #7127667
Disclaimer: this is a rant, it is obvious that I don't like OpenCL and that I think that it was designed by monkeys so take it with a grain of salt. In short: don't learn OpenCL. B…