skysight-inc/HackerNews huggingface dataset:
I'm a pretty heavy TS user and I was pondering the same thing. I've not been able to find a motive for allowing numbers as interface keys, but Symbols actually do make sense since, turns out (I'm always learning something new), you can use them as object keys in ES6: https://www.keithcirkel.co.uk/metaprogramming-in-es6-symbols...

That post outlines a few use cases which are admittedly outside of everyday JS/TS usage but I can see them as quite powerful when, for example, building frameworks and libraries that expose an API. I'd offer real-world examples of my own but I'm still working it out for myself .)
Military organizations have been studying how to lead people under a variety of conditions since effectively the dawn of time.

Many people make the mistake of fetishizing military leadership, but I absolutely thing there is a lot to be learned by studying the techniques of the organizations that have been building leadership skills the longest.

I talked a bit about this https://adamdrake.com/command-and-control.html and some of the misunderstandings that companies have when it comes to leading people.
Do you have a scientific resource that proves your statement? Like a model that was run in a computer and resulted in a perfect free market?

Maybe it would be true in a perfect free market, where people would act rational and won't be jerks,

I don't have proof but intuitively I can see a free market simulator where some actors will find a small loophole and exploit it to maximize it's profit destroying everyone else.
In the context of the original post, he is referring to origin (the convention for a default remote repository), not master (the convention for a default branch).
When we hear the word "owner" we associate that with full ownership, as if you own a car, house or whatever and take care of it and use it.

This kind of ownership is much closer to lending money to someone. While they are technically owners, emotionally speaking the arrangement is much more as if Elon Musk owns the company and the "owners" lent him money.

Elon Musk is the person who has built the company and spent a considerable amount of time working in it, putting his heart and soul into the company. An investor can jump in at any time and become an "owner". Does not mean an investor has the same emotional attachment to the company.

Say you build a house with lots of efforts over many years and live there for decades. To pay the bills you sell ownership shared in the house to investors. What happens to that house is going to matter a lot more to you than the investor.

It is not without reason that family run companies often outperform stock owned companies. When you have an attachment to a company beyond mere short term profit, that is a stronger bond.
JavaScript Tutorials – Error Capture (Try-Catch)
(Very good points, small doubt to pick)

> Chips are getting physically bigger

They are? Over the years, I got the notion that the cheap controller chips were about 30 mm2, the regular desktop CPUs about 100 mm2, and server class powerhouses around 300 mm2.

With a quick look, I found mention of Epyc being four 200 mm2 dies packed together: https://www.eetimes.com/author.asp?section_id=36&doc_id=1331...

Wafers have gotten bigger, https://en.wikipedia.org/wiki/Wafer_(electronics), but I suppose that manufacturers just want more dies per wafer, not larger dies.
That must be one of the silliest hacks I've ever heard, right up there with oven-baking electronics to fix loose solder joints. I love it!
I find the Zero Clause BSD [0] the simplest for the purpose.

Here it is in its entirety:

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

[0] https://spdx.org/licenses/0BSD.html
Show HN: Cryptoradar finds the best crypto marketplace based on price and rating
I’d be really interested to hear about what MZ is like from people who’ve worked closely with him. All of his public pronouncements seem to lack reflection imo (eg that letter to his child), but perhaps he’s limited by what he can say.
This would be caughtable at compile time if the C programming language supported unions in a better way than it currently does.

Ada, for example, has discriminants, which allows binding of a specific view of a byte buffer to a specific constant.

There are also other solutions, for example making values to be types.
So you're saying that meritocracy is good but neglected, and diversity often has more meritocracy as a consequence...

Why not focus directly on meritocracy in the first place?

In particular, the conversation in IT, which is probably among the most meritocratic fields (no certifications required, most learning material available for free online), is focused on employees, not executives, so I'd say it possible that focusing on diversity has no, or even negative, effect on meritocracy.
Ask HN: How can I initiate communication from IPv6
We need to debug an issue with IPv6 in our platform.

Although cloud platforms we use fully supporting incoming IPv6 traffic, so there is no issue on this part.

However, for debugging purposes, I could not find a way to communicate over IPv6. That is forcing a client side to communicate over IPv6.

Tried AWS and GCP for this purpose.

Do you know of a VPS that allows this?
I was thinking about this from the perspective of a server like Gitea. What I meant by 'read the repo' is retrieve objects like commits to display them to the user.

So on the server you should only ever have packfiles, and in order to efficiently read packfiles you read the index (idx) file. I'm not positive, but I think that this file needs to be read in its entirety in order to access an object. Even if you don't have to read the whole file, it's probably best because you generally read more than one object at a time (e.g. if you display a list of files in HEAD you read the commit pointed to by HEAD, read its tree, and read all of the blobs in its tree).

