skysight-inc/HackerNews huggingface dataset:
> deleting this one line of code can have a dramatic effect on seemingly unrelated performance micro-benchmarks. Some numbers get better (e.g. +5%), some numbers get worse (e.g. -10%). The same micro-benchmark can get faster on one C compiler but slower on another

There's a fundamental disconnect that makes it difficult for humans to reason about performance in computer programs. Because the speed of light is so slow, computer architecture as we know it will always rely on cache and OoO to be fast. The human brain does seem to work out of order, but it's only used to thinking about a world that runs in order. When we use theory of mind, we don't model other people's minds, we use our own as a model for theirs; see mirror neurons[1].

Because of this, standard code benchmarks are not very useful, unless they can demonstrate order-of-magnitude speedups. Even something like a causal profiler[2][3][4], which attempts to control for the volatile aspects of performance, is of limited use; it cannot control for all variables and its results will likely be invalidated by the same architectural variation it tries to control for. Instead (with respect to performance) we should focus on three factors:

- Code maintainability

- Algorithmic complexity

- Cache coherency

Everything else is a distraction.

1. https://en.wikipedia.org/wiki/Mirror_neuron

2. https://www.youtube.com/watch?v=r-TLSBdHe1A

3. https://arxiv.org/pdf/1608.03676v1.pdf

4. https://github.com/plasma-umass/coz
That's because you already know how to code. For someone with no programming experience, the programming would be the hard part.
That's because there's very little incentive for doing a Phd so immigrants do it so it helps their immigration status. It would take someone to be insanely in love in CS to forfeit 300K or so compensation for a Phd.
hm... seems that privacy issue:
https://developer.apple.com/app-store/review/guidelines/#pri...
can led to ban from AppStore
Office 365 AND Dynamics (CRM, Finance, ERP etc.)

The one thing Microsoft really needs still is in house, industry specific layers to drop on top of dynamics, such as https://www.mtwocloud.com/ instead of depending on these third parties. Microsofts own sales teams don't know these products exist, and they have poor visibility. Enough companies won't even touch Dynamics, preferring something more industry specific.

Look at all the other things they cover in the SalesForce, Adobe, Oracle realm that automatically integrate right into the Power Platform.
https://dynamics.microsoft.com/en-us/
How much energy is one soda can’s worth of aluminum?
Experts warn parts of U.S. on verge of being overwhelmed by Covid-19 resurgence
This is probably the answer.

I watched a great talk about this, and how to avoid problems that result from it. The presenter built a framework that made random changes to alignment of various blocks of code with two different versions of the same microbenchmark until it had high statistical confidence that either one was faster than the other, or it would eject and say that the difference between the two was statistically insignificant. Or something along those lines.

I'm looking for the video now, but I can't find it. Pretty sure it was CppCon but I'm not positive.
This[1] talk from Emery Berger at last year's Strange Loop does a good job discussing the impact of alignment and other 'small' changes on performance, and how to estimate the actual impact of changes on performance

[1]: https://www.youtube.com/watch?v=r-TLSBdHe1A
> I do still buy from Amazon. The ease of returns still gives me confidence that I can decide after receiving an item whether the price:quality ratio is worth it.

The time and labor spent refunding is well worth spending an extra few dollars at a competing vendor where I don’t have to worry about commingling nonsense.

If you told me 12 years ago that I would be choosing to patronize Best Buy over Amazon, I would have told you Best Buy will be out of business. Lo and behold, I now pay Best Buy (or manufacturer website) whatever they want since I can’t trust Amazon to not send me some AliExpress garbage.
Was it a language where the comment would be compiled out ahead of time? Or still present at runtime like JS
Great comment, thanks.

