skysight-inc/HackerNews huggingface dataset:
Channel arrows are basically just read/write operations.

If `ch` is a channel, then this expression means "value obtained from reading from the channel":

<-ch

And this expression means "write value x into the channel":

ch <- x

Both expressions can be used as a case inside select statement:

select {
case val := <-ch:
// ...
case ch <- val:
// ...
}

Which will execute exactly one case, depending on which channel becomes "ready" first - channel is ready for reading if there is another goroutine blocked on a write operation, and ready for writing if there is another goroutine blocked on a read operation.

You say you're from C background - if you've ever worked will file descriptors you will notice that channels are basically userspace file descriptors. Channel reading and writing is isomorphic to read() and write() syscalls, and select keyword is isomorphic to select() syscall.

Hopefully this clears up the whole channel syntax thing. I just hope you weren't trolling.
Well, lack of abstraction can easily hinder performance as well. Just compare C’s string management story with that of C++. (Also, for very performance-oriented workloads, C++ will be preferred). In case of C you only have dumb c strings, on which you will iterate many many times completely needlessly. It is both error prone, and less performant than C++’s strings, which can do small string optimizations (storing the string inside the structure if it fits, and being a pointer to it otherwise).
That sounds highly implausible to me, even restricting it to peak commuter hours.
You're right, defaults matter, but I tend to think these are fine. The windows have shadows, which allows telling them apart just as well (or better) than flat borders, imo.
But it's not only that. Nothing can be improved to be 119% faster either. Maybe the new result makes the old one 119% slower.

It's about language use and what of are those per-cents (per-hundredths).
Henry ford wrote a book titled the international Jew.

Is that what you mean?
Explanation based on my familiarity with Koka:

This expression matches on the effect flip() and handles it with the code on the right hand side of -> which becomes the value of the function invoking the effect. In this case the handler runs the continuation for both possible values (resume true and resume false, i.e. the function was called once, but it will return twice, with true and false substituted in the place of flip() in the place which used this effect) and returns their mean as the average.

I.e. each time calculation calls flip(), the effect handler will continue the function for both true and false and then take the mean of those two results. Comments explain that flip() should simulate a coin flip, which generally gives equal probability (1/2) to true and false. Each flip() in calculation was simulated with equal number of true and false values, so it fits the expected distribution. Each time taking the mean of those values is just an expansion of the integral calculating the expected value, as per definition of expected value.

Note that there is some recursion here. While the flip() handler is executing for the first invokation of flip(), another instance of the handler will execute for second and third invokations (inside resume true). I.e. it calculates the expected value by taking the mean of the expected values of each branch created by a flip. When a branch doesn't have any more flips inside, its expected value is taken to be the constant value that this branch returns.
I'm not comparing my life with someone so far away from my life as there is just no relation.

And besides that, we are the group of people who have the best chance to see the bigger picture due to our good life's.its not helping me if I know that the person in china has air pollution and other issues and is busy with there also stressful life's and is too busy to see climate change

Also while I care about bio diversity there are plenty of people who don't.

Should I now stop caring? Probably not.
This is why all programmers should know their asymptotic complexity.
It’s a joke, just like a lot of peoples resumes unfortunately.
If your flight leaves at 12:30, do you walk up to the gate a few seconds before that and expect to get on?

Is there anything with a departure time where you expect to be able to get on momentarily before departure?
I've used list comprehensions where they make sense. But it's a non-trivial (although a simple) program, so there are for loops too.

So I'm using a mix of chain and permutations from itertools, list comprehensions and for loops.
I, for one, welcome any learning. So even if I am never actually to program a quantum computer, Why would I not like to know how to do such? Why should the ability/knowledge be hidden from any body.

