jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
To clarify I meant comparing how int8/int16's are packed in structs vs struct bitfields. Can't recall about the stack rules. Here's more discussion:

http://www.catb.org/esr/structure-packing/

https://github.com/Twon/Alignment/blob/master/docs/alignment...

Also ARM for example doesn't have 8/16 bit registers so int8 or int16 will use a 32bit register:

https://stackoverflow.com/a/23716920

Curiosity got to me, perhaps Zig had improved significantly. So I compared the first benchmark I found (kostya/benchmarks/bf) with Zig with Nim. For the smaller input (bench.b) Zig did run with ~22% less RAM (about 20kB less).

However, for the larger input (mandel.b) Nim+ARC used ~33% less RAM in safe mode: Nim 2.163mb -d:release; Zig 2.884mb -O ReleaseSafe; Zig 2.687mb -O ReleaseFast. The Nim requires 0.5mb less ram and the code is ~40% shorter. I don't have time to try out the Rust or Go versions though.

edit: grammar
There's 181 studies citing that one on Google scholar. I think the science has moved past the paper you claim as the most complete study. You should look through them instead of latching onto a single paper when there's ample rebuttals in the literature.

You can find climatologists that deny global warming. Thus it's not credible to pick one of thousands of results as the truth. Pick the majority of expert opinions, not the outliers.
This doesn't sound like an ethics issue unless you have other issues with Red Hat's behavior.
That's Eggstreme @Jaruzel.
Humankind would still be living in caves without your public service.
You should give ActivityPub[1] a look. There are plenty of platforms based on this already.

[1]: https://en.wikipedia.org/wiki/ActivityPub
>> 4. I will vote you down if you 'tl;dr and summarise' any article; We're all grown-ups, and we all know how to read thanks.

Isn’t your comment against your own policy?
I also gave up around 2008/9. It was such an amazing, wild west of people contributing in any which way they could, illuminating bad edits, and trying to coordinate it all among the chaos.

Now it's just solidified into maintenance and administration mode. If they allow anything wild again, they risk losing their position and every organization seeks to propagate and continue its own existence, so they don't allow anything anymore.
"Everything else has gotten cheaper"

Except people.
It's an interesting concept, but I think this would open the door for the argument, "We added POI recognition so why not add feature Y?" Messages is supposed to be about communicating via short, concise text-style messages — adding additional features on top of that will eventually convolute and weigh down the original intent.

@jreed91's suggestion of having them turn into links that then connect to your review app of choice seems like an appropriate and minimalist enhancement to the app (Yelp or otherwise - ideally a configurable option).
Asking YC companies to crowdsource benevolence is hardly earth shattering. I'd be surprised if they don't already. The difference is offering this guide as a public resource. The risk is that firms could still treat YC companies well then treat others less well, but as pg notes, this type of duplicity is hardly worth the trouble.
Do you have a reference for that estimate? Would love to read more.
Some people find difficult problems more rewarding to solve. Given that internet points are meaningless, someone interested in learning a language better could spend their time regurgitating documentation (and hopefully learning along the way). Eventually, one of those regurgitated responses gets picked up by Google and becomes the top answer, and nobody even needs to go to the SE forums to ask.

I don't think they're mutually exclusive - there are multiple reward structures for multiple types of players. Both should be encouraged.
Thanks. When it comes to "easily refactor" I think there's a distinction to be drawn between "hard but understandable and verifiable" versus "maybe-easy but with unknown surprises."