HN just keeps delivering. It is almost impossible to believe how much embedded technical knowledge is lurking here. You could colonise Mars with it.
https://news.ycombinator.com/item?id=23634519 :)
Mounting clues suggest the entire field of medicine has no clue whatsoever. You can't trust anything without waiting for 2-3 months to see if there's a retraction, and maybe not even then. I will start paying attention when they figure out, once and for all, whether eggs and butter are good or bad for me.
Call me crazy, but with all the high-level language features in most of the commonly used languages of today, combined with the depth of rich IDE tooling for those languages, we already exist in a no-code world.
How to create a winning pitch deck
You could show that they accessed a device or used a service immediately prior to being subject to litigation (through network logs for example). A judge would not believe the person didn't remember the password in this case. If they destroyed the keys after receiving a request for data then that would be destruction of evidence which is already punishable. If the data is held by a third party then the third party could perform a password reset.
farm sim is the most broken game ever.

Even with the more realistic mods, which brings the most basic things like seasons(!!!), it is a futile fight against the bugs and bad UI.

farm sim is nothing but an advert for tractor brands.

Watch a couple youtube videos but NEVER pay it. you've been warned :)
Do you mean faster to write, or faster to run, or the combination of both?
Slow Processing
Sounds a lot like Google App Maker, which is now scheduled for shutdown in January 2021.

https://developers.google.com/appmaker
The problem is that iOS doesn't differentiate between a call that merely checks for the presence of a clipboard entry (e.g. so you can enable "Paste" in a menu/submenu) and actually copying the contents of the clipboard.

The workaround (for legitimate apps) is to simply always keep that "Paste" option enabled--even if the clipboard is empty. That way you won't freak out your users and only suffer the most minor of usability consequences.

Having said that I don't think TikTok has any relevant functionality such as enabling a "Paste" option so... Most likely nefarious!
AWS Chalice
Far-left ideology has claimed more lives than far-right ideology: https://en.wikipedia.org/wiki/Mass_killings_under_communist_...
> programmers are people too

Are we really?
Usually it's not possible to form such a predicate. If we have impredicative base universe, then it's possible to form a predicate over all types in the base universe (which may or may not be all types in the language), including the predicate itself. However, this feature is rarely used in type theory, because it is incompatible with classical logic.

In programming, this is more commonly available, because we don't necessarily care about propositions, let alone classical logical proofs. The polymorphic identity function type `forall a. a -> a` in System F quantifies over all types including itself.
Fairly impressive if true - they must have already gobbled up tens of millions of passwords and other sensitive data that users had no idea was being stolen from their clipboard.
Let's be real. Is anyone honestly surprised?
Make code easy to read and extend without breaking it. By now, many of us are aware of the importance of writing tests. However, there is a problem in making them readable.

Here's one Kevlin Henney's lecture [1] that crystallizes it. It took me a long time to find it, so you are welcome.

Once you start naming things like this, adding future use cases becomes far less risky and thus you don't need to waste time on them.

https://www.youtube.com/watch?v=tWn8RA_DEic
If you want to learn about agriculture, find a farm you can support close to you, and enroll in a summer program. You will learn more if you get your hands dirty.
also https://1.1.1.1/purge-cache/ for cloudfare.
Microsoft's cloud storage integration suffers from configuritis for me (poster child: SharePoint).

I'm sure there's a perfect way to use it for all my use cases. But doing so would require I learn / study the correct OneDrive-specific settings. Which would only be useful for OneDrive.

But by far worse, the defaults on most Microsoft products don't follow first, do no harm. Consequently, unless I learn the settings and monkey with them, adopting the product will negatively impact me.
this is weird, you usually can't past data from clipboard (part of the browser sandbox). copying into the clipboard is free, pasting is not.

Edit: This seems to be the app TikTok, not a website.
Apologies.

Honestly, we felt that our description (cloud platform) doesn’t match our USP, and we thought that our phrasing conveys our message/ambition more succinctly.
It might be worthwhile to interview those YC founders who were not successful in raising their Series A and had to close shop. Weed out that survivorship bias in the analysis.
What's the saying? Code-less environments make 90% of building an app simple, and 10% impossible.
There are a lot of valid usecases for clipboard saving, I don't have an iOS app but I run CopyClip which would be kinda ruined by this "feature".
Contrast this with J.S. Mill.

