jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
"Your math that follows seems to indicate otherwise....I demonstrated that a heap with only 2048 records requires multiple 4 KB pages. Are you perhaps confusing KB with MB?"

No. There are 1M records, 512 per page. This is directly from the article. From this, we can deduce that each record is 4096 / 512 = 8 bytes. Eight bytes multiplied by 1M records: 8MB.

Don't believe my math? OK. The article explicitly said that there were 1954 pages in the heap. If we have a 4k page size, that's (4096 * 1954) bytes == 7.63 MB. Even better.
I didn't find it at all offensive; if anything I thought you were (somewhat) preaching to the choir. Still, I think it's important to have these sorts of ego-checks every so often. My only question is whether David Hansson is actually going to read the open letter.
int get_random() {

return 17; // The most random number

}
A short course delivered over email on $PROBLEM_DOMAIN works fairly well. SEOs of my acquaintance frequently use Cosmo headlines, like 7 Mistakes Most People Make When X-ing. Yours now, totally free, if you'll give your mailing address. Deliver one a day, ask for a sale on day 4 and day 7. This works ridiculously well.
I’ve been waiting almost thirty years for this post, I just never knew it.
Just like China, the United States is an independent sovereign country that's allowed to make decisions which it considers in the best long-term interests of its people. Sometimes that can mean using trade embargoes, sanctions and economic decoupling.

If the US conduct here in contravention of the mutually agreed upon World Trade Organization rules, then China should bring a case to the WTO.
We are open to applicants outside of Canada. Feel free to send us an email
At the same time, the US controls the financial monetary system (petrodollar), dominates the world military-wise, tech and so on. If one is able to follow this logic, does that mean that Europe and other countries should also take hostile measures against the US since they control "supply chains" and has "great but subtle" powers over them?
What's interesting is that what's happening on American campuses is exported to France, yet, what's happening on French campuses stays on French Campuses.

I wonder if it reflects current brain flow (are American students coming to French university in greater numbers than French students going to the US?).

Maybe the solution is to build an ecosystem where the culture and practices is exported instead of imported.
I'm a UBI skeptic but I think we need to keep running these experiments to gather data points. The pro-UBI crowd often times points out - and I think fairly - that a lot of these experiments are too small duration and scope to be very useful. It'd be interesting to see say an entire county try UBI for a year.
Of course they had military might. But the point is it wasn't exactly "citizens", and whether regular citizens can bear arms has little to do with whether the standing armies of nobles can. The nobility of that period is not what I would consider regular citizens. The original assertion I replied to is obviously not as absolute as it was presented.
That model, but without the numpad, is still my favorite keyboard (the A1242). I've tried mechanical keyboards for fun, but I keep coming back to this one for the low profile.

It was only sold for a year or so before the wireless model replaced it, and it's hard to find them now. What I did was to look for used iMacs from 2010, see which ones have the A1242, then ask the seller to only sell me the keyboard.

Based on the replies I wasn't the first one to ask! Seems like there are still some fans around.
>Does anyone else get electric shocks often from them?

Oh yes. Also, many aluminum laptops when plugged in.
For example German vehicles? Those are taxed already. The US has quite a few types of import tax.
Anyone looking for a wireless mechanical keyboard - I can't recommend Logitech G913 more. Especially if it's employer sponsored. Low profile, compact and great switches. Love it :)
He has got valid points... It would have been impossible to visualize such a hike back then. I am impressed that it took 3 hours for him to code this
> Digital photography just doesn't have the soul of actual film photography it's missing the physical connection.

Indeed! I just recently bought a couple of old 35mm SLR bodies and lenses to get back into film photography. With film, photography is certainly more deliberate and slower-paced. I also enjoyed darkroom work (years ago) as much, if not more, than taking photos. The darkroom was a nice, quiet place that was very relaxing.
It's true of the US if you use a very liberal definition of "poor". The gap between the poorest and richest in China is far wider than in the US.
> The complexity of developing hardware is driven by the number of discrete components used

Sorry, that's not even close to being true.

