skysight-inc/HackerNews huggingface dataset:
Has been down for me in Berlin, Germany, for an hour or so.

Trying to log in via web gives me this error:

Method: auth.sendCode
Result: {"_":"rpc_error","error_code":420,"error_message":"FLOOD_WAIT_438"}

Maybe a localized DDoS attack?
What is the representation for objects in the “name and arguments form” (eg enums in rust, variants in Haskell, other tagged/discriminated unions)? It seems like they are becoming more popular in various programming languages.

What is the way to represent a map/dictionary where the keys are not strings? In json I also don’t have a good way except I guess a list of objects with a key and value field but it feels heavy. In Lisp I would probably use an alist (whereas a plist might be used for the “string” (or symbol, rather) keys). In fact, how does one even write a list of lists with this?
Thanks for posting.

Would you advise this as a good way for someone to learn CPP ?
Oh, anyone bothers if they get really hungry. Stone Age people were fairly resourceful when it came to food.

A friend of mine who used to hike in the Pyrenees had incredible stories regarding hunger and eating.
I don't want to get in to too much detail on a public board, but the short of it is that several major events in rapid succession (unexpected death of my father, lawsuits involving his estate, Covid just as I was re-growing my IT business, loss of several major clients/income security due to same, a sudden chronic health problem, etc, etc, etc, etc.) overwhelmed my ability to get things done in a timely manner. I sought help, and something in the way I was talking must have piqued my psychiatrist's attention, I got tested, and here we are.

It was a lot of shit, all at once, and it would be easy to shrug and say it would have been hard for anyone. But it was enough of a shock to my abilities that I was able to finally see that I just wasn't firing on all cylinders, even though I am otherwise intelligent and capable.

I have not lost my ability to focus. In fact, it's easier than ever. I've always been very distractible (another common symptom), and suddenly the kids making noise while playing next door, dogs barking, phones ringing no longer wreck the house of cards I'm holding in my mind while working on a problem. It's remarkable.
The point is that you don’t need “is_odd” in the standard library, you have modulus. You were arguing that JavaScript needs a better standard library to keep people from importing is_odd
Is there a reason this is on the front page other than for it being seemingly down? There is no information in the link.

I am scratching my head as to why we are all gathered here. What am I missing?

Maybe I am just too used to software outages?
My mom is color blind (so passes the test, but just barely), my dad very color blind. We still make those jokes.
systemd [0], which you're probably already using, can do IP Accounting:

> TL;DR: systemd now can do per-service IP traffic accounting, as well as access control for IP address ranges.

It can be enabled using:

[Service]
IPAccounting=yes

systemd won't, AFAIK, give you per second values -- just the aggregate totals -- so you'd have to constantly retrieve the updated values and calculate the differences yourself. The totals can be obtained programmatically via the D-Bus APIs. They'll also be shown in the "systemctl status ..." output or you can grab just the value(s) you're interested in with "systemctl show ...".

However...

systemd's functionality is basically just a thin wrapper around eBPF (in the kernel, since sometime around 4.8, I think?) so you can do it without systemd too.

In fact, the author of this article has also written a nice introduction to XDP and eBPF [1]! That article includes an example "XDP program" which counts the number of packets that have been blocked from a list of source IP addresses -- it could be modified fairly easily to do what you want, I think.

---

[0]: http://0pointer.net/blog/ip-accounting-and-access-lists-with...

[1]: https://jvns.ca/blog/2017/04/07/xdp-bpf-tutorial/
I'm completely out of my area of expertise here (I can mostly follow the press release but I can't understand that much of the actual paper outside of the introduction), but your comment about resonant frequencies reminded me of of some recent research on layering graphene at a "magic angle" to produce special fractal moire patterns that have special physical properties. I wonder if that work can be combined with the work here. To a non expert like myself, it seems like there is a lot of really exciting research in this area at the moment.
> The % of programmers that actually need to know any of these numbers is tiny.

If you mean the whole range of values I would agree.

However, once I've interviewed a developer for a front-end position that was entirely oblivious to the cost of making an HTTP request, firmly believing that only large downloads had any measurable impact on performance.