The difficulty of replacing or refactoring code should come from the "inherent complexity" of creating its replacement, not from the "incidental complexity" of discovering its boundaries and influence.
Presumably Levie has a lockup period...
The secret of Dick Cheney, the Dark Lord, Himself, has been revealed! For decades, He has been kept alive by the blood of the young, and, until now, only His doctors knew the truth. Expect His vengence to be swift and severe!
Precisely. In fact, I chose the term "maker" for my blog: http://ai-maker.com/ and the gist of it is teaching, discussing, critiquing and creating stuff related to Artificial Intelligence (in this particular case). To me, none of the aforementioned topics is incompatible.
That part seems reasonably clear; an oscillator is a very simple circuit, most of the work is just going to be hooking it up to the displays correctly. You can design a circuit like this in a software simulator, put it together on a breadboard. Not saying that's what happened, but it doesn't seem like the hard part.
Am I the only one who is disappointed that two supposedly professional adults can't manage to have a grown up conversation about this? Reading the back and forth is pretty disheartening.
This was see-and-do behavior, but a chimp won't be able to describe in language the act of washing a potato. A chimp who never watched another chimp do something can't then replicate that behavior.
I've successfully used Cython to speed up Python code in the past(1) and a friend has used it for BCI projects.

1: runtime went from 2.5 hours to 20 minutes, but then I redesigned the algorithm, taking a few shortcuts I didnt know I could take when I wrote the first version and then runtime was down to maybe five minutes in pure python.
Are you seriously trying to suggest that the fact that apple makes highly desirable devices that people are prepared to pay more for is a negative?
I think you are starting from a false supposition.
So why use OpenSSL, then? It's been written by people I don't know. Some of them may be Vigilants. Some of them may be secret members of the Wikileaks team. One of them even studied only 12km from the BND headquarters. It has had exploitable holes before.
those meetings with Apple weren't really "recent". But yeah Apple has a high interest in batteries as well of course.
> Anyone know if Bolivia has sorted out their intentions for its epic lithium reserves?

Last I heard, they were planning to completely destroy the Uyuni Salt Flats to mine it for Lithium, which would be a horrible, horrible shame. It's spectacularly beautiful, and I was lucky enough to drive across it in my own Jeep a few years back[1,2]

Also, once you've spent some time in the Silver mine at Potosi[3], it becomes horribly clear how bad it really is there. It drove me to tears. The tldr; is that miners work in horrible conditions for a few dollars a day and have a life expectancy of ~35. The silver is sold to the Bolivian government for a fraction of the world market price. The Bolivian government sells it to the Peruvian government for a 10x mark-up, which is still a fraction of the world market price. The Peruvian government sells it to the US government for a 10x mark-up, which is still way below the world market price. The miners die very poor.

[1] http://theroadchoseme.com/the-uyuni-salt-flats-to-chile-1
[2] http://theroadchoseme.com/the-uyuni-salt-flats-to-chile-2
[3] http://theroadchoseme.com/potosi
I've seen reference to win32 in the settings.
there is no way in hell she's getting a better plan while having a terminal illness.
How relevant is the court of public opinion in a matter like this? Seems like Watsi realized they had more to lose than gain.
I met a couple of people about two years ago in Tennessee who lived in the middle of nowhere in a house in the mountains. They had a couple of solar panels that basically produced enough power to run an iMac so they could do some freelance design work to make money. They had a Verizon data card for net access.

Otherwise they lived like it was 1900.
No, what I'm talking about is absolutely not Head Start.

The students of Head Start are preschool children.

The students of Baby College are parents. It's about teaching people how to be parents.

When the problem is that bad parenting sabotages structured education, the answer isn't to start the education earlier. The answer (well, at least part of it) is to improve the parents.
Between high school and college I took a year off. I decided to spend 6 months in South Africa to help people help themselves out of poverty.

I did this by writing a curriculum that covered basic computer office skills. We got about 15 laptops donated from the states and began our mobile lab. Our first 2 class rounds were people that we hand picked to be teachers in later classes.

The next round of classes launched with the teachers that we just trained running the show (we still attended all of these sessions just to help out). The classes were self sustainable (teachers got paid a small amount from students, and the students were then committed to the program).

Jason (the guy who hooked me up with the downtown office) was a part of my team.

Moral of the story: Be nice and help people.
That's like saying there need to be a policeman for each citizen. Things don't work like that. The system isn't in one to one relationships.

Anyway it's a theory I heard somewhere I make no claims about it's validity. However I do believe there is something to it which explains why North Korea is so gong ho about controlling information (and being so successful at it)

