Reputation
21,922
Next tag badge:
195/100 score
14/20 answers
Badges
5 41 84
Newest
 Cleanup
Impact
~219k people reached

9h
comment What is the knowledge required for kernel/OS development?
You don't need a PhD to work on operating systems, but you need to know C quite well (which is a very different language from Python), and you need a detailed understanding of how computers work. Not just “there's some memory and a CPU”, but rather what Ring-0 is, how interrupts work, how virtual memory space is managed, …. An university-level operating systems course can help you get started, and would give you enough knowledge to create a trivial little operating system on top of a simple architecture.
13h
comment Character or symbol for representing cast opperation
From a type-theory perspective, the concept of “type casts” makes very little sense, since reinterpreting casts as featured in C are a violation of any strong type system. Far more common are conversions between two types A → B, but these are not special since they can be viewed as a B-constructor from an A value or as an ordinary function. Note that the converted object has a different identity than the source object. If casts do not exist or are not special, we do not need (or have) special notation.
1d
revised Why different languages have different syntax?
added 6 characters in body
1d
answered Why different languages have different syntax?
2d
comment Which algorithm will be efficient,if I have Database with all possible recipes of any 1 category?
Assuming you have an SQL database with a table recipies and a table ingredients which represents a n:m relationship between ingredients and recipes, we'd have a fairly simple query with a join: select * from recipes join ingredients on ingredients.recipe_id = recipies.id where ingredients.name = 'potatoes'
Jun
28
comment Cleanest way to represent three states, where one can hold a Key/Value pair, and the other two are empty markers
@Carcigenicate Using Optionals gives no advantage for such a low-level problem. Invalid states can only occur of you make a mistake in implementation, but you can facilitate correctness by encapsulating the Bucket structure and only manipulating its state through methods – which doesn't make it foolproof, but makes it harder to do stupid things. You could lift the state into the type system, but that would seem to be unneeded complication. I called your approach ternary since it involved three states. “Ternary” means “composed of three items”, see also “binary”, “unary”, “n-ary”.
Jun
28
answered Cleanest way to represent three states, where one can hold a Key/Value pair, and the other two are empty markers
Jun
28
comment Feasible solution on the constructions phase of GRASP
Could you explain what precisely you mean by “feasible solution” in contrast to an ordinary “solution”? In the GRASP strategy, the initial solution must solve the problem, i.e. be valid and feasible, but not necessarily locally optimal. E.g. when using GRASP to do pathfinding, the initial solution must be any path connecting the start with the end location, and the local search is then used to optimize this path. A not-correct solution (e.g. a path that ends at some other location) is not useful, since a local search cannot derive a correct solution from it.
Jun
28
answered Lambda Return Type Inference
Jun
28
comment shared or raw pointer c++
I found your question fairly difficult to understand, so I tried to clean it up and illustrate your question with code examples. Please edit the question if I made a mistake or if I misunderstood your question.
Jun
28
revised shared or raw pointer c++
fixed spelling; tried to add example code – please correct if this doesn't match your question.
Jun
28
answered How is a state machine different from any other computer program?
Jun
27
comment Reading file during write on linux
This is platform-dependent, so please specify the OS you are asking about. I know that Linux doesn't provide any implicit locks, but Windows may be different.
Jun
23
comment Testing a Conversion class
For a non-.NET-programmer: could you perhaps explain how these conversions work? E.g. if each conversion method has 20 cases, then yes you do need on the order of 20 test cases per method. If they use some common internal format instead, then you only need to test conversion to and from the common format for each method.
Jun
23
answered Does writing tests make sense for visualization software?
Jun
22
answered Is it possible to avoid abstraction inversion in this scenario?
Jun
21
reviewed Close How much does/should your style imply about your skill in a language?
Jun
21
comment What problem do algebraic data types solve?
What happens when I define class ThirdOption : Option{} and give you a new ThirdOption() where you expected Some or None?
Jun
21
comment How the decision for the division type between integers and real numbers is been made in C?
Are you asking why the language designers of C decided to offer integer division in their language, or are you asking how the C compiler decides whether a division operator refers should be interpreted as integer division or floating point division?
Jun
21
comment What is the term of property when `succ` is defined?
The mathematical term fitting this concept is “successor”, sometimes abbreviated succ. The equivalent concept in the opposite direction is the predecessor, sometimes abbreviated pred.