Even if you do not have to do back-of-the-napkin calculations on cache latency, knowing the relative cost of each of these operations does wonders to your decision process.
> Why should we allow a Chinese social network when the Chinese market is closed for foreign companies?

One reason could be because that better fits our ethics. We might not have to lower ourselves to their level to have a competitive economy.

I'm not saying we have to be passive but "playing hardball" is usually a way to suggest the most extreme measure possible and I'm not sure this inequality is that bad. I'm much more worried about things like child labor and other issues China still has.
This suggestion is baffling. The nicest place to have a home is in an enclave of forest.
Sure, but H weighs 1/12 as much as C. Most of the fuel mass goes to CO2 no matter what you do: whether you slap on 1.5 H atoms or 3 for each C, it makes up a small part of the molecular weight.

Of course, it could be that the C-H bonds contribute much more to the energy released by burning the fuel than the C-C. But this doesn't seem to be case. Here's a paper in favour of switching to lighter fuels for ships: it argues that the total supply chain CO2 contribution would be higher (it takes energy to refine those fuels), but only by 1%.

I think that "bunker fuel is really bad and ships switching to lighter cleaner fuels is important for the environment" is a seductively easy but bad target for carbon reduction. There are way better places to spend our efforts.

[0] https://www.tandfonline.com/doi/pdf/10.3155/1047-3289.58.4.5...
I'm not sure I'm underestimating anything since I'm not estimating things and we seem to be kind of saying the same thing?

Edit: to clarify a bit further - people read this list and think '1 nanosecond, 5 nanoseconds, not important to me, academic, etc'. My point is that's a misunderstanding but the list alone doesn't do a good job of disabusing one of the misunderstanding.
In the past volume was king. A brokerage made money on volume. Nowadays, while volume is still important because of payment for order flow, investing the float has become a lot more important and represents a large portion of brokerage revenue.
Does the EU even have the legal tools to ban TikTok? It's a media company that largely complies with applicable laws, banning it because "it's from China" would be a major abuse.

People have raised the same issue regarding Trump banning TikTok and the legal basis seems to some national security law from the 80s?

I believe governments should not be able to ban TikTok.
Thanks for the revision, I couldn't remember exactly how that merger/buyout had gone down.
Fascinating indeed. Climate change goes far beyond CO2 levels.
Another thing that we miss is our history before the last ice age, which still lies in complete mistery.
Yet the waterways in the USA have never been cleaner in the last hundred years. There are regulations and they are enforced, imperfectly like everything.

I live in Canada where we take the environment more seriously still.
UK ambulance services are testing Gravity's jet suit for paramedic recoveries
There are plenty of viable ways to disinfect closed spaces, like cold plasma generation [0] or UV light disinfection [1].

[0]: https://drexel.edu/now/archive/2020/April/cold-plasma-filter...

[1]: https://www.cnet.com/health/can-uv-light-protect-you-from-co...
500-600mb sounds like you are shipping dev dependencies in your images.

You should use npm/yarn's production flags when installing your dependencies for your images, so you only ship runtime dependencies.

Your images will shrink to 100-150mb.
Go is not nearly as slow as you're making it seem to be, I dont know what the authors implementation was doing, but this code runs at a rate of 7GiB/s/core on my laptop

func BenchmarkFindMax(b *testing.B) {
ints := make([]int32, 13*1000*100)
for i := 0; i < len(ints); i++ {
ints[i] = rand.Int31()
}

for i := 0; i < b.N; i++ {
max := int32(math.MinInt32)
for _, x := range ints {
if x > max {
max = x
}
}
dontOptimize = max
}

b.ReportMetric(float64(b.N*len(ints)*4/1000/1000/1000),
"GiB/s")
}

goos: darwin
goarch: amd64
BenchmarkFindMax-8 1530 678975 ns/op 7.00 GiB/s

EDIT: Actually my original code was reporting the metric wrong, it should have been:

b.ReportMetric(float64(b.N)float64(len(ints))4/1000/1000/1000, "GiB/s")