But you'll never know, until you look at me.
Unfortunately every page of the document has the words "Just accepted" across the whole page making it almost unreadable (as in: can be read, but it's painful)
“Batteries-Included” vs. “Bloated”
And yet somehow you messaged me to tell me that?
You don’t need massive batteries for short regional/suburban branch lines. We’re not talking about long intercity routes here.
By working harder and harder for the digital economy you are actively contributing the problems you've listed. Stacking up piles of money is the last thing you should do if you care about pollution, war and digital alienation.

Take a look at game theory and the prisoner dilemma if you haven't already. The "me first" mentality is killing us. The textbook example is gun ownership. You may feel personally safer by owning a gun but places with more guns have more shootings. So in reality by owning a gun you're actually increasing your chances of getting shot.

The digital economy is at the epicenter of the issues you've listed. It's a resource sink generating a lot of pollution, has always been closely linked to the war industry and is a factor of increased inequality and mental health issues.

My recommendation would be that instead of trying to escape through consumerism, you include activities in your life that try to address the problems you've identified. Support local organic food supply, join non-profit organizations helping the poor, host war refugees, spread knowledge about environmental destruction, corruption of your political leaders, digital alienation, etc. These are just examples, do what every floats your boat. By starting to fight against problems that make you anxious instead of trying to flee from them, you will feel better. It's also important that you team up with other people that have similar concerns.
Shouldn’t the type constraint on multiplication be existence of an operator:

(*) : ^c * ^c -> ^b ?
I don't fully understand it yet, but I think it resumes twice, adds the results, and divides by two.

the `| flip ()` is pattern matching on that effect term, I believe. So essentially: when you see `flip ()` inside anything in the argument of `expected_value`, capture the continuation there, run that argument once with `true` and once with `false`, add the results, divide by two.
Man sues Musk for $258B for Dogecoin pyramid scheme
I find it easier to remember a short sentence than a short password with a bunch of weird characters in it for sure
The author has some agency in the quality of the website due to his expertise and subject matter of the article. Food for thought https://motherfuckingwebsite.com/
FYI, IEnumerator is the thing that can be enumerated, and IEnumerable is the thing that can give you an IEnumerator when you call GetEnumerator() on it.

Both are supported as return types with yield return, in fact if you use IEnumerable, the generated iterator's implementation will be:

IEnumerator GetEnumerator() => return this;
Go is in my experience significantly faster than Java, and uses an order of magnitude less memory for equivalent functionality.

If you have any data (or better yet, benchmarks I can run on my own machine), I'd very much like to see some hard numbers.
>It is still, however, materially discriminatory

The problem with this is that this is applying a fix in the wrong place, making the effects of original injustice exist in a different form for a vastly longer period of time. In your example, the society can pay for the livehood, training and education of such ex-slaves, and help them fit back.

But blindly giving them positions that require experience and skill is going to sound nice, but ultimately your whole society is going broke. And people will once again start associating low quality and untrustworthiness with the very same people you wanted to uplift in the first place..
A bus for example and many trains too. I'm not sure I understand your question.
In a sense, knowing this can also hurt you.

At all my recent jobs, I grow frustrated with how slow running a single unit test is locally on a codebase. We are talking 5+ seconds for even the most trivial of trivial unit tests (say, purely functional arithmetic unit test).

And this is even with dynamic languages like Python (you see pytest reporting how your unit test completed in 0.00s, and wall time is 7s).

And then I get grumpy if they don't let me go and fix it because I am the only one who is that annoyed with this :D
I can open it, and take screenshots. But when you edit the image I can’t tell what the app is. Am I still in the screenshot application?
>saying Pareto distributions follow linear relationships

No; not sure where you got that from.

>For a product at T = 0, why would it be optimal to assume its lifespan would be T = 0 as well, rather than the average age of all products?

I'm not saying it would be.
(The original blog might, but that's irrelevant to my posts here.)

If you knew the average lifespan of all products, that would be your best estimate of the lifespan of a new product. (You can't use average age naively without thinking about right censoring.)

If the average lifespan of a product was short, then the average lifespan of a new product would be short. As the product aged, it's expected lifespan would increase.

I.e. the longer something has been around the longer it will be around, or, equivalently, the shorter it has been around the shorter it will be around (both obviously taking about expected times.)
Make sense now?
For for anyone wanted to try C# and a yield method,

https://try.dot.net/

I've had trouble running this in Firefox recently, but Chromium seems fine
A CLI would be pretty cool, but personally I think much of the value of Recut comes from the live preview of what you're doing - having to export a 20 minute video only to re-export it again because the padding was too short is cumbersome to say the least.
No, Amicius believes in the outlined theory similar to that of traditionalist Fr. Giovanni Cavalcoli OP.
https://www.marcotosatti.com/2020/04/21/bxvi-resigned-cavalc...

Apostolic succession or rather ordination as pope or as priest doesn't necessarily mean service until death. Pope Celestine V decreed in the 13th century popes are allowed to step down. Of course one is ordained priest and is in essence priest for life, just as people are baptised for life (in the view of the Church), but one can be 'in rest' or not active.
https://www.smithsonianmag.com/smart-news/in-the-entire-hist...

The assertions that pope Benedict's decision is not a free decision is not true. A foreign hostile takeover is suggested without evidence. Bank payments were suspended briefly as the Vatican was not yet conforming to European standards that came into effect.
https://www.bbc.com/news/world-europe-20903443

Pope Benedict also resigned well before the Vatican bank scandal.
https://www.ft.com/content/3029390a-5c68-11e3-931e-00144feab...
I also don't think pope Benedict had a hidden agenda to have a dual-pope governing system when he publicly proclaimed:

"After having repeatedly examined my conscience before God, I have come to the certainty that my strengths, due to an advanced age, are no longer suited to an adequate exercise of the Petrine ministry. I am well aware that this ministry, due to its essential spiritual nature, must be carried out not only with words and deeds, but no less with prayer and suffering. However, in today’s world, subject to so many rapid changes and shaken by questions of deep relevance for the life of faith, in order to govern the barque of Saint Peter and proclaim the Gospel, both strength of mind and body are necessary, strength which in the last few months, has deteriorated in me to the extent that I have had to recognize my incapacity to adequately fulfill the ministry entrusted to me. For this reason, and well aware of the seriousness of this act, with full freedom I declare that I renounce the ministry of Bishop of Rome, Successor of Saint Peter, entrusted to me by the Cardinals on 19 April 2005, in such a way, that as from 28 February 2013, at 20:00 hours, the See of Rome, the See of Saint Peter, will be vacant and a Conclave to elect the new Supreme Pontiff will have to be convoked by those whose competence it is."

There is no evidence that he has significant influence on the decisions pope Francis makes any other then that pope Francis tries to honor catholic tradition, including the views of previous popes, theologians and the past and current sensus fidei.
I love the idea of the massive spikes and thorns. They seem to me a relatively naturalistic type of warning. To me it seems unlikely that very spiky spikes stop to mean "flesh-piercing" at some point and take on a homely "let's settle here, in the shade of these enormous spikes, let's till the ground and dig wells" kind of atmosphere.

Here are some artists impressions of how that might look:

https://daily.jstor.org/wp-content/uploads/2015/05/NuclearWa...

https://ratical.org/radiation/IntoEternity/spikes02.jpg

https://i2.wp.com/media.boingboing.net/wp-content/uploads/20...

(Edit: better formatting)
Please show me the PrtScr key on a laptop 60% keyboard.
> Starship is wholly inadequate to take more than 17 crew to Mars

> The main ship fits 8 crew with just-tolerable comfort,

From where do you get these numbers? Your own private analysis, or a published source? How can we verify these claims you make?
Larger discussion: https://news.ycombinator.com/item?id=31748884

These are currently right next to each other on page 2. I thought HN had good dedupe functionality, maybe a blip.
It’s not you, it’s me, now gtfo.
Tesla investor sues Musk, board over accusation of workplace discrimination
There were some amazing workarounds to the default discussed her recently. One suggested pasting into the browser url field then copying and pasting out of it.

The default is crazy.
There's still time, friend. If you have the means, see a therapist. You can undo plenty of damage before it undoes you, and keep the good from your forced growth.

Wishing you the best.
T‑Mobile Launches New Connect by T‑Mobile Plans
> Can these computers actually do something better than their classical counterparts, right now?

You could say quantum computers do something better than classical computers, but you cannot say they can do something useful better than classical computers. At present, “Quantum supremacy” only applies to toy problems.

Your other question is not so easily answered.
Looks interesting. How are closures implemented? Is it possible to use Ante without heap? Are function arguments passed by value?
I mean, the 'initial statement' we're talking about here was my hypothetical example, right?; just pretend I decided not to leave out "assuming constant speed" after I first wrote it, and we're good? Unless you are referring to a different statement in which case we're all mixed up and have exceeded the carrying capacity of HN threads :)
I wonder if the decision to make all enterprise features open source was affected/influenced by the Neon release/announcement recently? The timing makes me wonder, or has this been planned for a very long time?

https://news.ycombinator.com/item?id=31753345

Either way, great news! I've been curious to try out Citus many times but the fact that many of the best parts has been closed has held me back a bit, I think it's great with more postgresql open source extention options.
jacobin.com is a notable far-left website in general
Quantum mostly attacks public key systems, right? I see articles on quantum crypto often on HN, but rarely do I see the practical advice given to me long ago like "Use a very strong passphrase, stick to symmetric ciphers, then keep the good stuff literally in a safe".
This is true, I like apps that stay the same and just work.

The problem is that github encourages the exact opposite. Constant code churn, because if people see a project with last commit "2 years ago", they assume it's dead instead of just complete. Why do I know that? Because I have also caught myself doing that.
Oh you can usually for sure, it’s just a bit too close to a gymnastic manoeuvre.

I also believe it should be the copy that strips the style.
But one can think of a counter example where all the new music are very high quality and will stay around for a long time (not saying this is likely to happen). Then the statement "the shorter something has been around, the shorter it will be around" is false.
> Can these computers actually do something better than their classical counterparts, right now?

The answer is yes. Sometimes this is referred to as 'quantum supremacy' and some researchers at Google declared it in 2019.

https://www.nature.com/articles/s41586-019-1666-5
https://ai.googleblog.com/2019/10/quantum-supremacy-using-pr...
The problem with Amtrak is that the US railway network belongs to freight train operators, and these prioritize their own freight trains over Amtrak despite the law prohibiting that [1] [2].

In Germany, most freight trains run at night because at daytime many tracks are at capacity with passenger trains.

[1] https://www.sfgate.com/opinion/article/Amtrak-has-priority-o...

[2] https://specialty-freight.com/2021/06/us-requires-railroads-...
I use pass on my PinePhone, and sync using git.
Why does it matter who he is at the company? I actually like the touch of not making a difference between "regular" employees and being Founder or CEO. On me this made a positive impression. In my opinion what matters is what is being said, not who is saying it.
See the “Quantum Algorithm Zoo” for a comprehensive list of quantum algorithms.

https://quantumalgorithmzoo.org/

Massive amounts of work is needed to make these comprehensible.
Sorry about that; I had to choose what to remove from the title to fit it in the HN text limit. I felt removal of the aspects modifier did the least damage to the meaning of the overall title.

BTW - kudos on the slang dictionary, very interesting project!

( ..couldn't find LART in it tho ;)
> I think developer speed is more important than optimising clock cycles unnecessarily.

Developer time is spent once.
Users will always have to pay the price of additional run time.
For. Each. Single. User. Always.

It scales!

Due to the scale of, e.g. slow front-ends, with millions of users, this takes a HUGE amount of time. Only to save a few hours or days to develop it better.

Having 1 million users each wait a single second is already 11 days. If they have to wait that single second for each interaction, it quickly adds up.

It is also bad for the environment due to scaled up inefficiency and resulting increase of power usage.
Yeah I'd say the lineage is Notepad++ -> Sublime -> Atom -> VS Code
A lot of people here really seem like isolationists
What do you mean by vegetarian?

Do you assume, just because people don't get meat in one cantina they are no longer allowed to eat meat by themselves?

No one is a vegetarian just because they are not getting it brought to them on a silver plate.

You do know that eating that much meat is a relatively new development right? A meat day should be the sane default not a vegetarian day in a cafeteria...
For Ruby:

- Enumerator are documented as soon as 1.9.1[1] in 2009[2]

- Enumerable are already present in 1.8.6[3] released in 2006[4], and the matching source code is easily trackable on Github through enumerable.c[5] back to 2005. The Git repository won’t bring any meaningful information before that on this file, due to the import from SVN if I well understand. There is also an enum.c file, but I’m not versed enough in Ruby code base to tell what is it about.

[1] https://ruby-doc.org/core-1.9.1/Enumerator.html

[2] https://www.ruby-lang.org/en/news/2009/01/30/ruby-1-9-1-rele...

[3] https://ruby-doc.org/core-1.8.6/Enumerable.html

[4] https://www.ruby-lang.org/en/news/2007/03/12/ruby-1-8-6-rele...

[5] https://github.com/ruby/ruby/commits/master?after=78425d7e74...
I would say the onus of proof would be on the accuser.
I was ready to be "just another screenshot app" but then I saw the distance measure tool, that's very cool
UK Home Secretary signs order to extradite Julian Assange to the U.S.
> Sturgeon is doing the same thing. Towing the Globalist/Neo-Liberal playbook. Allowed to get away with stoking nationalist ideology because she's pro-EU.

She is definitely stoking nationalist ideology, but she is absolutely not towing the neo liberal playbook. Scotland is consistently pushing in the opposite direciton of the England in the areas that would come under the neo liberal agenda. She's also not taking the same plays as the UK government by doing things like trying to leave the ECHR to ship 1000 migrants to rwanda, and she's not taken the Trump play of "if I have enough scandals, none of them will stick".

> Which reminds me - how is independence for Scotland a meaningful pursuit if you'll immediately attempt to join the EU?

The Scottish government have published a document [0] which explains it, but the key point is this (from the linked document)

But the point is this: in an independent Scotland, crucial decision-making power will rest with the people who live here – not with Westminster governments that do not command the support of people in Scotland, and which pursue policies, for example, Brexit, that are deeply damaging to Scotland's interests.

Westminster has shown repeatedly since indyref that it's interests are _not_ aligned with Holyrood's interests. Using the Brexit vote as an example, there was a supermajority for remaining in Scotland, with every region in scotland voting to remain [1], and yet here we are. In the UK general election in 2019, Scotland overwhelmingly voted for the SNP [2] and the only conservative seats are the lizard support who will vote blue even if it was Sturgeon running for the Conservatives. Meanwhile, England voted for a majority Conservative government, in direct opposition to what Scotland voted for and wants.

The argument for Scotland leaving the UK isn't "we want to join the EU", it's "we don't agree with the direction the rest of the union is going in, we're still open to working together but we want to work with you, not for you".

[0] https://www.gov.scot/publications/independence-modern-world-...

[1] https://www.electoralcommission.org.uk/who-we-are-and-what-w...

[2] https://en.wikipedia.org/wiki/2019_United_Kingdom_general_el...
Python is slow in many things like pure looping and arithmetic, even though there are workarounds to make that 1-10x slower rather than 100-1000X (eg. C-based implementations, including all the itertools stuff).

I am sometimes frustrated that I can't just loop over a string character by character and not get crappy performance, but the "problem" you (and me) are seeing in existing codebases is that Python is very inviting to beginners, and they are not frustrated with this because they don't know it :)

But as you note, bottleneck is the I/O, and a program waiting for I/O in Python and I/O in C will wait the same time after the computation is done.

If you are writing software that can parallelize well independently (eg. web apps) and your memory pressure is not the most important thing, you simply run multiple Python processes to max out the CPU (this avoids the GIL unlike async Python). And you keep your dependencies low.