Skip to main content
Andreas's user avatar
Andreas's user avatar
Andreas's user avatar
Andreas
  • Member for 8 years, 4 months
  • Last seen more than a month ago
awarded
Loading…
awarded
comment
Are there accepted alternatives to having boilerplate (e.g. copyright, OSS, xport ctrl, classification) in the sourcecode itself?
@amon Of course I've discussed it with them, I'm not an idiot. They've requested presentation of alternative technical solutions and do not look fondly upon homebrewn alternatives since there is no reference as of how it will be judged in court (if at all). Hence asking for widely spread, "to big to fail" technical solutions, to present to the legal counsel. And yeah, I don't trust randos at all, but at least they can provide some perspective not attainable from friends and collegues.
awarded
comment
Are there accepted alternatives to having boilerplate (e.g. copyright, OSS, xport ctrl, classification) in the sourcecode itself?
Agreed. Voting answered for point 3 as xprt ctrl and classification cannot be centralized for the project. I also need some guard against losing the license along the way because of "accidents" - user error or ignorance. Git hooks should work if the hooks are implemented by a private proxy Git server, and the metadata carried by the lifecycle tool accessible by the server... Maybe I'm lazy, are there examples of wide-spread software using mentioned strategies? Hopefully at least one of above mentioned strategies are "to big to fail" - if MS/Google/IBM/etc does it, so can I.
comment
Are there accepted alternatives to having boilerplate (e.g. copyright, OSS, xport ctrl, classification) in the sourcecode itself?
@amon To a degree, yes, because interpretation is internal company policy. However the company is doing this because of international (primarily US) laws, and fear of being sued, sanctioned or even inprisoned. That fear is common for all companies.
Loading…
comment
Find nth best path in graph G from node A to node B (without loops)
looks good. way to complex to implement within a days work (if I do it myself), and I couldn't find any trustworthy implementation this side of the millenia, so it looks like I'll have to make an effort at some point. like you say, given the graph is regular I can probably use heuristics to narrow the search
revised
Loading…
comment
Find nth best path in graph G from node A to node B (without loops)
@Jules I edited the question to clarified that the optimizer will only need a few of the best paths from a to b. Path length is generally not very long either (edit pending) which should allow for solution to stay within reasonable resource limits. The network is not random at all, it is a grid where each cell is a node having axis aligned arcs to other nodes, unless there are obstacles.
revised
Loading…
Loading…
comment
How can I create and enforce contracts for exceptions?
If a developer uses C() without looking at the documentation the developer does not deserve success.
awarded
comment
Is power-of-two bits per word "convenient"? If it is, why is that?
@gnasher729 Please don´t insult RGB565. With just a little dithering it looks great ;-)
comment
Is power-of-two bits per word "convenient"? If it is, why is that?
@vartec The article and quote says "The commonly used sizes are usually a power of two multiple of the unit of address resolution (byte or word)" and "most modern computer designs have word sizes (and other operand sizes) that are a power of two times the size of a byte." I read "word size" is measured in bytes, not bits. There is no rule about word size in bits is or should be powers-of-2 in the article.
comment
Is power-of-two bits per word "convenient"? If it is, why is that?
What is a "bitmap of packed words"? Does HighColor suit that description?
comment
Is power-of-two bits per word "convenient"? If it is, why is that?
This is not my area of expertise but it sounds like a valid reason for power of two byte AND word sizes. I imagine you have to worry less about UB too. For a shift 33-bits would require 6-bit opcode, but only about half of the possible values (0-32) have useful meaning. Would you agree?