which leads to 9-10GiB/s on my laptop
well, the next step in the mathematics -> physics chain is either Chemistry or Engineering.

If your theory allows an engineer to build a warp drive, your theory is sound.

If not, not.
Hmmmm they're not ALL down. Working just fine for me in India and my friends in the US.
> It seems a bit fussy and, from my understanding of it, requires a second VPC for the second network interface

Curious, why would it need a second VPC? DPDK, albeit on AWS, allows me to attach a second NIC to the instance on the same VPC.
After ~30 minutes of "connecting..." I restarted Telegram (Linux app), won't log me in, says "Too many tries, please try again later". Hope they'll reset try counters when they are back online.

I appreciate Telegram's latest features and understand that stuff happens when you change things... hope they'll fix it soon.
Covering a cover-up in real time
I remember driving one night alone in a rural area with sideways stoplights. I didn't realize it until one turned red on me, until then I just saw a weird light ahead. At least red is clear to me so I would stop.
> The nice thing is that the deadlocked threads aren't going anywhere, and wait patiently for me to inspect them

Same opinion here. Both deadlocks and null pointer errors are fairly easy to debug. You can easily observe when exactly the happen, and the stack-trace typically delivers the answer what went wrong.

Other kind of race conditions like any memory corruptions can be such much worse to figure out.
I will bet a lot of the NPM dependency problems can be solved if Node directly implemented many of the Web APIs. If PHP can implement Dom Parser, there's no reason Node can't implement it as well, for example.
You mean creating a framework or using the framework ?
Creating a project you like is always a good way to learn a programming language.
However, using a framework before knowing a programming language is not a good way imo, because you will actually learn the framework, and not the language really.
You need at least to know the basic notions and concepts of c++ before using the framework.
I hope this answers your question :)
It there any "AI" in the Tampa issue?

Or "predictive"?

The Tampa program is vindictive policing to harass undesirables into leaving town.
> imagine what you can do if you can reach every single individual of another country with personalized content

Are you sure you're not talking about google.com here? Way more people across way more ages use that than tiktok and it also does tracking for the purpose of personalization.

Your reasoning would result in banning Google products (from the Play Store controlling most mobile computers across the planet to Gmail and YouTube) from all countries except the USA, and to a lesser extent banning Facebook products, Apple products, etc. Tiktok barely makes it onto the radar compared to those.
Ah, sorry, that should be GSO (typo!). Generic segmentation offload, which aggregates "super packets" (up to 64 Kbytes) within the network stack to reduce overheads.

Pacing controls when to send packets, spreading out transmissions to avoid bursts that can hurt performance.
The author was running on a 2013 laptop, which had smaller cache and slower RAM than what you're probably using.

Benchmark comparisons are useless without running on equivalent hardware.
There's a front page story every time google, apple or Amazon are down. I'm not sure telegram warrants the same publicity but it doesn't seem completely inappropriate.
iOS allows hiding/deleting most apps. There are some exceptions (the App Store, Settings, Safari, I think Phone and Messages, probably missing some).
Thanks for these links!

Before I started graduate school, I worked as an engineer for a company making aeroponic systems. Great potential here. I will look in to chitosan as well.
This is a measure designed to help us prevent facial recognition companies from gaining programmatic access to our api to test against it. In addition, because we are a new startup with limited computer resources such testing could also harm our throughput capabilities for actual users. Unfortunately, there are far better sources of simple name and phone number data such as whitepages.com, or any other CNAM service, so we doubt we would be a target of an attack for this data or that this data would be sell-able even if we were bad actors. Our perspective is that requiring phone verification allows us to provide a better level of service to customers.
What are some other professional duos?

Long gone now but the trio of Howard Cosells, Don Meredith and Frank Gifford enamored me similarly as a young boy, and for similar reasons to the point of today I still find sports commentary far more enthralling than the game itself.

My favorite duo today, while a biased favorite as a local are Len Casper and Jim DeShaies who are the home announcers of the Chicago Cubs. They bring a spirit and joviality influenced by deep reverence for the game of baseball that I don’t think can be touched by any other broadcasting duo in the league (this is relegated to television broadcast announcers, there are too many to name in radio I think).