There is a reason why they weld the radio station to one frequency and why the the US is trying to smuggle radios over the border.
Why not just time the execution instead of counting instructions?
oh yeah. anytime you look at a grade you have to look at when it was put up first. never trust a valley 5.9 put up in the 50's. also, never trust an old climb that is 5.9+ as that's likely 5.12ish.

also, that route is heinously hard with a majority of it being offwidths and runouts. the crux, mandatory free, pitch on it has some really airy 5.9 squeeze chimney with large cams as pro... to the point that the large cams you brought are not big enough so you leave a tipped out #6 and climb for another 50' above it.

edit: derp. I was talking about the salathé wall on el cap.
In the US there are, sadly, big financial interests in keeping the prison population high (the prison industry complex). Couple with what seems to be a very high reluctance towards giving someone who is mentally ill treatment instead of prison, and no real public mental health care, and you get what you get.
Except people who buy physical gold don't have to worry about "the technical side of securing their own funds" because they can put their gold in a safe deposit box... at a bank.

The safety of your Bitcoin, on the other hand, depends on some level on your own technical expertise. As long as this is the case, owning Bitcoin will never be as safe as owning gold.
Most of these anecdotes cry RAM issues. Broken memory creates weird issues in pretty much all operating systems, that's why you want to have ECC RAM in places where you don't want weird stuff.
Well, at least OSX so far has had a consistent method of resetting applications by deleting the ~/Library/ files, but I'm sure someone at Apple will manage to screw this up via some new iCloud feature sooner or later.
This used to be very common with offshore oil drilling too. You work 21 days straight on an oil platform and then get 14 days off. Company paid all expenses while on the platform and also paid air travel to/from your home base to the town nearest to the offshore oil platform and from where company will ferry you to/from oil platform on a chopper.
>I started drafting a sincere reply, but I don't think you're arguing in good faith.

what is bad faith about taking someone's claims at face value? your claims are

1) 50k distribution to homeless people is unfair to people making less than 50k

2) the core issue of homelessness is a-bunch-of-things–none-of-which-is-being-without-a-home

>What are you suggesting, that we give homes to homeless people?

i'm not suggesting anything. i'm simply pointing out that your claims are vacuously false given some very obvious counterpoints.

but let's "faithfully engage" with your premise; norway has the lowest homelessness rate in the world. what do they do?

1) Reduce eviction petitions by 50% and eviction itself by 30%

2) Prevent individuals recently released from prison or a treatment institution from requiring temporary housing

3) Improve the quality of overnight shelters

4) Limit temporary housing stays to less than three months

5) Ensure safe rental housing for families with children

6) Limit temporary housing to exceptional circumstances, with these arrangements not exceeding three months

>The 2014 strategy plans to achieve these goals by providing assistance to individuals shifting from temporary to permanent housing, assistance in obtaining a suitable home within an insecure housing market, preventing evictions and social innovation."

note that all of these policies revolve around (unsurprisingly) homes.

[1] https://borgenproject.org/homelessness-in-norway/
I'm not sure why the victim complex about Apple in your comment, he said too few companies do it and that remains true whether or not Apple is in that group. In fact that conversation has nothing to do with Apple.
A question for HN - I like Java a lot for the ‘http API talking to SQL database’ usecase, with my goto for that being dropwizard or spring boot.

I’ve only ever looked at Kotlin code in blogposts, haven’t ever actually used it. I’m probably at least a few years behind on its feature set, but I am aware of all the great features Java has added in that timeframe, many no doubt inspired by Kotlin!

Would you advise me to use Kotlin over Java building a new API from scratch in 2021, given where both languages and ecosystems are today? Why or why not?
I really wish people wouldn't post stuff like this to HN.

The last bowl bubble was devastating. In 2013 there were literally bowls selling for millions of dollars[1]. My kids didn't eat cereal that year.

Please consider the consequences of your startups. It's "just a landing page" one day but the next, you're ruining lives.

