8 ms·
From another point of view perhaps we finally might have to start writing better code instead of solving software issues with better hardware.
by elorant 11y ago
From another point of view perhaps we finally might have to start writing better code instead of solving software issues with better hardware.
- chillaxtian 11y agobased on historical evidence, a dedicated chip for executing javascript will be created before the industry makes a concerted effort to find a better tool.
- wolfgke 11y ago> a dedicated chip for executing javascript will be created Unluckily this is not so easy: If you know a way, Yossi Kreinin would be really interested to know: > http://yosefk.com/blog/the-high-level-cpu-challenge.html http://yosefk.com/blog/the-high-level-cpu-challenge.html And here is a list of ideas/problems that he identified within "the usual suspects": > http://yosefk.com/blog/high-level-cpu-follow-up.html http://yosefk.com/blog/high-level-cpu-follow-up.html
- hamiltonkibbe 11y agoYou just replace the "C" transistors with "Javascript" transistors
- deleted 11y ago[deleted]
- k__ 11y agoMost people are simply value oriented if it comes to programming languages. I worked in many companies that would consider stuff like Java too "enterprisey". In 2006 most employers said "There is an abundance of PHP coders, why should I switch to something more expensive?!" Now they say this about JavaScript. And devs think "Well, lets learn something to make money with. Since there are some much JavaScript jobs, lets learn it!" I did so myself and made good money.
- Scarblac 11y agoAnd they're mostly right -- there is great value in having one language be used by a large part of the industry.
- adwn 11y agoYou're probably joking, but the "we need CPUs that are optimized for our high-level languages"-argument has been raised again and again in all seriousness in the past, without anyone ever showing a convincing way to speed up Javascript, Python, etc. in hardware. Fact is, chasing pointers through small objects or looking up methods in hash tables is very cache-unfriendly, and memory latency is the bottleneck for many computational tasks today. Instead, we should work on improved languages that provide better compromises between performance and convenience. Rust, for example, is a good step in this direction.
- marcosdumay 11y agoWell, whatever language you want to run, processors that are good for cache unfriendly tasks would be huge for logical AI, data mining, some kinds of image processing, and possibly a lot of other tasks. As dies get bigger, there's no law of nature saying that CPU power must be concentrated far from memory.
- adwn 11y ago> As dies get bigger, there's no law of nature saying that CPU power must be concentrated far from memory. Actually, there is. The main reason why the L1 cache is so small, is that a larger cache would take more cycles to access. The L2 cache is allowed to have a higher latency, so the electrical signals have more time to propagate through a physically larger area. 3D stacked dies alleviate this problem, and the trend goes towards putting several dies side-by-side in a single package (a chip), enabling lower latencies, higher throughput, and less power consumption.
- marcosdumay 11y agoYes, if you concentrate all your CPU power on a single region, it'll be far from most of the memory. There's natural law that mandates the CPU power to be concentrated.
- simonster 11y agoThere's http://www.azulsystems.com/products/vega/processor http://www.azulsystems.com/products/vega/processor, which is a CPU with special GC instructions, created by the same company as one of the most sophisticated garbage collectors. Apparently they thought they could speed things up with specialized hardware. Not sure what the performance looks like in practice, but it is interesting that it exists...
- reubenmorais 11y agohttps://en.wikipedia.org/wiki/Jazelle https://en.wikipedia.org/wiki/Jazelle
- akerro 11y agoImpossible, entry level for CS and programming is drastically falling down every year, languages that don't require any CS knowledge or thinking become more and more popular. During my undergraduate studies no one told me that something like CPU cache or branch prediction exists, we were just told C#, Java, JS and PHP are used in the industry so learn it and you will have "a job". Some students did their MP in PHP, JS where you could login as red status bar (HTML injection in login). We were not told about vagrant or static code analysis. I had to learn in myself from reddit and contributions to OSS. People who call them self senior JS developers don't know how to solve basic algorithmic problems.
- rwmj 11y agoPlease let us know which university that was, so others can avoid it. I'm glad you managed to teach yourself these important concepts despite that. I fear that others won't have been as go-ahead as you, and are instead writing the sort of crappy Javascript that brings my browser to its knees on certain websites, or makes my 6 core 64 bit phone run really slowly.
- akerro 11y agoI won't name the university but it was top10 UK when I started it 5 years ago.
- jessriedel 11y agoYour comment and the parent comment aren't incompatible. Increasing the size of the software industry will naturally result in much greater specialization, with high-skill folks solving the hardest problems and farming out the easier stuff to low-skill people. Likewise, in the early days everyone needed to know how to fix most things in their car, and car mechanics had to be real experts. Now most car driver can't change their oil, car mechanics are following instructions given to them by the car's computer without much idea of how those decisions get made, but inside car companies there are guys with deep insight about how to electronically balance your engine.
- 11y ago
- nothis 11y agoIt's amazing how slow certain apps are, for example, on smartphones and how fine people are with it. Things that worked near-instantaneous on a desktop PC 15 years ago now take 5 seconds to load despite the hardware being way faster.
- speeder 11y agoEven on desktop... One of the reasons why I prefer to use "cloud" tools instead of LibreOffice is LibreOffice being slow... Xcode on the MacMini I use to work is just terrible, it is SLOOOOOOOOOOOOW. I wish I could code for iPhone with TurboC, the thing just worked, no loading time, if I hit a button, it do what I want instantly. Games are also getting notoriously bad, I've been seeing 2D games, with no particularly important special effects, get extremely slow on my computer (that can run some very beautiful older 3D games easily), Starbound is a very bad offender at this. But the one that pissed me off, is Epic Games launcher... Shadow Complex is free in december for PC, to get it you install Epic Games launcher, that then downloads and installs it. My gaming machine is old, and has some parts of it failing, and playing shadow complex tipped it over some edge and now it is overheating easily... at least I thought it was shadow complex fault, I eventually learned it was the launcher's fault, if I close everything and leave only the Epic Launcher open, it uses 100% of my GPU, and make its temperature shoot from 56C to 92C, it is just absurd... it does not even have any 3D on it, I have no idea why it uses the GPU, and why it needs that much GPU power!
- developer2 11y agoI just wish the human race would stop pretending to know what the future may or may not hold. You would think that with our recorded history, people would be smart enough to shut up about the "limitations of the future". There is not a single person alive today who knows what technology will look like in 10 years, let alone 100 or 1000+. All it takes is a single new discovery from a single person to completely change our understanding of what is possible with technology - or any other aspect of our lives. The blatant arrogance with which people pretend to know what the future holds is infuriating. Why do so many find it so difficult to admit that we know an infinitesimal portion of total knowledge of the universe? We only recently discovered electricity. Computing is still in its infancy. A computer from the future - if they are even called that anymore - may be directly comparable to what we have today. Or the technology may change so much that the two devices are not even recognizable as being related. People need to stop telling me that it's impossible for technology to scale as much in the next 30 years as it has in the past 30. What looks like a technological ceiling today could evaporate at any time. Why does the human race insist on believing that the knowledge we have gained so far is "all there is to know", until proven otherwise? It strikes me that one has to be quite literally an imbecile to not understand that the future will unfurl much that we cannot even fathom today. This insistence that the world of computing 50 years from now must somehow be built on the shoulders of existing technology... it's absurd to be that closed-minded.
- wolfgke 11y agoThere a physical barriers, say, conservation of energy (or for mechanical systems conservation of linear and angular momentum), non-decreasing entropy etc. If I were a physicist I could tell you a lot more of these invariants (say from quantum physics). We surely don't know what technology the future will have, but I would bet that at least for the next 50 years there will be no fundamental breakthrough that both changes our understanding of such laws of nature and is already at this timeframe available to be implemented in technology (the last time that such a breakthrough occured was theory/ies of relativity and quantum physics - both at the beginning of the 20th century). So I might not know what the future is like, but we can surely make lots of scenarios highly unlikely.
- EdiX 11y ago
- Strilanc 11y agoYou realize having to write better code is a bad thing, right? It makes writing software more expensive, and decreases the supply of people who can do it. Also, people aren't going to start valuing craftmanship because you added more constraints. Adding a speed constraint won't make the pile of hacks upon hacks smaller, it will add a layer of speed hacks. It won't fundamentally rewrite the incentives for software, where companies that do the minimum amount of work to hit an acceptable speed are rewarded. It just culls companies naive enough to think they could write something elegant or concise.
- JustSomeNobody 11y agoSo? I see that as good.
- justincormack 11y agoZero cost abstractions are a great thing. Rust is working towards this. Readability and speed is a great goal and there is no reason to believe it cannot be achieved.
- Strilanc 11y agoThose are great developments, and they shift the pareto curve of cost-vs-readability-vs-speed downward, but the curve is still there.
- GFK_of_xmaspast 11y ago> It makes writing software more expensive. As someone who gets paid for writing software....
- TeMPOraL 11y ago... as little as your boss can get away with, and who pressures you to write it faster...
- mrrrgn 11y ago> It makes writing software more expensive, and decreases the supply of people who can do it. That sucks for business types, but this has a real upside for professional programmers. Despite propaganda, salaries are based on supply/demand, not impact.