"Hitherto it is
questionable if all the mechanical inventions yet made have lightened the day's toil of any human
being. They have enabled a greater population to live the same life of drudgery and imprisonment,
and an increased number of manufacturers and others to make fortunes. They have increased the
comforts of the middle classes. But they have not yet begun to effect those great changes in human
destiny, which it is in their nature and in their futurity to accomplish. Only when, in addition to
just institutions, the increase of mankind shall be under the deliberate guidance of judicious
foresight, can the conquests made from the powers of nature by the intellect and energy of
scientific discoverers, become the common property of the species, and the means of improving
and elevating the universal lot. "
My Windows VLAN simply doesn't have any internet connectivity at all. I use those machines for benchmarking work, and I can't have them installing updates and invalidating previous measurements. Isolating them from the Internet entirely is the only simple way to make sure Windows updates are really not going to happen for any reason.
running old app on new OS can cause unpredicted behavior is normal, and here is assuming it is not iOS14 bug
This article touches on something that I really enjoyed about (the early days) of Perl 5, and I think it may body well for the future of the language.

You could write Perl 5 like it was just a better Perl 4. All of the craziness with modules and references was hidden to you if you wanted to write a Perl 4-esque script that needed to talk to a database or do something else that you could find a module in for in CPAN.

The people would wrote those modules, God help them, I don't know how they managed to write the executable line noise that was in the source, but I didn't care. I could get my job done with a few simple `use` statements.
Apple Pay can be exposed with the Web Payments API implemented by every web browser. If you use the API, it’s exposed by each platform using its own payment standard.
This is really to cut down on Google searches.

In fact, if you go through many of the features in iOS 14 they are designed to let you do things without having to Google for information/links to do it.
Here is one of the DVC maintainers :) Congrats! It's great to see more tools for codifying data in different scenarios.

To be honest, since you introduce a new workflow and a few new concepts it's not that easy to get the right perspective in 5 minutes (I know the same problems exists with DVC and we've been iterating on docs a lot). Mind a few questions?

Do I understand it right, that is mostly focused on tabular data? Kinda git checkout for an SQL table?
In order to know when you should enable the paste option.

It can be an elegant design choice, but also a design choice that appears to be or is an abuse of privacy.
it's very hard for a business process to do with "good enough" code. in many situation either the output is complete and correct or it's of marginal utility.

it is also geared heavily toward internal software, so it has a very narrow scope, it's not really for startup, it's not really for large enterprise with their it deps, it's not really for jim in accounting with his excel honed trough year of hard work...

it will find a niche for sure, but the harder part of the use case it covers is modeling workflow interdependencies and that complexity doesn't lie in the software
It looks like there could be a reasonable explanation for this. There are apps that have different behavior whether or not there is text in the clipboard (e.g. enabling a "paste" button), and they're only checking that the text exists, not what it is. There's a new API that will let devs do that without triggering the user notification.

If TikTok is actually constantly loading the clipboard, that's obviously terrible. I'd bet this behavior is gone by the next release, and that shows how useful this new notification is.

