skysight-inc/HackerNews huggingface dataset:
This. I don't have experience with Forms, but Rider is a massive improvement over VS on both platforms for "native" Xamarin development. I actually quite liked VS for Windows when I started working with it a couple of years ago, but as of late it seems to have gotten only slower and buggier. Since we do only Android / iOS at my job I don't even bother with Windows anymore. I still "need" VS for Mac to (a) build iOS layouts in interface designer (which is hell, I regularly consider going code only for those) and (b) to deploy Android apps when debugging. Rider will do that, but it doesn't do the fast assembly deployment that VS does so it's very slow even if there are no changes. And thus I write code in Rider, and run through VS. VS for Mac doesn't include as much bloat as VS for Windows, which makes it "better" because it's relatively light and doesn't lock up too long when switching to it. As an editor it's just annoying though. Debugging in it is a necessary pain right now.

If this sounds cumbersome... it is. I find it workable right now but I'm regularly annoyed. Build + deploys fail when I fire them off too soon after changing an .axml file. Builds fail as a rule, not an exception, when there are Xamarin or Android SDK updates. iOS is actually mostly fine, except for the hell that is the designer. All in all none of these things are show stoppers, but I don't think I could wholeheartedly recommend Xamarin for new apps.
Appreciate the history.

History's written by the victors, so this is a little SGML oriented -- I still recall my own transition from developing Gopher sites to WWW sites for Lynx, and how at the time, these things felt the same -- though it was clear what would win.

Wikipedia's discussion of browser history also omits Gopher + clients, which is too bad, it was kind of a big deal at the time.

https://en.wikipedia.org/wiki/History_of_the_web_browser#Pre...

To put it on the timeline, your Silversmith was 1987, Berners Lee's WWW browser 1990, McCahill's Gopher 1991, Lynx 1992, and Andreessen's Mosaic 1993.

Still blown away by the force of an idea trying to happen.
Even if the scooter craze crashes and burns (either due to regulations, insustainable business model, or lack of sustained customer demand aka here comes winter) it's gotta be helping drive down prices to manufacture and improving electric scooters and bikes technology. Scooter rental isn't super appealing for my use case, but buying one to use for commuting now is much more attainable than even 5 years ago.
Don't you need at least 1400 (well, 1399) pixels to distinguish 700 lines? Otherwise they won't be lines anymore.
This really sound interesting. I should try this.
Programming languages ranked
All the plastic you can and cannot recycle
The link is not opening.
Code Signing Certificate are usetool that can be used to protect code
Acting childishly will just make everyone's day worse: Apple's, customers (and children) who see the image's, and ultimately yours too, when all that shit lands on your doorstep.