My thought with using loose files rather than packfiles is that you wouldn't suffer the memory overhead of lookup, you just open the file at `objects/some/object` and parse it.

The real solution here is probably to get a server with more RAM and cache repositories. I'd be interested to hear what GitHub does.
Display Resolution explained
On one of the teams QnA sessions they admitted as much about the UI tooling. I think that the guidance for a "real" app would be to use the command line tools.

It's a fair critique though. It's not obvious how you would build a proper SF app that takes advantage of the platform. Hopefully that will change as it is open sourced.

I built something on an early build of SF that was pretty simple and it was hard to get up to speed. It was more of a batch oriented thing that ran off of queue inputs, so I didn't have to deal with getting load balancing inbound traffic working or other stuff.

Looking at SF recently it looks like they have made a lot of interesting changes like DNS service resolution. Something like Azure AD managed service instances would make bootstrapping secret management a lot easier. I would really like to see the ability to write PowerShell that plugged into the SDK and could take advantage of everything.

The comparison to K8s is more like the "guest exe" project wrapper they had. If you aren't interested in the API's for plugging into their storage or other platform features you can just wrap an executable and specify some parameters about how to host it in configuration.

This is one case where the VS tooling didn't do SF any favors. People think it's the only way to use the thing.
I forgot to mention that I'm thinking about it from the perspective of a server like Gitea. So I want to retrive objects like commits and blobs from the repository.
Add only v6 destination ip to /etc/hosts so when you program talks to host.domain.name it instantly resolves to a single v6 ip?
Teammate to Team Lead is a topic that I run into a lot with the companies I advise. I have a small post on the topic, which I'm planning to expand:

https://adamdrake.com/teammate-to-team-lead.html

There are quite a few things, some of them subtle, that really change once you're in a leadership role. The frequent example I see is that people don't realize that if they are in a leadership role, then there will be decisions they make which people on their team do not like. That's ok. It's not the job of the leader to win a popularity contest, but rather to try to do the best thing for the individual team members, the team, and the company itself. A lot of people have a tough time with the fact that others won't like their decisions, but that's a critical thing to digest for those who are going to be effective leaders.
3D Printed Concrete House
The Australian government is trailing badly in the polls, they also just announced some of the biggest income tax cuts in history after campaigning on a platform of dramatically reducing the budget deficit.

Policy in the Western world has become about what focus groups like rather than evidence.
You are wrong.

GitHub is a hosting platform for git repositories, which has collaboration tools (such as issue tracking and code review) built into it.
I don't know about Gitea specifically, but notabug.org uses Gogs which Gitea is a fork of.
Yes, they should force Facebook to support the ActivityPub protocol. Not sure what that would mean for privacy/GDPR though ...
I hate unions
I interpreted “random” in the parent comment to mean “ad hoc, but planned”. Meaning, not random, untrusted or unknown engineers, but engineers from an obvious trusted group (like my team), just accessed in an ad hoc manner.

The point being that short of choosing a convention for which person’s copy (or which machine, etc) counts as the primary source of record (which would then just be poor man’s centralization with the admin costs and maintenance of any centralization tools now a burden on the team rather than a third-party product), then interacting in an ad hoc way with even just my known team’s set of distributed clones of the project turns into a bookkeeping problem nobody wants.

I can also imagine a non-centralized model can lead to many more complicated workflow failure modes. I’m just thinking about how often novices get stuck with rebasing errors or squashing commits incorrectly, and bikeshedding arguments over whether it’s ok to ever revert master or if you should intentionally keep mistakes in the history and correct with new commits. I can imagine it being even worse when there are fewer conventions, since conventions are often the only way to avoid these bikeshedding debates about preferred git hygiene methods.
Our 7-steps strategy to kickstart your Drupal 8 web development
If you have rather low standards. Email works just well enough, but it's turning into walled gardens, has no de facto e2e encryption, still has a spam problem and has a terrible UI for non-technical users in group settings.
The patch-based workflow is very similar to how the Linux kernel review workflow works. Arguably, this is the way Git is supposed to work - submit patches, discuss them, then merge them once they're ready. Every idea is one commit, no checkpoints or "fix typo". Pull requests are used to merge other maintainer's trees that have many commits in them. It also ensures that there's a permanent link between a commit and its review, since there's a 1:1 mapping.

Gerrit works similarly, but Phabricator's UI is much more friendly.

For small projects or teams, the overhead of introducing a new tool may not be worth it, for for large projects with many contributors, the workflow is - in my opinion - strongly superior.

If you set Github to "squash and rebase" and enforce a "one PR per idea" rule, you will get a pretty similar workflow. The tooling isn't quite as polished, but it's sufficient for many projects.

Quote:

