Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
khitchdee
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
by
khitchdee
8y ago
It's not low level access but simplicity and pedal to the metal programming. Sort of like the difference between stick and automatic.
92.
▲
by
khitchdee
8y ago
Sorry, I meant in the microprocessor era when programming became mainstream and stepped out of academia. Before that, there were so few programmers that languages didn't need to develop.
93.
▲
by
khitchdee
8y ago
Well there is. It's the first 'high level' language that replaced assembly programming. All the other languages have added even more high level features, yet none of them have made its existence obsolete. The basic compier tr
94.
▲
by
khitchdee
8y ago
Call me a purist, but I find no reason to have gone beyond C Not C++, not ObjectiveC, nor anything else that followed I find C++ and ObjectiveC add a lot of complexity and the benefits of adding this complexity are very limited I think it w
95.
▲
by
khitchdee
8y ago
"big changes are coming, we'd better get ready!" that seems to suggest someone else other than us is creating thise changes and they are going to catch us unawares. The rate at which change happens in technology is painstakin
96.
▲
by
khitchdee
8y ago
Hits the nail on the head. Kurzweil now works for Google and the whole industry -- Google, Facebook, Microsoft ... loves AI The singularity is complete bullshit created by a highly decorated scientist/inventor. There is so much project
97.
▲
by
khitchdee
8y ago
well. while using some dsp to get the frequencies right makes sense from an analytical point of view, from a more mood oriented standpoint which seems more aligned with the nature of music and its associations with mood it makes more sense
98.
▲
by
khitchdee
9y ago
Very useful list
99.
▲
by
khitchdee
9y ago
Agree. Give the process time. Many people are not very patient with trying to explain things that they consider obvious due to their experience in an area. This slows things down for someone who's ramping up. But over time, you piece t
100.
▲
by
khitchdee
9y ago
As an example of C++ making code reuse a lot easier, consider the Windows platform from a developer's perspective. Before C++, there was this huge library called Win32 in C that contained several hundred functions and data structures t
101.
▲
by
khitchdee
9y ago
Take a pay cut and start on their stack at a junior position. With your experience, you should quickly be able to ramp back up to your own grade/pay level on that stack. Be upfront about your plans. There are companies where your manag
102.
▲
by
khitchdee
9y ago
OK. That makes sense. So it's only a compiler overhead
103.
▲
by
khitchdee
9y ago
Public/private/protected inheritance and access control do not add overhead That's interesting. So does the compiler just put the functions in different parts of the vtable to remember the access control rules. There's n
104.
▲
by
khitchdee
9y ago
In terms of scope OpenJDK would be comparable to Mozilla's mission. So even if Mozilla didn't grow to take it on, a similar sized org could. The point being open source specific Mozilla pattern orgs rather than private corps.
105.
▲
by
khitchdee
9y ago
Partly this depends on the platform. C++ is well supported on Microsoft's .NET platform where you can access all the functionality of the .NET libraries through C++. STL, I guess, is more used on Linux. I would advise against trying to
106.
▲
by
khitchdee
9y ago
OpenSolaris :: Linux NEQ OpenJDK :: C#/.NET or ROR or any other language + SDK.
107.
▲
by
khitchdee
9y ago
The comparison with OpenSolaris is invalid. Java is really useful and uniquely so. Solaris is an also ran. Oracle's pulling out would not be enough to kill the project. Mozilla could easily take it on.
108.
▲
by
khitchdee
9y ago
If your design requires inheritance or virtual functions, C++ is the right choice. But in many cases, when it doesn't, if you still use C++, you'll pay the price of an extra indirection and a much larger memory structure to hold y
109.
▲
by
khitchdee
9y ago
Right. As is speech -- free.
110.
▲
by
khitchdee
9y ago
Right. Code generation has typically been associated with DSLs. Here's one way it could be done simply. Let's say you wanted to automate the process of memory allocation and deallocation. You would need a way to describe to the co
111.
▲
by
khitchdee
9y ago
You're assuming gnerative programming is used to completely replace direct programming. This doesn't have to be the case. It could also be used merely in an assistive role to supplement the ability to write code.
112.
▲
by
khitchdee
9y ago
OK. Wouldn't that indirection add an extra instruction, each time you called a function?
113.
▲
by
khitchdee
9y ago
My point is simply this -- adding protection mechanisms and inheritance to classes neccesitates adding more complexity to the structure used to represent them (such as a vtable) which does add performance overheads. If you dont need those f
114.
▲
by
khitchdee
9y ago
Doesn't a vtable imply an extra level of indirection? You have to find where the vtable is in the object, then the function within the vtable, right? Is that not slower?
115.
▲
by
khitchdee
9y ago
Well, if you override the implementation of a function in a subclass, the runtime has to determine that and load it in at runtime, when you instantiate an object of the subclass. In C there is no runtime.
116.
▲
by
khitchdee
9y ago
That would be cruelty to the cat dancing on the hot tin roof.
117.
▲
by
khitchdee
9y ago
Well, some parts of the generative programming could be built into a tool and you probably wouldn't have to rewrite a generative program each time. So it's not really writing in 2 languages but using code generation to assist the
118.
▲
by
khitchdee
9y ago
Please check your facts. C++ member functions are not as simple as function pointers inside structs.
119.
▲
by
khitchdee
9y ago
Having a mimimum wage law is one thing, but going further than that and mandating how much who gets paid beyond what the market decides is venturing into the wild west of law making -- you never know what you're going to end up with.
120.
▲
by
khitchdee
9y ago
FWIW, Donald Knuth was a proponent of using C over C++ at the time it first came out. He equated C++ with the use of frameworks in writing programs which he thought were a bad idea for the profession as it would dumb it down. C++ does make
More ›