skysight-inc/HackerNews huggingface dataset:
Tesla currently has a lead in:

- battery range (the tech and battery production capacity doesn't disappear with the manager)

- charging network (passing 1,000 stations)

- autonomous driving (miles recorded and in all kinds of traffic and weather)

- selling online and through own dealers in malls as opposed to through independent dealers in the outskirts of town

- integrating electric into every part of the car design

- over the air updates

- brand (you don't think f Nissan, Chevy, BMW etc. as EV makers)

They are also still the only manufacturer that makes EVs look attractive and perform better than ordinary cars. Everybody else on the market seem to deliberately make ugly cars with mediocre performance. The reason probably is the simple fact that Tesla wants you to buy electric cars whereas the other manufacturers already make money on selling combustion engine cars and would make less selling EVs. They are in the EV market reluctantly.

In theory, the above could change quickly. But how does a company that for 100 years has made combustion engine cars and has thousands of employees, suppliers, facilities, contracts, etc all geared up on selling combustion engine cars through dealerships and who are dependent on making money on spare parts and repairs of mechanical parts suddenly pivot into selling EVs that barely need repairs online or in malls? It's as likely as Google launching a Facebook challenger. Or Microsoft beating Amazon on selling consumer goods. Actually, it's less likely since all the incumbent car manufacturers run on razor thin margins. They don't have piles of cash to reinvent themselves. It's more like Nokia winning the smart phone game or a news paper beating Google on selling online ads.

My bet is still on Tesla, but it would be nice if I'm wrong and the incumbents rise to the challenge.
Yes the new crown prince is positioning his country for when the oil runs out - this is no different to how Norway does it.

Is it just me or does the NYC article sound screamly racist
> Right, the argument is that if you want some arbitrary sizes you should get a new unit for it

They already exist (vw and vh are percents of the viewport width and height respectively). Renderers "relativised" supposedly absolute units because 1. they already were not correctly handled (as output devices often don't correctly report their densities and renderers would then just fallback to 72dpi or whatever) and 2. they were ubiquitous.
> You can also publish papers as an undergrad with your adviser's support in the US, is that not true in India?

It is just as true in India as it is in the US.

And: while it definitely helps if your college/department/advisor is there to lend you support, such support is not a prerequisite for getting published.
Musk said multiple times that all his non-SpaceX businesses are just means of getting humans to Mars. The electric transport and solar energy / storage indeed have nice side effects, but they are not his final goal.
The corollary to this: most correct work is not worth publishing. And most people bitter over their work not being accepted were not rejected because their work was incorrect, but because it was not notable. So at the end of the day, it's all a popularity contest, and that's what you're really engaging in.
While I do echo some of the sentiments of the author, I still LOVE Ruby. I use it for small scale projects, for very quick data processing needs or on Jupyter notebooks. I used to run a full fledged Ruby shop a year or two ago and I have to tell you, in this day and age, even today, there is NO full-fledged equivalent to Rails.

Having said that, now I predominantly use Phoenix/Elixir for most new projects. And the framework is moving ahead blazing fast. It has its own pros and cons, but overall, it's been a VERY positive experience and it actually saves me a LOT of time because I'm able to find code errors at compile time.

It's almost the only alternative to Rails which seems like home if you're transitioning, but it still has its own issues. For example, they screwed up the code organization with contexts, renamed the web folder a couple of times and so on. But these are small issues and I'm amazed at the productivity I gained by using Phoenix.

I wrote a full fledged Stripe API library in under 12 hours. Well tested and rock solid. Pattern matching is heaven and in many ways, your code is more robust. I have written libraries in Ruby too, they take more time simply because there are lot more tests that need to be written.

I would never go as far as saying "I'm sick of Ruby", simply because it's still a great programming language, if you're getting started and also because, I believe in the man behind it - Matz. He has a philosophy and believes in it. It takes enormous passion and dedication to believe in what you've created, support it over decade(s) and keep on improving it. I can point you many languages that have died over the years because they lacked this passion and dedication.

Same thing goes for DHH as well. I really applaud him for patiently tolerating so many people bashing the framework he helped to create that revolutionized web development. He's also very very chill and respectful about others' opinions. [1]

Having said all this, I hope Ruby 3.0 has a strong come back which is much needed at the moment.

[1] https://www.quora.com/What-do-you-think-of-Elixir-and-Phoeni...
We must of-course include Israel in this list, as far as I know it is a serial human rights violator and uses technology for inciting violence and fear.
Payment gateway integration
Yeah, I believe people in Libya believe the same. It is always fascinating to see how much people bought to the media outlet rhetorics.

She is the only reason I totally abandoned the democratic party and went independent.
I find Ruby to be a very maintainable language. I use Ruby with Ruby on Rails which is a great framework to create web applications and the like. I would not use Ruby if I were in the system programming space as it is too slow and not strict enough. Every purpose can have a different language that is great for it, but don't forget that every programmer also has a language that is good for him. I, for example, will never work with PHP again because I find it ugly and I don't get happy working with it. Rust looks great though, when I find a purpose for it I might give it a go.

Ruby's slowness is often mentioned, but Ruby is quick enough for many situations. I am very productive in Ruby and servers are cheaper than developers so for many purposes it works out just fine. I have tried Phoenix (Elixir) and I found it too verbose and complex to work with. I am sure though that others love it, so to each his own.
Yeah but at least you have a chance to find the backdoors.
There's dynamic typing, but then there's also all the extra stuff like mutable global state, gratuitous monkey patching, fad following, overindulgence in complicated implementation cleverness just to make interfaces more elegant etc etc that the Ruby/Rails community has produced and promoted.
Beware the enthusiasm of the recently converted.
Apple does apply gamma correct blending, at least when rendering text to a solid surface so that subpixel alpha kicks in.

If you render it to a transparent layer and force an RGBA blend, it gets blended in sRGB color space rather than linear RGB, but this is a flaw that can't be easily changed because of legacy reasons. Any design that uses transparency of any kind, text or graphics, would change appearance. I agree that we should have a body { color-space: linear; } though, but good luck in explaining why to coders and users alike.

The fattening that you are complaining about is something else entirely: it mimics the way physical ink bleeds on paper. The weights were under designed to compensate for this, and they replicated this effect virtually.
I honestly can't tell if you're being ironic, or claiming that two wrongs make a right.
The open-source approach is our own chance to purge corruption in the technology layer. We may not yet have implemented the idea perfectly, but keep in mind the following:

With every new player (government, company, user) joining the open-source approach, we get additional eyes on the code/hardware.

Imagine all world governments using only open-source code/hardware: Given the current budgets at play, we would have 100% secure code/hardware in a matter of seconds - for everybody on the Planet.

Why is this not happening? Because governments (currently) still do not fully represent the citizens' interests. They mainly represent their interests first (which is the protection and expansion of their power monopoly). This is called the principal-agent problem.
I guess I have to agree with everything else, but maybe MVC isn't the best model for a JavaScript application.
So, why would one want to use the negatives from language X, when one could be using the positives from language Y!
She should have bankrupted her former company, tends to look good on your resume if you apply for president. Don't ask me why
Thank you kind sir. You dfinitely made me move forward with a purchase.
The only way you can be rid of those vague requirements and ever changing deadlines is if you work for yourself :) ;)
Not really a lot of SV companies will be selective in which human rights they apply if it doesn't cost them that much
I see the "you need to write less tests because static typing" statement thrown around a lot (including the article), but haven't seen any detailed discussion on why that would be so, could someone point me to a more in-depth look at that?
I have yet to find a better programming experience than Ruby myself, but Rust looks fine for systems programming, etc. I don't understand however why people invest so much effort in Javascript. The amount of tooling around it just baffles me, but again, to each his own.
Its interest at all which is banned, which is why there are Sharia compliant bank accounts and investments.
I think the only source of potential arrogance is unfamiliarity with prior and ongoing work. My experience is that people often comes up, on their own, with brilliant ideas that have already been explored. A lot of my uni time was a roller coaster of "wow, I have this amazing idea" (talk to someone in the field), "bummer, they beat me to it by random (1,200) years".

Of course being around smart people helps think out, crystalize and polish ideas. But many people do have insights on their own, some completely new even in 200 year old fields.
"The least of several evils" is not the same thing as "good".
Musk? How? By giving away money? Or by making money? I'm confused.
Yes! this so much. I remember a coworker who had to do an Interface or Abstract class for everything in Typescript. Only because typescript provides those features doesn't mean they should be used everywhere.
Titan invests $5M in wearable IoT firm CoveIoT
"This seems like engineering for engineering's sake."—this describes a lot, if not a majority of work done in frontend these days.
There is a solution without requiring the universe be made of math: math just describes it instead. You can point out that this doesn't explain why math works so well, but I'll point out it's better not to pretend we have an answer if we really don't--then we keep looking. The idea that reality is made of math as an answer is totally lacking in justification, so sure it is technically an answer but saying the moon is made of cheese is an answer too. Not all answers are created equally.
Full article:

http://www.manyworlds.space/index.php/2017/03/09/how-to-give...
It's really not as bad as people make it out to be. Really handy when you need it, and there are limiting mechanisms (refinements) for when you don't.
Or in street parlance, name calling.
The Evolution of Technology Is Embarking on an Exciting New Chapter
Well then you just set up a system where companies that are CNI have oversight at some level of course this does mean a lot more vetting and it can be abused like France declaring a yoghurt maker was CNI.
Whose morals? Yours? Mine? It's not easy to get people to agree on what is moral beyond things like murder.
I feel like Ruby’s sweet spot is sort of as a cleaner, more capable, more ergonomic Perl, with nice message-passing OO and a super-convenient standard library. Text processing? You bet! Command-line utilities, test harnesses for JVM-hosted APIs (using JRuby), small network services, ... in those domains I feel very productive with Ruby.

But for core business logic? Definitely not my first choice.
Tangent: Source-To-Source Debuggable Derivatives
Comparing the New Atom-IDE to Visual Studio Code for Web Development
Wouldn't using those tricks cause significant performance loss due to kernel syscall and page table updates needed for each virtual_alloc call?
Some examples.

- UNIX and C.

- Android and Java

- Windows and .NET/C++

- JME feature phones

- iOS and Objective-C/Swift

Or to taking it down to memory lane,

- Burroughs and ESPOL/NEWP

- IBM RISC systems, IBM zOS and PL/8

- IBM 400 and PL/S

- Lilith and Modula-2

- Native Oberon and Oberon

- UCSD and Pascal

- Lisa, Mac OS and Object Pascal

- Lisp Machines

- Smalltalk workstations

- Xerox Star and Mesa

- SpinOS and Modula-3

- .... (plenty more to list)
MVC is a simple concept. You don’t need a framework to organize your modules. You can easily do MVC in Js from a vanilla setup. As another commentor suggested, maybe MVC isn’t the right abstraction for the need. That’s the balance in my experience. Sometimes it makes sense, sometimes not. In the end make the compromise that allows you to develop with high reasoning ability and iterate from there.
You can't think of any other reasons apart from racism why people would think differently of Saudi Arabia vs Norway?
And presumably all Americans should disinvest from all south American countries
> The gist of it: if you mark onscroll/ontouch event listener as passive, Mobile Google can scroll your page faster

onscroll has never been cancelable, and is fired after the actual scrolling takes place. So I don't see how it being passive by default changes anything. Is this an oversight in the article (and a bunch of comments here), or am I missing something?

https://developer.mozilla.org/en-US/docs/Web/Events/scroll
https://nim-lang.org/

I would consider Nim. Maybe the ecosystem is not there yet but they are getting many things right.
There's more to investing than simply speculating for financial gain. You can invest in ventures you want to see grow for other reasons - for example, YC invests in nonprofits (http://effective-altruism.com/ea/pn/an_overview_of_y_combina...). These are companies that do good things for society, and investing in them demonstrates a desire to see those good things happen faster.
This is one of the biggest reasons for code becoming unmaintainable. Many people got mad at DHH for speaking ill of TDD, but he is not alone in pointing fingers at blindly restructuring code for the sake of (unit) testing as mentioned in the article.

I get why people would like to pretend that everything is made up of beautiful uncomplicated small pieces, but that is not how life works. At some point you have to understand your tax returns, mortgage contracts and communications with incoherent external APIs. Making me jump to section 4.1.2 and from there to section 7.2 in order to understand the parties mentioned under 1.1a are subject to the rules set out in Appendix A section 42.1 does not make the contract easier to understand. So why would code that feels like a legal document be easier to understand?
So we can say that universal income is just a way of keeping people 'alive' to let corporation earn the money - just like slaves were kept alive to do things for free.
> renamed the web folder a couple of times and so on

Just to add a bit of information to this, they were all in RC or pre-releases. I was bitten by this myself, but if you choose to run RC code then you need to own that a little bit.
This isn't really about Ruby. It's about the other things in the title. I suppose that calling out Ruby by name was necessary to make this blog post concrete, and to make it easier to relate to. The author also mentions Haskell, but that really isn't necessary to get the point across. The comparison could have been between Python (written in an OO fashion) and ML.

You can write, 'I hate X because of dynamic typing, side effects, and object-oriented programming' for many values of X. Similarly, the reasons why the author is drawn to Haskell can be applied to a large number of other languages.
Adding another preference certainly won’t solve the underlying usability issues.
cue commit scrubbers
I share your opinion on the banality of content-related moral panics. I don't think the subject matter covered matters much at all, since young children can't even comprehend the themes that horrify the author.

What really strikes me about these videos, though, is the sheer volume and the degree of engagement optimization demonstrated. That's new and worth thinking about.

We've had scary nursery rhymes and fairy tales for centuries at least. We've had nonsensical children's cartoons for half a century. Nothing has gone horribly wrong.

But I don't think we've ever had industrial-scale production of videos so rigorously optimized for engagement at the expense of everything else.

These videos remind me of the concept of "superstimuli" --- artificially-created patterns that are more attractive than the ones that appear in nature and that lead organisms away from healthy behavior patterns. Highly refined sugar-loaded food is an example of a superstimulus in humans.

These videos are empty. They teach nothing. They're optimized for hitting all the right attention buttons in the brain, but they don't provide any of the training child's developing neural network needs to train itself. What effect is that going to have on development?
Houdini + WASM combo has the potential to be (say it like Trump/Bernie) HUUUGE. I think it’s really exciting.
MS Azure also provides Postgres now [1]. And also does Alibaba Cloud [2]. They even have a special version of it – something for analytics/warehousing [3]. So at least 4 big cloud providers have Postgres!

1) https://azure.microsoft.com/en-us/services/postgresql/

