Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mbel
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
181.
▲
by
mbel
9y ago
Perhaps. JIT compiler has to care deeply for compilation time. For AOT compiler compilation time is a little bit less pressing problem which leaves some space for optimization passes that take too long for JIT.
182.
▲
by
mbel
9y ago
In the second case it's AOT (ahead of time) not JIT (just in time) compiler.
183.
▲
by
mbel
9y ago
You probably mean strcat() (which should really not be used, since now there is strncat()), there is no concat() in standard C library. strcat() does not intercept syntax of operation that does not mutate its arguments in any other context
184.
▲
by
mbel
9y ago
To which the same argument applies.
185.
▲
by
mbel
9y ago
> but a constant stream of mischief and abuse stories coming for the past few years... that's just how Uber rolls So if some piece of information is repeated enough times it is definitely true? I don't want to defend Uber here,
186.
▲
by
mbel
9y ago
Another thing that does not seem to be very constructive is complaining about all those kernels written in evil C instead of writing one in Rust.
187.
▲
by
mbel
9y ago
With clang you can use -Rpass family of flags to get information about missed and used optimization opportunities. Although it will not print absolutely everything (trivial optimizations will be omitted). Other compilers have other options,
188.
▲
by
mbel
9y ago
> or GHC, you can use ML or C or Python or PHP or whatever instead of Haskell. Well there are also other Haskell interpreters and compilers (JHC, UHC, Hugs). Although of course GHC is de facto standard due to it's numerous extension
189.
▲
by
mbel
10y ago
Yeah, the closer analogy would be FedEx selling information about content of your packages unless they are shipped in some kind of locked strong box.
190.
▲
by
mbel
10y ago
Sorry, I misread it.
191.
▲
by
mbel
10y ago
Well, it could just use function name and leave it to javac/kotlin/other JVM front end to handle overloads and generate unique names. Although that wouldn't work nice with refection and other run-time features I guess.
192.
▲
by
mbel
10y ago
The article describes Dalvik which is different from JVM, so it's not really a proof. But you are actually right. It looks that JVM bytecode includes full function signature in function invocation: https://www.ibm.com/d
193.
▲
by
mbel
10y ago
According you your link JVM does not support this feature. It's implemented by Kotlin itself. I guess it's probably some kind of name-mangling scheme.
194.
▲
by
mbel
10y ago
> Either way, the idea that you can write code in a safe language and compile to C to eliminate the type of bugs that C allows isn't true. Is a bit different statement than: > I'm saying "rewrite it in Rust (or whatever
195.
▲
by
mbel
10y ago
Compiling X to C and then C to assembly is not more complex that compiling X straight to assembly. In your orignal comment you wrote that the complexity of such setup is bigger, to which I responded: no, not really. Yes, C was not designe
196.
▲
by
mbel
10y ago
Of course metadata is lost if not encoded anywhere on the way. The argument was made regarding code generation being more complex when code is saved on the intermediate level.
197.
▲
by
mbel
10y ago
You are arguing that no language X is safer than writing program manually in Y when program in X is compiled to Y. Because compiler from X to Y may have bugs. Therefore no code written in Rust (X) executed on x86 CPU (Y) is safer than manua
198.
▲
by
mbel
10y ago
This is simply not true. C in this case is just an intermediate representation of the source program. Going through multiple intermediate representation of the source code is fairly standard practice when compiling anything. If anything it
199.
▲
by
mbel
10y ago
So no code is safe? All code before execution has to be lowered to some evil, unsafe language, most commonly the assembly language of targeted CPU. The mystical process of "programmatically generating code" in also known as compil
200.
▲
by
mbel
10y ago
The design of Wayland might be (and I believe is) superior to X11. Although as every piece of software on this planet in first years of its existence it will be incomplete, buggy and not compatible with all the other things that already exi
201.
▲
by
mbel
10y ago
> I think we'll get there eventually but until a native toolkit presents an interface as easy to use as the web developers are going to take the path of least resistance. Like Qt did with QML? http://doc.qt.io/qt-5&#
202.
▲
by
mbel
10y ago
gcc removes recursion in that case: https://godbolt.org/g/R6iBup
203.
▲
by
mbel
10y ago
Yeah, it's hardly a benchmark. The information what kind of CPU they are using is also missing (why no -march=native?). Despite how unbelievable it looks, I would love to see contents of the final binary to see what is really happening
204.
▲
by
mbel
10y ago
Gravitational teleport sounds like something out of cheap science-fiction novel. Magical device with pseudo scientific name which inner workings are never explained. It's only purpose is to act as a deus ex machina when author runs out
205.
▲
by
mbel
10y ago
For everybody who has no idea what a "gravitational teleport" is: it's an SSH server ( http://gravitational.com/teleport/ ). Probably it could be included in title? (yeah, I know HN guidelines prefer verba
206.
▲
by
mbel
10y ago
This is not how iOS works. Only few apps work ("eat away battery life and performance") in the background, and only in some special circumstances (active music playback, background refresh once in a while if user allows for it). T
207.
▲
by
mbel
10y ago
> I found it fascinating that Smalltalk was #2 as most loved language in spite of its minimal use. It probably is because of the minimal use (and I believe #1, Rust, is also there because it's still not that common). Their "lov
208.
▲
by
mbel
10y ago
I guess that: "You fool! It is not a picture. Take a picture using supplied UI widget that resides in place where one would expect software keyboard." sounds less appealing to teenagers :)
209.
▲
by
mbel
10y ago
How arrow keys are related to tab/space flamewar? Isn't everybody (whose job requires typing) using moving between words as the most basic mean of navigation? (w, M-f, Ctrl+arrow, etc.)
210.
▲
by
mbel
10y ago
> Desktop or even native mobile development seems to be like going back to the last century. The funny thing is that looking from the opposite perspective I feel the same. The web development looks like going back to beginnings of progra
More ›