> As far as code reviews go, this is pretty spot on. I was part of a a startup that was using GitHub pull requests for code reviews. As the team grew, it became more and more intractable, although not simply because of notifications. Side-by-side diffs and checkpointed diffs (so that you can see what changed since the last round of review and whether/how your comments were addressed) are handled very poorly by GitHub. We ultimately switched to Phabricator, and while there was a little friction as folks got acquainted with the new tool, it made code reviews a much more pleasant process. Recently, I had to go through a full code review back on GH pull requests, and it felt like pulling teeth in comparison. They're fine for interacting with contributors to an open source project, but compared to working with a tool like Phabricator that's built for a code reviewer's workflow (and for teams of engineers working together on a project), they just don't hold a candle, in my opinion.

(from a previous discussion: https://news.ycombinator.com/item?id=7697132)
you could use ngrok to expose yourself temporarily for distribution
Synth emulation sounds like it can take a fractional-millisecond hit to run buffered on a different core. "variants of convolution" is hopelessly vague. Physical modeling can't be parallelized? Filtering I'm not an expert on but that's exactly where I'd expect a few instructions to go very far. Oversampling I already took into account when saying "ten thousand".

This is not to say that your problems aren't real. But I'm skeptical a concerted effort was ever made to go multi-core here.

What's an acceptable level of total latency, so I can understand better?
I need the client side to be IPv6. Not the server side.

Source IP.
Adding a few spelling mistakes and reworded sentences will most likely not pass the https://en.wikipedia.org/wiki/Derivative_work#Originality_re..., and therefore not be considered a new copyrighted work.
You have to set up any of those apps and use the provided proxy in your browser. Now when you visit some site you can take a look at which site is using the token saved by fb in your last visit. That is the gist of it.
In terms of GitHub alternatives, which is clearly a trending topic this week at HN, Fossil is one of the most interesting to me because it's not just source control but contains an issue tracker, Wiki, and a built-in http server as well. The only thing I'm not sure about is whether it has native support for Pull Requests or not.
By random developer's machines they meant the actual machines. You can technically pull from another developer's (random or not, but anyone with the repo) actual laptop rather than going through an intermediary.

That was in fact one of the arguments a few true believers used in favor of DVCS when it was still a novelty.

The think I think truly gives developers comfort, in addition to all the nice features it makes simple, is LOCKSS (Lots of Copies Keeps Stuff Safe). When everyone has a full copy of the repo, even if you generally work through an intermediary, the central repo being blown away or taken control of by a bad actor doesn't mean you need to reconstruct the history of the code from whatever single snapshot checkouts individuals happen to have.

That said, I will agree that the workflows enabled, as well as the power of a common platform, are probably what really let git and github become the new default.

edit: Also I imagine being able to paw through the entire history and bisect entirely locally are vital features for a small (but essential especially of open source) minority of developers.
I'd be interested to see some numbers about projects that actually leave Github. Other than FUD about the Microsoft acquisition, has something changed on Github that is making people talk about leaving? Why run away before there's a concrete reason?
Thinking the same thought reading this. Stateless service distribution isn't the hard part.
use ngrok to share repos
Show HN: CircuitVerse – Online Digital Circuit Simulator
BIGO Live is designed exclusively for overseas users by US-listed YY
I realize this is returning because of the current events, just for reference, (some of the) previous discussions on HN:

[https://news.ycombinator.com/item?id=15752725]

[https://news.ycombinator.com/item?id=13668952]

[https://news.ycombinator.com/item?id=12673229]

[https://news.ycombinator.com/item?id=8697028]
All companies, including Apple sell lots of products to the government because, next to Walmart, its the largest employer in the country. It has a $4T budget.

Apple doesn't give a s* about your privacy. They claim to give a s* about your privacy. Those are different things.

If you want this to change you have to get involved with legislation to change the rules/law. That's the only option. None of them "care" about you or really anything, because they aren't human. Companies respond to changes in the law which bound the approved set of behaviors. That's it.

EDIT: I got the budget wrong. Changed that.
Agreed. At first I thought it was a bug, and was rather taken aback when I realised it was intentional. Of course, as I have an aversion to click-baity emails, I have barely visited FB since...
Absolutely. People often don't appreciate or feel comfortable with the fact that when in a leadership role, the relationship changes. New leaders often focus too much on being liked, or having their decisions liked, over doing what is best for the team and its members. Being a popular and well-respected leader is the outcome of good decisions, support, and relationships, not a consequence of trying to do the popular thing.

It's especially tough for people who are transitioning from being part of a team to leading that same team. I elaborate a bit here:

https://adamdrake.com/teammate-to-team-lead.html
For SpaceX probably especially since SpaceX's president has started to become more visible. However for Tesla I doubt it, at least not yet. Musk wouldn't be sleeping at the factory if he didn't need to micromanage.
Facebook confirms data-sharing deals with Huawei and other Chinese companies
I tried using GUI tools with Git when I started but after I took the time to learn the core operations, using the CLI became a lot faster and less scary.

After using other Atlassian products and being very disappointed, I can't even imagine using a GUI built by them.
Except in my experience some laptops don't allow the WiFi (or other devices) to be changed.
I can confirm the freezer trick worked too. This was back before multi-platter high density drives though. I tried it recently with a failed 6TB drives from a friend, and it didn't work.
10 Important Life Tips for Entrepreneurs from CityGreens Founder Gaurav Narang
Also, they're not "loops" in the physical sense, though they do operate logically as loops: pulses go in one end of the tube, travel through the mercury, and are received at the other end, where they are repeated elecrtonically back to the transducer at the starting end. "Reading" a bit means waiting for the moment when it is hitting the pickup end, and pulling it out of the loop at the same time as repeating to the transmitting end. "Writing" means waiting for the same moment in the "loop" and replacing the output of the pickup transducer with a signal that represents the data you wish to write.

Thus, there is an inherent tension between making the tubes longer (more storage per tube) versus keeping them short (lower access times). This tension is inherent to all forms of "delay" memory, including the wire torsion memory grandparent mentions.
You could use it to heat something up that you actually want to be warm.
The keyboard: the latest macbook has a terrible keyboard for development, not only it feels awkward to press but it is prone to breaking very often than you would imagine with keys getting stuck and costing hundreds of dollars to get fixed.

They touchbar, if you opt for one, is pretty much useless other than to unlock the macbook. Fiddling with the volume and the bright switch is a pain.

The track pad is superior in the macbook.

The screen resolution, is superior on the macbook, unless you go for a 4k display xps at the cost of battery life.
There is also Orange, although I am not sure it is 100% related to MLFlow. Orange is a joy to use though, so even if it doesn't solve all the problems solved by MLflow, it's worth to be mentioned in this context.
Minor suggestion: I would replace 'learning' with 'studying' for clarity, since "learning trees" instantly associates with gradient boosting (e.g. xgboost/lightgbm) in machine learning.
How you can access WhatsApp features before others
Yeah, everybody is going to start reading the entire source code of the apps they use.
I use phabricator at work, it is an incredible tool and the patch workflow and even dependencies for diffs are wonderful.

I’ve also tried to volunteer add to a project on github but whenever a pull request depends on another, it gets messy. Rewriting history all the time to make commits easier to review has been a pain.
Sure, that's good advice. But all that stuff already happened here except for "complain enough".

Also I didn't realize lazy loading was a common need. Does that mean that awkward syntax is going to be everywhere? Surely there's a better way to get that, like with an import lazy keyword. Really anything would be better.
The most important lessons I’ve learned after a year of working with React
Do that on the client? Turn off IPv4 entirely on the client?
I think "foot gun" (https://en.wiktionary.org/wiki/footgun) is more common.
Is it actually slower or is it just the good old Intel compiler at work again? Binaries compiled with it have great performance on Intel chips, but perform a vendor id check and slow down on non Intel chips. As long as Intel CPUs remain dominant game developers will continue to use it.
I do. I gave up many higher paying opportunities and took risks. It is tough to turn down a good offer without a better alternative just because the work is displaying data on a web app. I've found the trick is find interdisciplinary teams. Look for jobs building medical/scientific research equipment, or renewable energy, or robotics. Also, the more experience that you get building CRUD apps, the more inertia your career has in that direction. Go to meetups, build cool things and show them off. Look at R&D grants from your state and cold email those companies. It will take time, but good jobs are out there.
We've been using Fossil for more than 6 years as our primary SCM for more than 30 internal projects.

No problems with it so far. Its easy deployment as well as the ability to run a full SCM with a Web UI from a 3 or 4 MB executable on Windows or Linux is baffling for any new developer who is introduced to it.
Middle-earth in colour: How Tolkien drew his fantasy universe
“Propaganda” is just a pejorative way of describing attempts to persuade people of something you don’t like.

Please explain how the actions you list have any chance of successfully promoting anything but already popular ideas.

And would it be okay for Fox News or CNN to engage in propaganda, and spend billions of dollars on it, as long as it’s under the guise of journalism? Are judges going to start ruling on what is propaganda and what is news?
Few, for many, because digital ads aren't terribly persuasive.
So you’re fine with the government telling you it’s illegal to distribute a movie?
Tristan Harris witness account on Fake News to House of Commons commission [pdf]
Tallinn and Kuressaare.
Some notes on high speed networking on PCs
> most universities don't need a full-time glass-blower

if a research university doesn't need a full-time glass-blower, they ain't doing enough research!