2) http://www.pgconf.asia/JP/wp-content/uploads/2016/12/Postgre...

3) https://www.alibabacloud.com/product/hybriddb-postgresql
This is not entirely true. Speaking from my rather long sojourn with CS Research in an industrial research lab setting. While it helps to start out with researchers, many fields of CS research are as much individual pursuits as they are a team effort. If you have a network of domain experts you can communicate with, and access to publications, a sufficiently motivated person can definitely make inroads into research.
A couple of other points to be noted,
1. open access to publications is still a utopian dream. Being affiliated with an organization or academic institution gives you access.
2. Infrastructure and Equipment is something you will have to arrange yourself if you want to do things on your own. This is prohibitive when it comes to the latest and greatest in deep learning, or systems engineering or anything biomedical.
3. Data. Organizations have access to data. period. Or atleast can arrange access to data.
4. It helps to have more hands on deck. So working in teams can accelerate the pace of your results.

Some fields which are conducive to lone work would be around cryptography, algorithms, essentially anything theoretical CS. or fields like ICTD where its less about a break through and more about a novel application.

ps: this is a very CS perspective.
I think Ruby missed the opportunity to be a more general purpose language beyond Rails projects.

Since its early days, I was hopping for it to gain AOT/JIT compilation support, eventually by getting some inspiration from Dylan.