Interesting how on HN "hardware" seems to mean "a board with chips". You know, like a Raspberri Pi. That is one type of hardware but not, I dare say, where the $10B (and maybe even $10M) startups would exist.

We are developing two hardware products right now. One is an innovative fire fighting system and the other a CNC machine. The complexity in these designs has very little to do with what chips you place on a board. For example, we expect to have to run three to six months of FEA simulations to validate aspects of the fire fighting system and then have to iterate through several design candidates over several months.

Beyond that there are regulatory issues that could up-end any design if you don't know what you are doing.

Packaging. I almost forgot packaging. Man, that can consume months of testing. You can design a beautiful product only to have it damaged during transportation due to incorrect packaging.

Oh, yeah, you also have to have good software.

Nah, harware isn't just about chips on a board.
Why would programmers want to promote GPL, if they are not FOSS programmers?

Do you consider "proprietary software developers" to be anyone who develops proprietary software, even if they contribute to open source as well? Because even if you did both I would think you would prefer non GPL code since you wouldn't be restricted in where you can use the code.

So again it seems like "on a site by and for programmers it makes sense to discourage GPL" to me, for all except FOSS programmers.
It's an obvious "following the local law" thingy, Facebook doesn't give a s*t, I personally reported 3 posts on different FB pages

1st was a religion extremist guy who says to Iraqi people that they should protest and fight the "other side" of the religion (aka start a new civil war) instead of protesting against the corrupted government.

2nd was a post that was praising the guy who murdered the Danish (Or was he Norwegian?) teacher who mocked Islam, and calling him a hero.

and the 3rd was a post that says "Women education is satanic, women's purpose is marriage".

all of these 3 reports was "The post was reviewed, and though it doesn't go against one of our specific Community Standards" and then it explains how to block blablabla... I don't report things anymore lol
The fact you got to the localbitcoins service and tell it who you do the exchange with makes it at least a centralised place of information.
Or really any of the problems Electron attempts to solve; the GUI toolkits are still not (generally) not cross-platform in the way Electron is.
Windmills like spectre and meltdown?
Can somebody tell me why this is "[flagged]"? I don't get it...
Being angry doesn't make him wrong.
Background on the Amazon plots: perverse capitalistic incentives drive this "real estate development". Which are typically white-washed by the current president.
I would guess the peripherals of the processor, bugs in the hardware and firmware etc.

That and the drivers are still murky blobs that I would guess on average don't have much thought put into them from a pure software engineering perspective
I agree, but in practice what would happen is Turkey would just block Facebook if they refused to comply. Facebook can't grant freedom of speech to people. They have to take control of their government and demand it for themselves if they want it.

Facebook has made it clear they don't care about free speech anyway, as they'll happily ban anyone who jeopardizes their ad revenue.
This is great news for GNU+Linux users, I'm always so hesitant when installing libreoffice to my computer and use google drive when veiwing ppt files. In my opinion Microsoft office online loads ppt files a lot faster, which is nice. You also don't have to go full screen to view all the animations. Cool.
Nothing is ever as easy as any article points out, articles summarize and tantalize.
The language exists because it has distinctive features, like its evaluation model and symbolic nature. The rest is a matter of implementation. http://mathics.net is an attempt to create a free one.
I read these sorts of outcomes periodically and it always makes me wonder how on earth managed funds stay in business? How can an industry that does no better than chance on average continue to exist?
>Seems like a poor choice of filter

I'm not convinced that this is true. Poor hiring doesn't mean that the company does other things wrong, but hiring determines what kind of people work at the company. Running into a hiring process that you believe won't select good coworkers can be a major problem.
I think the best part of all this is actually that more and more people are realizing that no human clearly knows what humans should be doing to get the most out of a human body.

Maybe "no human" is over stating it.... I could easily just slot "the vast majority of intelligent adult humans" into the sentence and it should still be mind blowing.