[1] https://www.cnn.com/2013/03/20/business/sothebys-china-bowl/...
Accessibility: the Search menu cursor and user input lack visibility/legibility · Issue #45 · helloSystem/Menu — https://github.com/helloSystem/Menu/issues/45
The default and oldest auth method for NFS, "sec=sys," was designed with the assumption that servers and clients are both trusted (sysadminned by the same people) and had the same set of user accounts. Servers enforce that client connections only come from privileged ports, and they trust whatever UID the client says it's using. This works in concert with the traditional UNIX restriction that only root can bind to ports under 1024, including initiating connections where the client port is under 1024.

In this model, giving users root would let them su to arbitrary UIDs on the client and impersonate other users to the server. (Alternatively, it would also let them run their own NFS client on a low port and do whatever they want, too.)

This does lend itself to a very simple and efficient design, since all you're doing is transmitting a single integer over the wire to identify yourself, and the whole connection is in plaintext, authenticated only by the source port. For the HPC / cluster computing use cases where NFS is popular, the efficiency and scalability of that scheme is important. There are better authentication methods (Kerberos, notably, which also adds optional encryption), and other ways to design your NFS architecture, but they're much more operationally complicated and commercial NAS devices tend to work best with the sec=sys approach. Also, public cloud NFS-as-a-service options tend to only support sec=sys (https://cloud.google.com/filestore/docs/access-control, https://docs.aws.amazon.com/efs/latest/ug/accessing-fs-nfs-p..., https://docs.microsoft.com/en-us/azure/storage/files/storage..., etc.).

We are trying to figure out how to solve this, as I mentioned, but when dealing with an organization that has decades of workflows and code assuming a traditional UNIX environment with shared multi-user machines, there's no instant solution to it. (In many cases our solution is going to be to stop using NFS and use something more object-storage shaped, which will also help us move to idiomatic public-cloud designs.)
Level up on your #coding, problem solving, #algorithms, system design, interview preparation!

Get #Valentines 25% discount use my promo code link below

http://algoexpert.com/zed_developer

Many happy reviews.

#valentinesday2021 #ValentinesDay #100DaysOfCode #FAANG #SoftwareEngineer
Let's say they say No, and Google moves a town over. What happens then?
There's a StackExchange site for English if you are unsure about the right way to say something: http://english.stackexchange.com/
i think i should remove that statement from the article.

i think i was overreacting (pun intended) and it was a mostly unqualified opinion. my feelings were more so of inconvenience and thinking that there was little benefit to actually having form values on the state (possibly specific to my use case, which didn't require any additional logic for form values).

using the pattern mentioned in https://news.ycombinator.com/item?id=8811617 would remove a lot of work that I initially thought was necessary, or using the LinkedStateMixin from addons everywhere.

will fix. apologies for misleading

[edit]: article updated.
> I use Kubernetes on AWS, but don’t fall into the trap of thinking you need this. I learned these tools over several years mentored by a very patient team. I'm productive because this is what I know best, and I can focus on shipping stuff instead. Your mileage may vary.

This is a key point. I don't know Kubernetes, and for this kind of scale I'd probably use, say, Heroku. But if I did know Kubernetes, I'd probably use it as it would be one less thing I'd have to worry about if I had to scale up quickly: you never know if that little side project with a dozen users is going to become an overnight success.
The strange thing is that the same things that people use to fight rent increases (rent control, etc) wind up creating perverse incentives that reduce the quality and quantity of the housing stock. If you want cheap rent, encourage people to build houses.
The approximate linearity is amazing!
Do you know if shadow-cljs support source maps for React Native? (Their absence was a really significant pain point when I worked on a production CLJS/RN app.)
I don’t think it’s necessary to think about all use cases... just those that use lots and lots of energy.
There is T0, part of BearSSL. This presentation has an explanation of it (starts slide 19):

https://t1lang.github.io/NorthSec-20190516.pdf
The purpose of standardized testing is the standardized part.

It's a convenient way to compare students from different schools. The per school graduation exams have the benefit of allowing customization on a per school (per class, even) basis. This customization is one of the good things about the US education system, IMO. We are not like Germany, with the track set for the student (Gymnasium vs trade school) at middle school age, nor are we like India, China, and Japan (single extremely high stakes test).

US schooling is uneven. Some of the schools are very good (well funded private, religious schools with a focus on schooling instead of dogma, public schools in wealthy areas). Some are terrible (public schools in poor areas, public schools in cities).

Standardized testing, when viewed from one angle, makes the world more even: the test "doesn't care" (debated) what race you are, the wealth of your parents, etc. It "objectively" (debated) measures aptitude, giving equal opportunity to all.

I'm fairly sympathetic to that view, and I'm also skeptical that removing the standardized testing requirements will lead to more equality. Standardized testing seems like the method least susceptible to rigging by rich parents, what will they replace it with that is fairer?
But the security is still good enough, right?

As long as the mining expenditure exceeds the potential illicit rewards of a double-spend, it's not profitable to out-mine the network just to be able to double-spend. So the security of bitcoin should be an all-or-nothing thing: either a 51% attack is profitable, or it's not.

It seems to me if there was some way to determine the potential real world reward of a double-spend, Bitcoin could spend exactly the right amount on security: that number + 1. I don't know how to calculate that number.

I doubt that Bitcoin mining is matching it precisely because how would it? So it is probably overpaying or underpaying by some amount. So far, Bitcoin appears to have overpaid for security, given that it hasn't been 51%ed. Who knows by how much. Maybe after the next halving, or the one after that, it'll be underpaying?
I think one common misconception is that Django can't be used in place of Flask when you want a minimalist set up. And to be fair, I used to think the same until I read Lightweight Django [0]. Their smallest django project code is just a couple of lines:

import sys
from django.conf import settings
settings.configure(
DEBUG=True,
SECRET_KEY='thisisthesecretkey',
ROOT_URLCONF=__name__,
MIDDLEWARE_CLASSES=(
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
),
)

from django.conf.urls import url
from django.http import HttpResponse

def index(request):
return HttpResponse('Hello World')

urlpatterns = (
url(r'^$', index),
)

if __name__ == "__main__":
from django.core.management import execute_from_command_line

execute_from_command_line(sys.argv)

Granted, it's not as terse as Flask's hello world example but it's still quite short.

[0] https://www.oreilly.com/library/view/lightweight-django/9781...
I feel like it’s a honey trap.
Yeah, I think it's hard to keep your computers at 100% utilization for the entire day. You host services close to your users, and your users go to bed at some point, many of them at around the same time every day. Then your computers have very little work to do.

Some bigger companies have a lot of batch jobs that can run overnight and steal idle cycles, but you have to be gigantic before that's realistic. (My experience with writing gigantic batch jobs is that I just requisitioned the compute at "production quality" so I could work on them during the day, rather than waiting for them to run overnight. Not sure what other people did, and therefore not really sure how much runs overnight at big companies.)

Cloud providers have spot instances that could take up some of this slack, but I bet there is plenty of idle capacity precisely because the cost can't go to $0 because of electricity use. Or I could be completely wrong about workloads, maybe everyone has their web servers and CI systems running at 100% CPU all night. I've never seen it, though.
Probably would’ve still been harassed and wound up on the no-fly list, but yes, if the FBI tricks you into meeting them, walk away.
The fibre is being built by private companies operating under carefully designed govt subsidy. The main reason Govt exists is to provide services that benefit the whole country but are too "big" for the market to provide, or lack direct short term benefits.

Fiber is a great place for the govt to help.
I am a firm believer of What Get Measured, Get Done. The same is for website, when you measure and understand what works and what dun. You are definitely able to come up with more ways to do things better.
It is a lot like buying a house that's already been remodeled. Someone else has already gone through the stress and taken all the risk (e.g. going over budget, not finishing, etc). Rather than doing R&D in house and pouring money and effort into projects that may never see the light of day, you can buy companies that are already seeing some success.