Asserting your rights while finding a way forward that benefits both you and Apple is going to play out much better in the long run. Apple is almost certainly just negligent in this case (it's a data stream in an app they bought), not maliciously stealing content.
The article published: https://arxiv.org/pdf/1809.07193.

> we propose to model the action structure by hand-tuned
rules. By doing so, the available actions are reduced to a tractable number, which turns out
to be easier for designing our decision-making system.

It seems they are not using the hard-core Blizzard/Deep-Mind interface (pixel-based), but instead using an actions-based one, similar to Starcraft I bots and Open AI's Dota bot. Still pretty interesting though.
the only thing more important than understanding is shipping on time. but how are you going to ship on time if you can't understand it?
Probably be cause they found an interesting article there and didn’t realize it was available elsewhere (and sometimes it actually isn’t).
> As a person authorizing a product that can potentially emit unhealthy or unsafe levels of RF,

This used to be, can be, and should continue to be limited on a hardware level. You can't flash a phone to emit "unhealthy or unsafe levels of RF" if the circuit itself won't let such amounts of power to flow to the radio. Of course, someone could still mess with the hardware itself, but that doesn't scale and (in case of breaking RF limits) is illegal.

> or a parent of teenagers using social media,

This is interesting because, in a way, it's telling me that you the maker of the device are my parent. The argument sounds like, "to prevent your child from flashing your device, we'll prevent you from flashing your device". How about giving me the tools to limit my child's access, if I desire to do so, while not limiting my access?

> or a developer of medical applications intended for mobile phone...

This is a large topic, but to a first approximation, I don't believe a software that cannot be modified by the end-user for health reasons should be allowed on the phone. I also don't believe most medical apps in the smartphone spaces are of this category. The way I see it currently: either accept that some users (like myself) want to have full read & write access to their data on their phones, or make your solution a separate, tamper-proof, black-box device (and get a regulator to rule that for me to open it is illegal).
I think this is semantics, many people are talking about distributed ledgers more than Blockchains specifically.

"A distributed ledger (also called a shared ledger, or distributed ledger technology, DLT) is a consensus of replicated, shared, and synchronized digital data geographically spread across multiple sites, countries, or institutions." [1]

[1] https://assets.publishing.service.gov.uk/government/uploads/...
No but it could be a good proxy.
What is the easiest way to learn JavaScript fast?
I'm not so sure I'd want a 2GB vector to grow to 4GB, etc.
Roughtime: Securing Time with Digital Signatures
Yes, but in practice as a transit user (not in the bay area), rail generally ends up being more practical. Typically trains come every 3 to 10 minutes. In theory, buses could be this common, but more typically they run every 30 minutes or so. And taking into account a typical trip involves a transfer or two, this can make even short commutes over an hour, not acceptable to most people. The goal of transit isn't just to provide an option to the destitute (although it is nice if it does), but to make a serious impact on congestion by making a better alternative to driving for people who otherwise would have done that.
I was being overly simplistic.

I still think there is a difference between individually forwarding a funny picture to others, and what a meme is.

In order to be a meme, I should have said that it needs to be adopted and adapted by a collective of people.

A postcard sent by me to my friends with a cute cat is not a meme. An image macro that I make and share to a collective group of my friends and them making variations of it makes the image a meme.
> Exercise for the blockchain advocates: explain as simply as possible why a “private blockchain” is better than Git.

Because with git you either go:

- The linux way with one upstream and everyone branching of the "main" repo: In a lot of ways everyone is relying on the centralized main repo of linux, and in every other way they disagree on the final state (eg. the final code).

- The "github" way where there is one version hosted on a centralized service that everyone needs to trust.

Beyond the obvious security problems when trying to use git for actually important data ( for example: https://shattered.io/ ), git doesn't help you in any way to come to a consensus about what happened and in what order. Instead it gives tools to rewrite history as how you see fit (like rebase).
I never said it was good UX in general, just that it is good UX for me. And with tools like git one you learn the commands the UX doesn't matter. For a developer tool I think that is fine.
You're right and I'm totally on board with that. But that doesn't seem to be how Apple works, if they freely share everything they put on line then, for sure, have at it.

If they expect people to pay to access their IPR then they should, without prompting, pay others when they want access to their's.
Would be really great to have it on the upcoming RISC-V secure hardware, that should be released soon.

Then we would have open hardware implementation of this on a open application core as well.

Thank you so much for open sourcing this!
What the parent proposed is like McDonalds having to advertise the price of a burger with the meat, but offering a discount if you just want the bun.
Facebook’s problems in Europe are piling up
Wikipedia should be allowed to ask for donations inside of the little Google snippets. Doesn't that sound fair?
Spring Framework

1. Elegant structure
2. Strict code style
3. Project size is not too large
4. Have detailed documentation
>I mean, why can't they just have a regular bootloader like a PC?

Because there are several limitations with the PC boot process. See the heads project for what a reasonably secure PC boot would look like.

>The phone should at least always be unlockable by a single switch in the developer settings

True. That's a business thing. Not technical. Buy pixels in general for fewer hassles. Also, not just unlockable, but also re-lockable with custom keys. Again, only pixels support this.

>the whole idea of a system partition and data partition etc is just stupid

It's not. System is readonly. It reduces the attack vector significantly. Also makes block based updates simpler, and allows other security features like dm-verity. If anything, traditional desktop OSes are trying to move towards this direction. Look at Fedora's atomic workstation/silverblue.
Luxury and Soviet Era really don't go together. See Berlin Schönefeld for an example.
So all this is about is bandwidth and attribution?!? I mean aren't they sending their users to your web page? Other people would be glad if they would just have to pay the hosting costs for an image to get people on their page.
Electric Motor Industry Trends
This sets a bad precedent. I’m not convinced this is good for anyone regardless of how innocuous it seems.

Apple wouldn’t tolerate this if it was done to them. It would be like Disney complaining about copyright infringement while infringing someone else’s copyright...
Here it is: https://berkanan.chat
Thanks, very true. Several people have pointed this out so I'm convinced I'll have to rearrange the order. Perhaps just start with a simple example and move the event loop/handling after Widgets/QML. I believe I'll also have to split Widgets and QML into two separate posts as those are big subjects.
Agreed with the rest, I've ended up reading pypy's implementation of some functions sometimes to see how it works after trying CPython first. From the few I've read I'd say pypy looks nice by the way (I'm talking about standard library).
I was thinking Iron Man suit myself.
The game industry of Iran (2016)
Show HN: Run custom JavaScript, each time you visit a website/domain
After Deep Mind beat Go (and before), there was a lot of Starcraft being "the next thing" for AI. That's why a lot of research institutions (including Deep Mind and Facebook) are working on that.

In fact, it was always a bit suspicious that Open AI chose to work on a different game, which may or may not be as hard. Having multiple groups working on the same problem makes it easier to understand the progress made.
PC bootloader is totally insecure.

A good thing, IMHO.

"Insecurity is freedom."

"Those who give up freedom for security deserve neither."
What does it mean for a mountain range to be older than the continent it's on?

The article doesn't seem to go deep enough into the logistics of this apparent contradiction. Did the mountain range appear in the middle of the ocean and the continent gradually formed around it? Or was the mountain range simply part of an ancient continent that isn't immediately recognizable as Africa, but parts of which eventually became parts of Africa?
> it would be around Gold in ladder I think

In the article, they say it plays around Platinium / low Diamond, when they had it play on the ladder.

Though also: "It is worth noting that although TStarBot1 can successfully learn and acquire strategies
to defeat all the builtin AIs and TStarBot2, it lacks strategy diversity in order to consistently
beat human players. In the aforementioned test with human players, TStarBot1 will be
unable to win once the human player starts to know TStarBot1’s preference for Zergling
Rush."
If they had remained independent, China most likely would not have targeted them. This was probably going to happen anyway, but the timing is geopolitical. Twitch makes too much money to not have a Chinese version and the chat alone is too "dangerous" but by being part of Amazon they get on the list with soyabeans.
You missed the point of the parent and the grandparent, which both discuss why mercurial being better does not matter.
It is like porn, you know it when you see it.
Depends on the design goals. If you want secure code, you'll make it readable. Here's true(1):

:

A single "noop" in a 755 file.

A C true would be: https://cvsweb.openbsd.org/src/usr.bin/true/true.c?rev=1.1&c...

Here's a much faster true(1) if you need it: https://github.com/coreutils/coreutils/blob/master/src/true....
If you put a website online you're explicitly giving the right to link to it. If the government are not allowing use of their IPR then I think you have an argument, unless they're trying to stop linking to their stuff then I don't see the problem.
As you said you worked on proof of concepts, not production ready products. Show me a production ready product and I can show you how you can do the same without a blockchain.

As I said before and can expand now, blockchains have very specific security assumptions that are not present in a public blockchain. Once you remove those assumptions cryptographic protocols are enough to give security when organizations are not anonymous.

> I am saying that if two parties engage in a transaction and it's recorded in a digital contract on a blockchain, that might not always be enforceable as such in a court.

Digital signatures are recognized by the law in most countries.
I agree with Flask, much more readable code than Django for example. I would also add Django Rest Framework (and Tom Christie) to the list.
I think the Delhi metro is a good example of appropriate contemporary usage of brutalism: https://imgur.com/a/oJm9qHy

If the concrete was plastered and painted it would look bad after only a couple months in the sun and rain. (Medieval rulers had a similar idea but using red sandstone instead of concrete: https://en.wikipedia.org/wiki/Red_Fort#/media/File:Red_Fort_... )
Or even 1401 if it's black on white. I was being a bit sloppy in my language. Lines was historically a common term for vertical resolution back when it would have been scan lines.
I thought before of doing something like this but did not manage to seat and do it.

The one that I imagine is a simple web server on a rooted android where we can create a hotspot and change the dns to serve something like a.com locally (the reason to have [hostname].com is to make easy for people around to connect and load the offline webapp) then people connect to it and can see postings from others and post too, because it's a offline capable webapp everyone will have all data even after disconnected.

That is a thing that I miss when going to meetups to easy share info with others locally.
Ask HN: Are there board games like Go, Hex etc but a bit simpler?
Looking to make board game playing computer programs. Go, Hex etc are way too complex for my skill level, are there others that are simpler than Go but not too simple?

Also, are there any good books on programming such games? Games that are purely logical/computational and do not involve any graphics?
That’s also why the sizeof... operator was chosen. It’s an abuse of notation, because it returns a count of elements rather than the sum of sizeof applied to each, but ... and sizeof were already reserved.
This seems a little hard to believe given that in today's lawsuits the parties are often referring to emails. What's the fundamental difference between an email and a txn in a block?
I don't know about now, but for a long time MediaTek was the go-to for Android devices without locked bootloaders. My buying decision was almost entirely based on that (and the surprising availability of leaked documentation for the SoC on Chinese sites.)
It's a little odd that the article says this:

> The site is located just off Goat Island, a small island in the Narragansett Bay.

...but the map in the article doesn't actually reflect this. The little red circle is southwest of Brenton Point, and it's a couple miles away from the vicinity of Goat Island. I guess whomever put the map together phoned it in...or decided there wasn't enough room on the map to place the circle more accurately.
It's not clean at all. Thousands of different styles, no single convention on function-naming, etc.

Want a clean kernel, go look at the BSDs.
> On each chip expose the layer under a microscope

Or use X-ray tomography:

https://news.ycombinator.com/item?id=13952016
Show HN: Comparing text with Resin
They're a tool. If they're used to their maximum potential they can improve quality and increase knowledge in the team.

I am experienced and welcome reviews. They give me the opportunity to see if the team understands what I wrote or if it still needs to be adapted.

When reviewing I check for readability, to see if architectural constraints are respected and also offer advice on design and coding idioms.
Is anyone interested in having a discussion about NLP? The gist is my solution to a problem someone emailed me about the other day: how can I compare one audio clip to another and determine their similarity with regards to pronunciation and syntax, using Resin? My answer was that a syntactic comparison could be done with Resin if you first converted the audio clips to two pieces of text which you then compared to each other using the Resin search framework. Like I've done in the gist.

My question: what is state-of-the-art for comparing two audio clips syntactically?

Encoding pronunciation would mean encoding all words in their spoken form. Perfectly doable.

And do you have any feedback about how I performed the text comparison? Are you curious about the comparison technique?

[0] https://Github.com/kreeben/resin
> The state shouldn't be regulating these kinds of things, it only makes a mockery of itself.

so who should be regulating what happens in public schools?
There is always talk of mass transit when gas prices momentarily increase. Then we forget about it once gas prices drop.

The same thing with small economical cars with great mileage. Remember a few years ago when gas prices rose above $4 and every pundit was saying that gas guzzling trucks and SUVs were a thing of the past. Want to guess what the the best selling vehicles are today? They aren't small sedans. They are large trucks.

https://focus2move.com/usa-best-selling-cars/

> Americans chose to pay later for mass transit. Now it’ll cost us a fortune.

No. We chose cars. And we will continue to choose cars over mass transit. It will take something drastic to change american culture and our lifestyle.
The post is probably automatically flagged because it's a new user and he has been largely downvoted in his other comments.

You can vouch for it if you think the comment has its place here.

(edit I don't have the "vouch" option, so maybe the comment has been downvoted as well, but it doesn't appear grey to me so I'm not sure).
Yes. Depending on how you approach it. Get legal advice. Various courts operating at local level can do surprising things. Like impose small fines or settlements, as well as pass judgements if the company doesn’t turn up.
FYI, "Surprise, surprise" is generally meant sarcastically. I think you mean "Surprisingly".

https://www.merriam-webster.com/dictionary/surprise,%20surpr...
Joda Time is one of my all time favourite libraries.

After struggling with JVM stdlib time nonsense, JodaTime was a breath of fresh air and actually made programming with time fun.
I'm surprised by the finding that Google changes have a medium sized of 24 lines changed. While I'm a big fan of small commits, I was under the impression that some of the large open source Google projects (Chrome, Android) have relatively large commits flowing into their repositories.
Nah this was really just a fun side-project, just posting as proof-of-hack. Also this specific game was retired from machines. Fun as a challenge, though!
New Microscope Shows the Quantum World in Crazy Detail
Where I have worked I am semi famous for a style of code review which almost exclusively is based on asking questions. A lot of the questions are around design rationale, because the "why" is often not captured. Questions can either lead to code changing, "oh, you're right, that doesn't make sense" or "missed that!" , or a comment being added to ensure the rationale is captured. Developers seem to really appreciate this type of review, in contrast to the style you have outlined.
It's very likely that it is a violation of one or another contracting rule. If you wanted to, you could get in touch with the government agency's contract management and complain.
A better comparison would be some sort of defect rate. Does SQLLite manage less defects per line of code per month (or whatever) than PostgreSQL with that test suite?

Is there a distinction between the best codebase and the best test suite? Probably.
Not necessarily relevant, but 15% of the issues are labeled "wontfix".
Digital Freight Startup Convoy Raises $185M, Surpasses $1B in Value
I was going by the announcement on this page https://www.nitrokey.com/news/2015/5-new-nitrokey-models-and... which states, "The Nitrokey U2F is a third party product ..." as well as some historical articles like this one https://lwn.net/Articles/695438/. I wasn't aware that this was an official product developed by nitrokey. Did this change recently ?
PostgreSQL and Quake3 are good candidates. Both are C codebases which are surprisingly readable even by relative novices.
Huh, could you elaborate? From what I know MediaTek has a terrible reputation for not publishing information about their chips.
In-depth interview with Cambridge researchers on existential risks, including AI
Automated testing is useful and good. But I really feel it's reached a lever of fetishisation that is quite concerning.

Testing code is code which needs to be written, read, maintained, refactored. Very often nowadays I have to wade through tests which test nothing useful, except syntax. Even worse, with developers who adopt the mock-everything approach, I often find tests which only verify that the implementation is exactly the one they wrote, which is even worse: it makes refactoring a pain, because, even if you rewrote a method in a better way which produces exactly the results you wanted, the test will fail.

So, the ratio of testing code vs implementation code is a completely wrong proxy for code quality.

EDIT: I'm not criticising SQLite and their code quality - which I never studie - but the idea that you can judge code quality for a project just by the ratio of test code vs implementation code.
The US government tried something similar in the 1950s:
https://www.amazon.com/-/dp/0841218579

They built a plant in Malta, NY to prepare pentaborane and higher boranes for use in missiles, or something. The project got nowhere far because the combustion residues are solid. At least alane is only pyrophoric but not neurotoxic.
High quality code and one of the best APIs i ever used:
https://github.com/requests/requests

Best source code layout, architecture, maintainability:
https://github.com/rg3/youtube-dl