People have used their brains to explain nuclear physics, create a network of computers which spans the globe and landed a man on the moon. Yet no one can clearly tell me what I should be fueling my brain and body with?
Location: Europe (mostly)
Remote: Yes (Preferred)
Willing to relocate: For the right opportunity
Technologies: Go, Python, C, JavaScript, Linux, SQL, Docker, and more
Résumé/CV: Upon request
Email: hired+hn at cyanic dot gr

-----

Software engineer with a T-shaped personality, complex problem-solving skills and more than 8 years of professional experience building profitable products from scratch. I'm looking for a chance to solve engineering and business problems using technology and an opportunity to contribute to every aspect of product development.
aminit I am not sure if you know what imperative means.

Imperative programs have a state or virtual machine that is manipulated by the program. All programs, at heart, are imperative, but higher level constructs allow for procedural or declarative programming which abstracts away the lower-level imperative bits.

// Imperative
if(foo == 'Tuesday') {
print 'Taco Tuesday';
}

// Procedural
if(isTacoTuesday(foo)) {
writeTacoTuesday();
}

// Functional (but not monadic)
(if (eq foo 'Tuesday') (print 'Taco Tuesday'))

// Declarative
taco_tuesday : foo == 'Tuesday'
run : ( taco_tuesday -> write('Taco Tuesday') ; true )
run;

No I have not had lunch yet.
This looks really nice, especially the colors.

As a reminder/heads up, you can often get simple command line editing and completion in tools like psql in a bash-like environment, just by having a .inputrc file in your home directory. Basically anything that uses readline, like bash, psql, ipython, etc.

Extra benefit, you don't need to set -o vi (or the other flavor) in your .bashrc or on the command line; anything that uses readline (including bash and many other cli interfaces) will read the .inputrc file and do what it says. I'm often pleasantly surprised that a new cli tool uses my .inputrc.

http://linux.die.net/man/3/readline

https://www.gnu.org/software/bash/manual/bashref.html#Comman...

You can easily add the capability to command line tools that you write. For example:

https://docs.python.org/2/library/readline.html
SeTec Astronomy...
How does being non-profit exonerate HN India from deliberate name-collision with HN?
Why do you keep repeating "not for profit". As some have already mentioned, ( http://news.ycombinator.com/item?id=1913237 ) it does not make brand name abuse anymore acceptable. Financial profit is not the only thing, there are issues of "social profit" as well, and those have to be earned too.

Make no mistakes, I agree that its a great service. I would use it myself if the outstanding issues are resolved. But as I have said before, helping yourself to someone else's brand and work isn't very ethical regardless of its legal status. My views about that wont change even if pg agrees out of politeness.
I believe that we need as DOM+js as pure js benchmarks.
Probably depends on if their account gets hijacked at your site or the site of your fastest competitor.

I agree that anonymous or non-logged-in activity has no need of HTTPS, but anything that's transferring cookies, passwords, or other important user or session information should be HTTPS.
I think you misread my tone... I was not answering the OP, I was asking a general question to the rest of HN.

All I asked for was validation or non-validation on the method I mentioned. Is it true or not?
I learned a bit on my own time last year. Check back on this thread in a few days—I'm writing up a post detailing how I went about learning it with links to a whole bunch of resources. It'll probably be useful to you, so I'll post it as a reply to you here once it's done.
There are a variety of non-profits that serve the LGBT community.
Nope, I concluded that it either didn't work for him OR it works for some people, but causes enough harm to others that it balances out any good it does.
I like seeing these sorts of actions... I do wish that more corporations simply operated a bit more even handed to begin with though.

As an aside, I really wish there was a tag in the headline when auto-play video is in a link... I tend to open up several articles and the respective comments in tabs in the morning... the chrome indicator helps, but would be nice to know it was going to happen.
I don't think anybody's said anything like that.

You can build awesome software projects using almost any toolset. C, or C++, or Ruby, or Go, or Java, or…

The question is – is the trade-off worth it? Lack of generics makes things more awkward – but it's also simpler, so maybe it's a net gain? Some people think it is, and some people think it's not. But it's a useful conversation to have.
Who cares about the info you post on Facebook? Aren't services like gmail a bigger threat?
My advice would be: don't underestimate the opportunities available on the east coast of the U.S. There are a lot of companies here in the D.C. area who need programmers with domain expertise in mechanical, aerospace, and electrical engineering. Also, my gut feeling is that the PhD will carry relatively more weight here and that the lack of CS degree will carry relatively less. A who understands the physics is a lot more valuable to many companies than a guy who knows the latest design patterns.

FWIW, I've got a BS in AE, and never worked in the field professionally. I went into a software job doing simulations. Most of my coworkers were EEs. We finally hired a CS PhD years in to do AI stuff.
The typical communist fake voting system.
Would this mean every school in the EU can no longer partake in Microsoft's office 365 programmes?
Sure. But from what I heard, just managing girls who do it from their home is just as large, if not larger.
The "fishy" taste is likely indicative of a higher omega 3 content, you get the same taste from 100% grass fed and finished beef and buffalo due to the higher omega 3 content.
Schemas are anything but a free lunch.

It has been said that the limit of the ratio of (creating, groking, interacting with) the hundreds to thousands of XML schemas/documents that invariably creep up in the average large-scale-XML-using enterprise environment versus (doing actual work) increases without bound as t goes to infinity.
This morning from 5a - 6a Pacific time I was able to access my Heroku app just fine.
This is like witnessing your parents having sex while a kid: you sort of knew this is a possibility but it is a devastating blow to your belief system nevertheless.

The amount of services I use that depends on Amazon is amazing. They have really become the utility company of the Web.
+1 - Amazon is the one left standing because they totally changed their business model from being a store to being a platform.

Plus, their stock is huge because of stuff like Kindle and AWS, not because of selling books.

If Amazon had kept doing what they had been doing, Friedman would have been right.

The only place he was wrong is not realizing Amazon is a great company with the ability to foresee and adapt.
Bluesnowmonkey already gave you some specific solutions but I wanted to point out that error suppression is generally a really bad idea. If your code encounters an error you should want to know about it.
My killer app is a SDK that lets me develop apps for a device I own without having to pay $99 a year to keep them from expiring.
Worked out the math to get rid of the loop.

def efficient(x)
num = (Math.sqrt(2 * x + 0.25) - 0.5).floor
num2 = (num**2 + num)/2
[x-num2, num]
end

Edit: Or:

def efficient2(x)
num = (Math.sqrt(2 * x + 0.25) - 0.5)
num2 = ((num - num.floor) * num).round
[num2, num.floor]
end
Yes (along with Chinese and its dialects: cantonese & hokkien). The national language is Malay (Bahasa Melayu), but most people speaks English here.
Nice answer, there's a vast number of CMS systems out there from the free to the pricey (Interwoven, etc). I'll echo that the choice really depends on what kind of site you are developing. Frankly, for most blogs a CMS system is total overkill.
The hard thing about this problem is to neutralize the "random data" that can pass whatever error-checking you want to enforce.

I don't remember all the details but the trick is (substantial hint)

SPOILER

SPOILER

SPOILER

to use indirection. Let the data at location i in the array not be the actual value but an index to another array that we continue to fill as we get new set() calls to previously unvisited places. When someone says set(i,v), we look at location i in the first array and see an index into the second. Suppose we can tell if the index is genuine (previously put there by us) or random junk; then everything's easy - when it's junk, allocate a new cell in the second array for the value and update the index. get() with default value also becomes easy. So the problem remains, how to tell random junk from a genuine index we stored before, and I've remembered the rest by now but I'd better stop here.
The feature I'm trying to dig up while doing research is a friendly interface for the people managing the site after delivery from webdev/designer.
I run my own version, with a fair bit less 'frill'

curl -s http://www.lusion.co.za/ip
In fact, here's a more down-to-earth idea of a high density storage: use a diamond crystal, with C-12 atoms for 'zero' bits and C-13 atoms for 'one' bits. (I learned about this idea from Charles Stross' blog). While it's not obvious how to read and write this, the concept is clearly not ruled out by the laws of physics.