RubyMotion seemed to be it, but because it is commercial product, it is largely ignored by the community.

The JRuby work is awesome, then again some in the Ruby community suffer from Java allergy and won't touch it.

Now we have Crystal as the best way to get a bit of both worlds, AOT and Ruby like syntax, but still alpha quality.
I like the article and the tricks. I recall seeing a presentation by a game developer who mentioned something similar, something about intermixing actual data pages with something else (read only ones or even unusable ones?) to trigger an error in case of an out of bounds read/write that was far enough (which apparently happened often enough for this to be helpful).

The address space is not actually 64 bit and it's not just the OS limiting it. The CPU/MMU/IDK (I'm not low level enough to get all this stuff) does too in some ways. I assume these values mean that I can have 2^39 bytes of actual RAM and 2^48 bytes of virtual address space:

>[frex@localhost ~]$ cat /proc/cpuinfo | grep address

>address sizes : 39 bits physical, 48 bits virtual

>address sizes : 39 bits physical, 48 bits virtual

>address sizes : 39 bits physical, 48 bits virtual

>address sizes : 39 bits physical, 48 bits virtual

This also came up back when I was looking through PUC Lua 5.1 code for a paper and (out of curiosity) looking into code of PUC 5.2 and 5.3 to see the changes and into code of LuaJIT for comparison.