Same issue with notes from that app's developer saying what's going on and how they will fix it: https://twitter.com/ecormany/status/1275903947899797505
Possibly 'Performance Matters'? (https://www.youtube.com/watch?v=r-TLSBdHe1A)
That's a great go-to. I also use character width for setting max-widths (66-75ch is best range for reading length)
I love it for the purpose of building custom internal apps.

What would make it better is if:

* It’s open source, therefore installable on-prem and free from vendor lock-in.

* It has multiple swappable backends.

This thing and Bootstrap can replace a myriad of random in-house apps.
Yeah, imagine an "app store" for Lambdas that work with this, or just a trend of SaaS companies making their APIs "Honeycode-compatible".
I took some similar benchmarks recently: https://code.ivysaur.me/interpreter-binary-perf

Perl5 won the dec2bin benchmark.

The other thing I learned was that PHP's binary/decimal functions are two orders of magnitude slower, despite its core interpreter performance being best-in-class.
Ternary expressions are not covered by python code coverage tools by the way.
Without wanting to prescribe solutions, I do think that elements reminiscent of StackOverflow, Twitch and GitHub could be relevant.

As part of the developer experience, everyone hits design and implementation doubts or blockages from time to time.

The key feature to provide would be an unobtrusive way for the developer to 'surface' from the obstacle -- perhaps including a link to the relevant lines of code, issue, or project -- and to raise that question with a community that subscribes to the relevant topic(s).

Ideally people viewing and responding to that question could view and gather the project's context -- easy with open source projects, for example -- to help guide and improve their responses.

So as not to give the impression I think this is a risk-free idea: I do think a platform like this could raise questions about the authorship and ownership of code.

I believe it's reasonably well-accepted in startup culture that searching for snippets of code is OK, certainly with fair attribution; but is crowd-sourcing an answer based on your personal network value OK?

(addendum: also, ethically - how would a platform like this fairly remunerate participants and ensure that they're well-informed (and retain control over?) the use of their contributions?)
Fortunately for tiktok, such rules only apply to small apps. They will probably get a polite phone call from a VP asking them to please stop doing that but noting more.
Oh yes! Please! I have wild fantasies about TikTok being banned like that.

"Why was TikTok banned?"

"Because the violated the basic capitalistic principal of existing not to make money but to amass a Nazi-like ledger/database of every person in the world on behalf of a nation state."
In my 30 years (yes) working with Perl (4->5.32), I have never, once, used wantarray. Perl does not lend itself to bad code. Bad coders, people whom cannot use or articulate good practice in coding or documentation, lend themselves to write bad code, in any language.

I used it for automation of my calculations in grad school. For data analysis. For monitoring.

In my subsequent day jobs, I used it to develop shipping products. No one really should care what language something is written in, if it does the job well.

Most recently (a few weeks ago), I used it as the driver for creating and submitted 10's of thousands of jobs for COVID19 research the team I am working with[1][2].

For the above project, I had to forward port 12 year old C++ code to make use of modern C++ based boost libraries. Took a bit of time to fix this. But the perl code, ran perfectly, and quickly[3].

Anyone trying to portray things otherwise, likely has a longstanding axe they like to grind. Language advocacy can be done without attempting to tear down other languages. Though those who argue against perl often bring up the same, old, tired, and incorrect points.

I'll keep using perl thank you. And Julia. And C. Each has their domain of applicability. Most people know and understand this.

[1] https://community.hpe.com/t5/advantage-ex/how-my-supercomput...

[2] https://community.hpe.com/t5/advantage-ex/the-story-of-how-i...

[3] https://scalability.org/2020/04/fun-and-topical-hpc-project-...
Thanks for the correction, hopefully my statement that I'm hardly a hobbyist makes it clear I'm not super sure :)

I guess I don't understand enough about how this variable sitting in memory might affect hit/miss/alignment especially if it's not used in the program as it's running.

Would it be that some variable that is used is pushed off of a page in memory or something by the unused variable, so access it is slower? I guess that makes sense.
Can you expand on this?

I get that to store a calorie in a potato I need to supply a calorie of energy from somewhere else.

But why is fusion power required instead of better UV lamps in my vertical farm? (Assuming I had enough electricity to run them)
Apple doesn’t get 30% of sales of physical goods. Do you really think $100 a year is any motivation to Apple?
Perhaps, but Asian Americans do better than Caucasian Americans in a raft of measures :

https://www.pewsocialtrends.org/2012/06/19/the-rise-of-asian...
Web = Google Searches. Apple doesn't want you to do that anymore.
Not sure if i’m picking up what you’re putting down.

I’m guessing maybe you register mymark.com, I get the Whois record and it’s not your legit business info but some made up business name and fake contact info.

Well if that’s the case, either icann will have some rule prohibiting registrations with fake info and maybe I could get the domain transferred once they confirm your info is fake or I could still file suit against the made up business and get my default/court order and then get icann to turn it over on that basis. But it’s all about that step 1, uncovering the domain owner (real or fake). Possibly I could subpoena the registrar and get your real info and/or payment info. Then I’d have to amend my complaint to add you (the legit business) and still have to serve your RA.
I'm not sure I understand why they revert the change. You get random small +/- changes in performance with the change, but you get slightly cleaner code. What's the reason not to want that?
clang seems to work this way, and macOS aliases gcc -> clang by default. Wrote more about this here: https://news.ycombinator.com/item?id=23634495
Consider part time like 20 hours a week. That's what I do and I love it. Steady pay check and no burn out.
Tools like this are great for getting 80% of the way there, which is often enough in some contexts. I look at these tools like I look at spreadsheets: you can stick a surprising amount of business logic in them, and while the thought of using them might make developers shudder, they get the job done.

If you need that extra 20%, hand the resulting project off to professionals to build an application out of it.
What's the alternative? leave facebook do exactly it instead of the government?

You speak like the free-for-all tax tools didn't work for you. Do you rather the US model? where you have to pay $100~300 every year for exactly the same tools from a single private company that has a de facto monopoly because of close ties to the government?

Also, in the US, a transfer from your checking account (where you get your paycheck) to your credit card account (where credit card purchases show up) to pay up your monthly credit card bill, in the same bank, same client, you literally see both on the same screen on your internet bank, takes two to FIVE business day. Let that sink in when talking about US banking being archaic.
While I like the moderation on HN that's a joke answer. Have you ever had a discussion internally on this? Lots of comments don't fall under 'co-creation' whatever that means. Some comments reveal personal information and should be deletable by the poster.
Privacy shield is an ALTERNATIVE method of to GDPR compliance for legal controls (other alternatives are SCCs/BCRs etc). US companies can either do Privacy Shield or implement GDPR themselves.

You are correct on their lack of an Art 27 Rep however.
The presence (or absence) of a global variable has no effect on the rest of the generated code. Nothing changed. You could possibly look at the alignment of the in-memory representation generated by the relocator,runtime dynamic linker. Likely, some bits of code are now on the same cache line that were previously separate, and vice versa.
> You sound a lot like the Linux advocates who think everyone should just memorize a bunch of commands, and get used to using shell.

But they should. People aren't stupid, shells aren't horrifically complicated if you try a bit and once you climb that hurdle you're suddenly a "tech genius".
Yes and no. Maybe you have better examples of programming languages, but even Ruby/Rails, Python, etc have concepts that make sense for programmers that non programmers don't grasp. Think of it this way, if you give a good designer the Rails Book (or another one), he may be able to do something after a few weeks that may match (but very crudely) the app he thought off.

Now give the same designer Sketch/Figma, but allow him to sprinkle some logic in ready made blocks (if/elses, loops, save object, etc) and he will get much closer to what he wanted.

Is the second approach better? Well most programmers will scream at the database model, etc. For the designer, he did in 2-3 days what would take him weeks and get away with something better.

I think a lot of programmers look at their experience and think 'no-code' will never work, but (where my experience comes) 20+ years of doing software development as a consultant, what I found is 80-90% of most software share most of their functionality, and the remaining percent are in many ways doable with just a bit of 'scripting'
I know there are a few apps which will check the clipboard in order to provide functionality to the user. For example, some shipping apps will check the clipboard to see if the user has a copied tracking code and if so, ask the user if they want to track their copied code.

Not sure if TikTok does something similar, but there are certainly innocent reasons for checking the clipboard.
GANs for increasing cognitive image properties like memorability, valence