56 karma · joined February 20, 2019
isn't this just a tessellation basically? GPU-based tessellation is very common, mostly for meshes but can be used for line-like figure too.
It is very hard to find out if the definition already exists or not in the codebase. This can lead to multiple definitions of the same thing or the truth.
anyone has a good way to deal with this?
a lot of time I feel like the diminishing return of a planning is pretty steep for many situations but it's hard to tell how much time we should spend for the planning beforehand. (this is a planning for planning and maybe this itself is over-planning lol).
I personally would like to know when the GPU resources become available (freed) thus still inclined to prefer RC over GC tho.
Resource management becomes much more harmonious and easy to follow.
in addition, if your system requires precise control over when and when not to use CPU, like resource-intensive gaming, browsers, OS, then GC may not be a good choice.
lastly, if you are using GPU via graphics API, I do not know any API that can garbage collect GPU memory but RC can naturally extend memory cleanup code to cleanup GPU memory as well quite easily.
I don't see types as serious tests and I don't think they are robust. let's say that some integer must be between 10 and 100, do you use type checks for this?
I guess what I wanted to say is that, in the long run, compile-time checks may become runtime checks, especially something like enum values where at the beginning, enums are fine choice but soon you will find yourself where you have to store that to a DB etc.
Problem is, moving from compile-time check to runtime check isn't that straightforward in a lot of cases.
later in a project where you know for sure something can be known at compile time, of course I love to check them at compile time.
I don't do that any more. simply because I'm very lazy and also in a lot of cases, those types that I wrote will be replaced by more dynamic representation (e.g. strings) at some point.
struct Foo{
bool some_flag : 1;
bool other_flag : 1;
....
}
?application that deals with highly dynamic data. lots of variants (OR type) in tree/graph. (photoshop's layers come to mind.)
if stronger type systems will ensure performance, Haskell will beat C in benchmarks but that's not the case in most situations.
This folder can only contain JPEG and PNG files, this folder can contain only A or B ....etc.
useful in some cases but I don't think this is not what you want as a default.
I use c++ mainly but when I have to use javascript at work, i really hate it for whatever reason. wonder if other c++ programmers feel the similar way.
as long as competition is in place, I am kinda ok with big companies exploiting(?) free software.