Every time a Cubs hitter knocks one out onto Waveland, and Len lets out an “oh BABY that ball is GONE” I like to imagine the late legendary Haray Caray is looking down on the booth smiling upon this generation of Cubs color commentator.
The question is, why is the link to telegram's homepage? It's not down, and has 0 information on what is happening.
> and that's the problem Intel is facing. It's just a matter of time when developers will make use of higher core numbers, and distributing the workload across more cores will also reduce the power consumption of the CPU, which is essential for light and portable laptops.

I'm not convinced, parallelism is not inevitable for individual applications, it can be hard or not applicable. I understand there are certain CPU intensive programs where the benefit is too great to ignore, but for the rest it still seems like it's not worth the developers time.
It's OK to build there as long as you acknowledge that fire is a natural inhabitant of any forest and over a 20-30 year period is likely to come for a visit at least once.
I'm fine in the UK now
And yet UK kept India, Australia and Canada under its control, while losing the thirteen colonies.

It is probably a more complicated story than just "latency of the signal".
Forests burn with regularity, and this is a normal and essential process for them. Stands to reason that if you want to build a house, it either be not in a place that burns, or be constructed in a way that it isn't significantly damaged by fire.

People have been shown to be willing to rebuild repeatedly in fire zones, with massive economic and public safety impact. Makes sense to legislate to prevent this.
China is five times the US in population. Given enough time, it can just throw people at problems and get there. Notwithstanding the fact that the research and academic works coming out of China, while still facing issues in quality on average, have still been rising in quantity and quality.

When the combined US+EU market is less than half the amount of people of your own economy, stumbling upon itself with regulations and inner struggles and disagreements, and you are the single most important builder of things in their world.. I'm not sure democracy is a prerequisite to be able to achieve domination eventually.

