Comment on: A very flawed speed comparison of Node, PHP, C, Go Python and Ruby.
0 09 Nov 2019 16:10 u/vastrightwing in v/programmingComment on: A very flawed speed comparison of Node, PHP, C, Go Python and Ruby.
Interesting. I was surprised by the sheer number of "frameworks" out there. It seems there's a new one every week.
Comment on: A very flawed speed comparison of Node, PHP, C, Go Python and Ruby.
Yes, your results are much more in line with what I was expecting. However, simple loop constructs aren't very useful as a benchmark for performance. It would be much more useful to at least do a bubble sort or insertion sort.
Comment on: A very flawed speed comparison of Node, PHP, C, Go Python and Ruby.
I was looking to see how ruby did as far as performance goes and found this webpage. I was very sad looking at the code this guy used. He lacked any understanding of variable precision in any language. He also lacked knowledge of optimizers. Notably, the C output gave him erroneous results due to overflow conditions. He should have used long and not int.
However, I was surprised that C didn't optimize the loop completely out the same way Go did. It's clear that Go won simply because it didn't loop at all. Like I mentioned, C should have had nearly the same result Go did if the compiler worked the way it should have.
A very flawed speed comparison of Node, PHP, C, Go Python and Ruby.
2 0 comments 07 Nov 2019 21:20 u/vastrightwing (..) in v/programmingComment on: Google Says Spectre And Meltdown Are Too Difficult To Fix [With Software]
AMD uses similar optimization techniques as all other semiconductor manufacturers use. The conspiracy theorist in me can believe the alphabet agencies may have designed this flaw or all silicon engineers use similar designs in the architecture of the processors. Either way, most processors have this embedded in the design.
I suspect some engineer may redesign the chips or a completely different technology will make the current design obsolete. I'm guessing the latter. It may be optical chip tech or quantum tech. Either way, new and more exciting flaws will be discovered.
Comment on: Google Says Spectre And Meltdown Are Too Difficult To Fix [With Software]
They've been putting hidden servers and flaws in silicone for years already. I believe the flaw is real and the alphabet agencies love the flaw because it also allows them easy access to our data. If the chip companies fix this flaw, they will be asked to engineer a new exploit.
Comment on: Google Says Spectre And Meltdown Are Too Difficult To Fix [With Software]
Of course there are engineers at Intel, AMD, Broadcom, IBM, et al who knew this for years and I'm sure they let management know. And as usual, the fix is expensive and unacceptable so nothing was done to mitigate it. Even now, I imagine discussions going on about it and security will simply take a backseat to making the processor faster.
Comment on: TempleOS with its holyC programming language has the potential to replace the behemoth OS's we use today.
Brilliant!
Windows is an albatross. I hate the complex maze of security. You can't strip windows down because everything depends on everything else. Telemetry. WTF? Correct, Unix/Linux is only slightly better.
Comment on: Work as a C++ programmer
You manage the boss. Never get into the trap of estimating tasks in terms of time. Say instead I think it's a 21 point task. I think in terms of agile. He'll think you know something. Make simple deliverables. Fake it until you make it.
Comment on: Assembly Language 03: Intro to 6502 Instructions
The original apple cpu.
Comment on: Forcing women into programming is a fucking mistake
Bada boom!
Comment on: An idea for a techie who has way too much time on their hands...
I was thinking about a database that linked people using big data to their corporate
Comment on: Linus Torvalds - "That is either genius, or a seriously diseased mind."
C++ : Where friends have access to your private members.
Comment on: Please explain the discrepancy of my physical resolution and what javascript tells me.
I was wondering about that myself.
Comment on: Please explain the discrepancy of my physical resolution and what javascript tells me.
Interesting. So browser developers decided it is better to scale images to some arbitrary reference size rather than keep the native resolution. And then it never occurred to them to allow anyone to view the image without the scaling. I can't find a way to unscale the image. It's a shame because some devices have really nice high resolution displays.
Please explain the discrepancy of my physical resolution and what javascript tells me.
1 0 comments 21 May 2017 00:59 u/vastrightwing (self.programming) in v/programmingComment on: Found a good mechanical keyboard, here's what I bought..
Yea. But you can't find them anymore. Sad.
Comment on: Found a good mechanical keyboard, here's what I bought..
Kind of. I mostly use a very thin laptop. The keyboard is the worst typing experience you can imagine. The keys have a very shallow throw and I tend to mis-type constantly. I finally decided to get a real keyboard. At that point, I had opened Pandora's box. There are tons of keyboards, and they all are better than my laptop's poor keyboard. The question then becomes, do I buy a $15 keyboard or a $100+ keyboard? A friend showed me his Das Keyboard. I was hooked. I really loved the feel of the mechanical keys.
I'm impressed. Java surprises me. Considering it's a byte code interpreter, it gets a very respectable benchmark. I had no idea Node was so optimized.
Thanks!