Then storing 2^64 512-byte disk blocks requires 1.5 grammes of diamond (7.5 carats), while storing 2^128 blocks requires 3e16 kg (a ball of diamond with a radius of 12 km).

2^128 is a big number, but perhaps not big enough to last us through the singularity.
That used to be Usenet, which you can still read either via Google Groups, or one of many other paid providers.

For example, comp.lang.* https://duckduckgo.com/?t=lm&q=%22comp.lang.*%22

Usenet: https://duckduckgo.com/?q=usenet&t=lm&ia=about

The nice thing about Usenet (or "news" as we used to say) is that, like email, it's a protocol and so it's not controlled by a single hyper corp (except to the extent that you let Google do exactly that).

Usenet used to be an expected service at universities, ISPs and a few corporations. But you can easily get your feet wet via Google Groups, and you can also easily pay a commercial provider for access.
Can IA be mirrored like Wikipedia?
On-premise cluster.

Cloud solution are totally out due to the nature of the data. Not everything can be done in cloud.

If you have such huge amount of data, the total amount of time it takes to transfer there and compute is not as competitive as an on-premise solution, unless all your data live in the cloud.
The complexity of the weapon systems goes up, and so does the price. The F-35 design already accepted a decrease in stealth capability, over for example the F22, to reduce price. Networking, sensor integration and related tactics is another revolution in progress that the F-35 does have. It's hugely expensive to be the first one to develop this.
> SpaceX is unique not for sending 'rockets' but it for being the first privately funded company to successfully launch, orbit and recover a spacecraft also the first private company to send spacecraft to ISS.

In what sense? The SpaceX launches were under NASA contract. Neither STS nor Apollo before it was built purely in-house by NASA; most of the parts were built by Rockwell, Lockheed and others. What's the big distinction here? Just that SpaceX was taking a bigger chunk of the failure risk?
It's cool, hey? How AMD (and others) are now doing their CPUs is a good example: there's often several CPU "chiplets" and then one IO chiplet on the same package. [0] is the first good search result.

Given what they've done with the M1, I highly suspect Apple will do something like that for their higher end machines.

[0] https://www.anandtech.com/show/16148/amd-ryzen-5000-and-zen-...
> I've just never heard of a scenario where someone needed $50k instantly sent anywhere for anything.

maybe not $50k, but "deposit paycheck on same day rent is due" is a fairly common problem that people have. the person has the money to pay rent, but it might not clear before their rent check bounces. there still exist landlords that only accept payment via check.

I agree in general. wires are fast enough for most truly large transfers of money, if only because the recipient is usually willing to be more flexible with such a large amount on the line.
just one truck? let's make a fleet. mine's gonna be a mini arcade with three cabinets.
In any economic system political aspects have a tendency to reduce the information available to consumers and producers. This is often done with laudable intent leading to terrible outcomes. In Soviet Communism the information feedback loop was so disconnected it resembled the theory of an AI "paperclip apocalypse"[1].

From 0:

The Soviet whalers, Berzin wrote, had been sent forth to kill whales for little reason other than to say they had killed them. They were motivated by an obligation to satisfy obscure line items in the five-year plans that drove the Soviet economy, which had been set with little regard for the Soviet Union’s actual demand for whale products.

Whaling, like every other industry in the Soviet Union, was governed by the dictates of the State Planning Committee of the Council of Ministers, a government organ tasked with meting out production targets. In the grand calculus of the country’s planned economy, whaling was considered a satellite of the fishing industry. This meant that the progress of the whaling fleets was measured by the same metric as the fishing fleets: gross product, principally the sheer mass of whales killed.

0. https://psmag.com/social-justice/the-senseless-environment-c...

1. https://voxeu.org/article/ai-and-paperclip-problem
This! My wife did a lot of reading in this when our kids were babies and her takeaway was that alcohol/drugs are responsible for most smothering events and that SIDS is actually reduced by co-sleeping - something about the mother’s breathing training the baby to breathe rhythmically. I believe she found a study on this point - I’ll try to dig it up and if I find it I’ll edit this comment with a source.
The worker can escape screaming kids, nagging spouse, etc.