Sure, average quality of life still isn't on par with the EU or the US.. but then again, they've taken 600 million people out of extreme poverty in the last few decades, they're the single biggest current builder of nuclear power plants, they're developing their own space agency at a rapid pace, and are perfectly fine increasingly making major US businesses bend to their will (in tech, in sports, in the industry, and in bending America's cultural influence in the world through things like Hollywood), and they seriously lock down the innovation and profit so that it circulates internally first and foremost.

I'm not saying all these things for the fun of it: I'm from the EU and I live in Canada, so I'm both very much wanting the world to go towards the models that the EU and Canada are trying to achieve (as far as democracies strive to improve themselves, ever-so-slowly sometimes), but I'm also pretty keenly aware of how small those players actually can be when compared to a behemoth with a very long history, a critical mass, and willing to make any necessary concessions to dominate.

You don't really need 750 million people when you have 1.6 billion in the first place.
Yup, will revise. Thanks!
Free PDF merge tool to combine or reorder pages of multiple documents
PDFWrench.com
Free PDF tool to merge / split / reorder pages of multiple documents that works without any file upload required.

Everything happens locally in your browser to ensure privacy and security.

It accomplishes this using javascript's latest technology : WebWorkers and offscreencanvas
Caffeine in an espresso shot (and conversely one cappuccino) is ~63-77mg[1], and one can of Coca-Cola & Diet is 32mg & 42mg[2].

[1] Nespresso is 63mg (5g of coffee), "average" espresso is 77mg (7g of coffee) https://www.caffeineinformer.com/caffeine-content/espresso

[2] https://www.coca-cola.co.uk/ingredients/caffeine/the-caffein...
Yeah, I tried to make an invalid point. My bad. The main point still stands though, I'm sure there's hundreds of other examples of pointless libraries that are easily covered by something that is trivial.
Are you honestly saying that FB and Google don't provide anything that users value?
Usually that at least comes with a status page or a news article about the impact or something. This just links the product.
The blazing fast speed of Smalltalk combined with the memory safety of C
> China has some horrible concentration camp problems that we, as a western country upholding ideals of freedom, want them to change and we need more pressure

I mean, it would be ironic if they would give this reasoning, considering the fact that the US currently has its own version of concentration camps which we, as western countries upholding ideals of freedom, should want to change.
If China became democratized tomorrow, overnight, with no attendant problems, they'd still speak Chinese and the rest of the world still wouldn't know 3 words of it. That's a way bigger deal than any (often overstated) difference in freedom or innovation.
Standard C++ also has std::max_element [1] (and accidentally the possible implementation looks surprisingly familiar). Not that I know much of C++.

[1] https://en.cppreference.com/w/cpp/algorithm/max_element
> and you can’t run Windows or something else on ‘Apple Silicon’.

There's no reason to believe this is true.
What makes Tacitus the final authority on the matter?
Do you have any evidence that your system works?

"Adversarial AI" doesn't really work against systems like Clearview that aren't using "AI" in the first place.
He was probably scanning elements that were larger than int32s, even on a 2013 this code would run at Gib/s.

The point of my benchmark was that C is nowhere near 50-100x faster than Go and that the user I'm replying to shouldn't make unsubstantiated claims like that.
If Huxley's calculus is a "human error", humans have yet to see it.

The world's population has not collapsed but is still increasing, towards a peak predicted to be 40% higher than today's 7.5 billion.

The collapse of the food supply has been forestalled by the human capacity for innovation. Nitrogen fertilizer now supports approximately half of the global population.

How long will human innovation forestall catastrophic collapse, and, alternatively, when might it be recognised as the cause?
I know you're joking, but looking at some Geekbench scores there doesn't seem to be a single Android phone on the market that can outperform the iPhone SE in single-core performance. The OnePlus 8 is the closest, but still not really that close.

iPhone SE: 1321

OnePlus 8: 898

On multi-core it's a little better since there seem to be seven Android phones that can outperform the iPhone SE:

iPhone SE: 2737

OnePlus 8: 3281

OnePlus 8 Pro: 3216

Samsung Galaxy S20 Ultra 5G: 3107

Samsung Galaxy S20+ 5G: 3102

Samsung Galaxy S20 5G: 3078

Huawei Mate 30 Pro 5G: 2918

Huawei Mate 30 Pro: 2835

However, all of those Android phones cost quite a bit more than the SE.

https://browser.geekbench.com/ios-benchmarks

https://browser.geekbench.com/android-benchmarks
Quite a few comments here already remark on the "computer scientists leaving the room" joke at the beginning of the article.

I'd like to add another computer sciency aspect that hasn't been covered yet. If the original question is "what is the fastest algorithm to find the largest number in an unsorted array" you might just answer: "it depends on what you want to do with it afterwards."

Sure, in a job interview or in a computer science class you might want to just look at any one problem independent of anything else. In the real world, context matters though.

For example, we know that in an unsorted list (which we're dealing with here), an element can be removed by overwriting it with the last element of the list and decrementing the length of the list. So perhaps someone is actually looking at solving a more complex problem, say, processing a list of tasks from highest importance to lowest and removing each task once it has been processed. But they are new to the team, and there is a huge and complicated code base that has been created over years and that they now have to work with. And it just so happens that the actual algorithm is already implemented in the code base, except for one function:

while list is not empty:
task = find_most_important_task(list) # your TODO
process(task)
list.remove(task)

Now, this is the same question as in the job interview... or is it? Assuming that find_most_important_task is implemented as a linear search, the above algorithm is O(n^2).

However, knowing which task you're optimizing for -- that is, the algorithm as a whole -- you can obviously do better. Let's say, your list data structure gets a new flag that is true iff the list is sorted. Then you could use the following implementation for the max search:

find_most_important_task(list):
if list is not sorted:
list.sort()
return list[list.length - 1]

With this implementation, a single call to find_most_important_task(list) would be much worse in term of O-notation than linear search: O(nlogn) vs. O(n). However, amortized over the whole algorithm, the complexity of find_most_important_task is actually only O(logn)!

So, yeah, I don't really know why I wrote all this up. Probably because it is late. Certainly not because it contained anything new. It's also contrived. Oh well. Sorry for wasting anyone's time...
Its hard to believe because its dead wrong. See my benchmark above.