LuaJIT uses top bits of a pointer to store type info in case of light userdata pointers: https://www.freelists.org/post/luajit/Few-questions-about-Lu...

This reminds me I should probably do my write up of how PUC Lua 5.1 VM works and implements it's features in English finally. If someone's interested in any way I'd appreciate dropping me a word to let me know that there's market for that so I don't fear that I will be writing down stuff I already grok for no one to read and benefit from.
Putting an end to the madness of popup creation in Unity3D
And then I can run it on a Virtual Box on Windows?
Let's suppose that hardware is open-source. How do I know that my instance of the hardware is faithful to the spec? That my vendor didn't modify the hardware?

Let's suppose that I have a 3D printer sophisticated enough to print open-source circuitboards. How do I trust my 3d printer?

I think there's a hardware "trusting trust" problem; I can't imagine how your optimism could ever be realized. I hope I'm missing something!
Gotta love it when “Category Theory for Programmers” is provided as a further reading link on a very introductory article.
This is beautiful. It captures the immediacy of writing some code and seeing something on the screen that I remember (and miss) from the ZX Spectrum.
Yes. Although I question the usefulness of this jargon list, I think Bartosz Milewski’s CTfP is excellent:

https://bartoszmilewski.com/2014/10/28/category-theory-for-p...
There is actually a charge, you are also giving up the right to enforce you own patents on Tesla I believe.
Ask HN: Precautions for RSI?
I am a CS student and I rarely get wrist pain. I know it won't always be like that so has anybody got advice to prevent RSI before it happens? Any advice would be helpful.
I assume @hemanth is happy for the project README to appear on the blog of a recruitment agency. Along with the rest of the blogs that seem to be copy pasted from the original location. Should I guess functional-works obtained permission from all the original copyright holders?
Australian pokies hold basically no allure for me. I've been visiting Sydney on a yearly basis for 10+ years, and only on my first trip did I really spend any time gambling. It wasn't much fun even though I won: unfamiliarity, plus the style of games were so different. Though what really put me off the most was the racism from the RSL employee who came to verify my payout!
investment on startups could be seen as "countries growth engine", its exponential income, innovation, scale, employment, eco-system, fame, changing others life, etc.
Gambling is an entertainment or for some its an addiction/disease.