skysight-inc/HackerNews huggingface dataset:
Getting command line arguments is covered here:

https://ziglearn.org/chapter-2/#iterators

I don't think that going further into parsing is in scope. std.log is something that definitely needs to be covered. HTTP, I'm not sure about as it requires a lot of extra machinery outside of the standard library and these things aren't mature yet.
Lol, a cherry picked benchmark and it's for json using a Jackson wrapper lib. That's some lovely Clojure representation right there.
Or create an iterator and use Iterator::filter, which is probably a bit more idiomatic.
Trump berates Ga. secretary of state, urges him to ‘find’ votes
Ya for sure. I was a Googler so my examples were biased, these aren't the only ad formats that work but there are fewer than most people (even in ad tech) realize.
CNN Teletext from 31 Oct 2006 still available and useable
Ask HN: What software do you use to write technical specifications?
To my knowledge, a proper tool/framework to write, maintain and nurture technical specifications is missing in software project management.

If you have any experience writing specs, what tool do you use? Did you come up with your own framework?
The classic example is quicksort. qsort takes a function pointer, but std::sort is a template. This means that the machinery can be inlined more often in C++ than C.

https://stackoverflow.com/questions/18002087/qsort-vs-stdsor...
Just yesterday I was reviewing Qt, GTK and Electron as possible choices for some GUI exercise, and _at a glance_ Qt sure looks likely to involve committing to GPL, which is a pretty irreversible commitment to have to make at the outset of a project.

I guess it's possible to sort through the individual components and find a subset that is LGPL and not GPL, but that's a lot of work, especially if you're not familiar with Qt already and need to make a decision.
> Then there is another segment these are large enterprises and they ask us a lot about security, sso and integrations we have quoted them price from 1 USD per user per month to 10 USD and reaction is mixed some thinks even 1USD is high price for this kind of tool.

The numbers you are contemplating here are shockingly low — 1000x too low — for enterprise SaaS. Questions about security and SSO are “tells” that you’re dealing with a very different kind of customer.

If you want to sell to large enterprises, this patio11 article is a good start: https://training.kalzumeus.com/newsletters/archive/enterpris...

Do you or your co-founders have a strong sales background? If not, skip the whole enterprise sales thing for now and focus on converting consumer accounts. With half a million users, even a low conversion rate at a low price point should turn this into a profitable business.
I've said for a long time that Martech is due for a correction due to lack of understanding in attribution. Could this finally be the bubble bursting?
Ah thanks! My bad. Corrected.
We are blowing it again
“Half the money I spend on advertising is wasted; the trouble is I don't know which half.” - John Wanamaker

Half was true in his time (a century ago) but I think our numbers are way worse.
How a Student Photographed a Single Atom With a Store-Bought Camera (2018)
Hi, author here. Not affiliated with Superhuman. I don’t pay for it either. Maybe I should make that clearer in the post?
if you read the twitter thread we see that uber was spending 10x more money than they should have on ads simply because they weren't auditing where their money was going towards.

so there's evidence that people (incl uber, a market leader) do indeed spend money on ads even when it does nothing
It's all good; most people don't draw the distinction. I myself didn't know that &T was also noalias for years.
Magic: The Gathering, Integer Linear Programming, & Arbitrage
Writing a prometheus MPD exporter (in Rust)
See this is what I'm talking about. This is ridiculous.
In he case of std::sort the C++ compiler can inline the comparison function when it generates the actual sort implementation from the std::sort template. In C the qsort implementation is fixed and must call the comparison via an indirect reference.
The tourism industry is dead without local government support. It will remain on life support until COVID is over or the lenders decide to scrap it. Pivoting to a local market will likely result in less revinue and a lot more competition. Banks might see an opportunity in creating other jobs but I doubt they will invest with a lot of uncertainty.
The paper you cite is from 2014 and the mitigations discussed there have all been circumvented. [1] is from 2020 and a better read for Rowhammer mitigation.

[1] J. S. Kim et al, Revisiting RowHammer: An Experimental Analysis of Modern DRAM Devices and Mitigation Techniques https://arxiv.org/abs/2005.13121
Hopefully yours is only available on a company LAN or other private network. Public link shorteners are a linkrot disaster, particularly the myriad of shorteners being run by random dudes for shits and giggles, since those disappear as soon as they get bored. There is nothing more frustrating than having a dead shortened link for content that is likely still available if only you had the real URL, not the shortened garbage. Link shorteners are a form of pollution; you may as well pour used motor oil down a gutter.
This comment depresses me so much. You track your own time obsessively and use it as a reference in performance reviews?

This sounds like a dystopian hell out of Big Brother.
Author here. I started learning prometheus and grafana and decided to write an exporter for the music player daemon.
Here's my writeup on the journey.
another horrible game for passwords? international super star soccer deluxe.

it was horrible[0] for really young me (and my friends/family) to type all the characters.

[0] https://i.imgur.com/djWNEy3.png
In the US it's easy to get a zero-fee credit card. Most have rewards programs.

The personal finance advice I've heard is not "don't use credit cards" it is "don't carry a balance on credit cards."

Carrying a balance will eat you alive on interest. As will fees for late payments or going over the limit. If you have the self-discipline to not do those things, there's no reason to not use a credit card.
Postmortem: Frog City's Trade Empires (2002)
That theory can easily be tested by turning off the ads in question and seeing what actually happens. Can always turn them on again later if needed.
C++ can inline the comparison function (which is often just a few instructions) at compile time. It can also statically optimize for the stride, using shifts or addressing modes instead of multiplies. C can't do either with qsort, which takes the stride and comparison function pointer as arguments.
> I've used OpenNoteScan before:

Small correction: it is Open Note Scanner app (NOT OpenNoteScan)
One book that took on the subject in a neutral way was Des hommes, des dieux et des extraterrestres: Ethnologie d'une croyance moderne by Stoczkowski, Wiktor (I'm not sure if it was published in english). Unfortunately I can't recall much of the book - I've read it ages ago.
It was an anthropologist's study of groups who believed people originated in outer space.
Its hard to give more specific advice without knowing more about the product, but to me it does sound like the most straightforward path would be to keep your existing free plan as-is today, and then offer a paid plan structure on top of it, turning yourself into a freemium offering.

You don't need to reduce your free offering to make space for a paid plan - not right now, at least. Maybe you will eventually, but if you think you still have space to grow your free plan and it the unit economics are manageable for you, that's a half million or so and growing hot leads for your paid plan.

> The think i am worried is that our growth happened like this, A dev team from a company started using it and then they like it and in few months it will be 5-15 teams from same company will start using it because they liked it and it was free now

If an entire engineering organization with multiple teams is using your product, the vast majority will pay for it if you find the right features, pricing and positioning. A small dev team at an unfunded, pre-revenue startup might want to pinch pennies some, but if orgs that have a significant sized engineering team are starting to use your tool, paying a reasonable amount monthly is a rounding error compared to the cost of their salaries.

> Then there is another segment these are large enterprises and they ask us a lot about security, sso and integrations we have quoted them price from 1 USD per user per month to 10 USD and reaction is mixed some thinks even 1USD is high price for this kind of tool.

There is always difficulty in getting people to go from free to paid. It doesn't matter how much the pricetag is, there's resistance to pulling out the wallet across the board. You shouldn't be trying to minimize the price of your product. In fact, I'd personally look at a $1 price tag and wonder if the software is robust enough to use at my organization. It would make me NOT want to buy it. Price it reasonably. Some people will never pay for your product. Your goal isn't to convert all of your users to paid accounts, your goal is to convert enough people at an appropriate pricing structure for you to have a sustainable, successful business.
This feels very clever to me. I think people have very wrong senses of how bad various actions are for carbon footprint. I know folks who don’t eat meat for CO2 reasons (which I’m fine with) but fly across the US all the time—-sorry citation needed and happy to be corrected but I did this math once and it was roughly one year of meat = one (round?)trip.

A side-benefit, in my view, is to show that actually offsetting carbon footprints isn’t terribly expensive (for people who have the disposable income to fly across the country), which I think counters the “We’d have to shut down the economy to stop global warming” misconception that I believe a lot of people have (citation also needed here, just personal experience)

The Indulgences That Actually Work Card (in the sense of old Catholic indulgences), you could call it :)
Dobrze ;)
I think for most use cases, as a user i'd rather see the newest items in a list, then consistency of pagination. If i forget to manually refresh, i might miss out on important new items.

Why do you think it is important for users to have temporal consistency?
> There's absolutely nothing special about Zig

That's just not true. It is not only pretty exceptional in its general partial evaluation construct combined with compile-time introspection (although D and Nim have some similar features), it is the only language AFAIK where a single general partial evaluation construct is used in stead of type generics, value generics, typeclasses/concepts, constexprs, macros and conditional compilation.

Zig might not be your cup of tea, and that's fine, but it is without a doubt unique in its design and not only special, but pretty radical.

> Talk about confusing, implicit syntax of Zig

I don't think it's any more confusing than any other syntax (and less confusing than C's `for` syntax where the ubiquitous `;` is treated differently than anywhere else), even though it might not be familiar to you before learning it, but there is absolutely nothing implicit here. You might find `in` more appealing to you or more familiar than `|` but it's certainly not more explicit.
Ask HN: DeepMind’s MuZero algo plus Boston Dynamics robots = singularity?
I’m scared, aren’t you? Why? What’s coming in 2021 already?
The solution to this would be to have a very authoritative site for a query show above any ads.
That article is disingenuous, the startup time of "hello world" in Clojure is still pretty bad but tolerable, the issue arises when you start to add libraries, now your web service can take from 1-2 minutes or more to start.
TL:DR version - People who love programming are not shy or afraid of going from just needing to update copyrights to converting K&R to ANSI-C, fixing pointer bugs, adding new widgets and even finding new card images in SVG to make it look all better! Hope these KGames updates land in Debian unstable soon.

Also I wondered from the headline why keithp is into XCode - might be better to have used X11 code instead.
Eh, for links to content on my website I just cooked up my own URL shortener using Apache rewrite maps and a little scripting to generate the short codes. Simple, private, and entirely under my control (which also means I don't have to worry about the links breaking).
Graphics software.
Yeah, I saw the title of this blog post and it immediately depressed me. The idea of tracking my time minutely in some effort to be more efficient or "productive" seems to be the antithesis of being human.
I'm reminded of the famous quote by George Best: “I spent a lot of money on booze, birds, and fast cars. The rest I just squandered.”
Stone will last much more than concrete and steel.
Yes there is a risk to buy a Ryzen CPU with non-functional ECC.

However, I use only computers with ECC, previously only Xeons, but in the last years I have replaced many of them with Ryzens, all of which work OK with ECC memory.

When having to choose between a very small risk of losing the price of a CPU and having to use for sure, during many years, an Intel CPU with half of the AMD speed, the choice was very obvious for me.
> Is there a metric to look for to understand what power consumption is at "idle" or something close to that? That is what confuses me. I don't want to spend a lot of money on something that will be always on, and usually idling, and finding that its power usage is way higher than I thought.

Community benchmarks, from Tom's Hardware, etc.

The vendor numbers are make believe-- you can't use them for power supply sizing or for thermal path sizing. If you look at the cited TDP numbers today-- it can be misleading-- e.g. often Intel 45W TDP parts use more power at peak than AMD 65W parts.

On modern systems, almost none of the idle consumption is the processor. The power supply's idle use and motherboard functions dominate.

> Also, even though the CPU may draw less, can still the power supply waste more, just because it is beefy?

Yes, having to select a larger power supply can result in more idle consumption, though this is more of a problem on the very low end.
Care to elaborate more? What exactly is "programmatic direct response advertising"?
I love watching people realize that online ads do little to nothing. It took me a week or two to realize this years ago with my own sites.
I've been playing a silly phone game for about a month now. Only last week I realized it has ads: I'd become so ad-blind that I completely ignored the banner ad they keep at the bottom of the window at all times. I only noticed it because it flickered when transitioning to another ad.
I can see the software development analogies all over the place here.

The founders basically knew they were delivering a MVP with some expectation it won't be perfect. Hence the large number of early Constitutional amendments. Jefferson was famously keen on having the whole thing tossed out every 25 years. In a way, he anticipated the gradual loss of product-market fit long before it was a term.

At some point, the US government became the entrenched legacy system. We can look at other countries and see they have modern shiny features like ranked-choice voting and being able to respond to crises in an integrated manner, but everyone is too afraid to break the existing system.

I wonder if we could apply what we know from engineering and software development lifecycles to political process. I could imagine reorganizing the US as an EU style relationship of three or four sub-nations, who have a permanent movement/trade/currency/foreign policy union, but can each run on different constitutions and nuts-and-bolts government structures. Instead of the protective mechanism of making constitutional change expensive and difficult, we can use the sub-nations as test branches, making changes liberally, with the understanding that the successful changes will be propagated to the rest of the country.
I think a lot of this was already obvious to slightly-savvy mobile app users. Look at pretty much any free-with-ads app; a majority of the ads are going to be ads for other free-with-ads apps, many of which you already have installed. The thing is, outside of the Internet most ad spend is for marketing ubiquity, not direct response. You don't really buy, say, TV advertising with the expectation of getting so many clicks or calls out of it. And, up until a few years ago, TV was the lion's share of ad spend. So who knows if we'll see an actual industry reckoning or not. The whole point of advertising is to waste money, after all, and plenty of brands were fine with getting nothing but exposure out of it.

More interesting to me is the fact that tech companies are finding it surprisingly difficult to control where their ad-spend goes. I suppose this is an inverse of the problems with supply chains, where Apple can take three years to get a connector vendor out of their supply chain even when they were using literal child/slave labor. It's a market for lemons; bad "money" (publishers, suppliers) drives out good. The question is: will questionable ad publishing actually harm corporate reputation to the point where big ad spenders go away, or will we just see periodic Adpocalpse-style waves of spending being decreased and then brought back?
Maybe this is due to chinese and indian click farms running through VPN’s?

Click farms click on everything in order to dodge fraud detection, as far as I know.
You assume incorrectly. SSL encryption is in the order of 1 GB/s on a recent CPU with AES instructions (anything from this decade).

Gzip is in the order of 10 MB/s with default settings, down to 1 MB/s with the strongest compression setting. It's really really slow.
The Double Standard of a Trump Pardon for Silk Road Founder Ross Ulbricht
https://en.wikipedia.org/wiki/Teletext

A system that used the vertical blanking lines to encode text in pages displayed on the users TV. You could use you remote to select other pages by number.

The system was much more popular in the rest of the world, vs here in the USA. I do remember has a kid it being available on my grandparents TV in the north east USA.

The CNN page above is still navigable.
Too late to edit that, but note also that this was donated by Fastly - see https://www.fastly.com/open-source
Carrying over from previous years, but we've been building Snapsure (https://snapsure.app) to help photographers find just the right conditions to take better pictures. We're finally "launching" this month with our free tier as we continue to get feedback and scale features.
We don't spend nearly enough time in primary and high school teaching practical personal finance. For many people that could be the single most important life skill they learn in 12 years of education.
> "GTK4 for Graphical User Interfaces with the Nim Programming Language"

And it is outdated, as there would be no GTK4 - instead it would be released as GTK40, so some API could be changed and samples from this book would not work anymore.
One should always set alarms on expanses
Durian is a problematic person. Best to ignore him.
Some pro-level Nvidia GPUs have ECC RAM, they are very expensive though. I don’t think regular gaming GPUs have parity, due to the extra cost, performance impact (probably minor but measurable) and irrelevance for gaming.
> I've got nearly 30 years of experience and not once has non ECC memory lead to corruption

How do you know?
Have you finally stopped buying Intel? Current Ryzens are a much better CPU anyhow, just dump Intel and be happy with your ECC and everything else.
With google specifically, I've always wondered if the placement of the listing itself is related to the ad spend.
>I know I can safely ignore such benchmark.

C++ makes certain intentions clear to the compiler in ways that C doesn't, which makes certain optimizations possible.
The reasons I use C versus comparable alternatives are not limited to speed. For example, the size of the compiler toolchain, the speed of compilation and the size of the resulting executables are all factors I have to consider. I do lots of work on systems with limited resources. How does Rust compare on those points versus, say, GCC.

https://dev.to/aakatev/executable-size-rust-go-c-and-c-1bna
Yes through the PCI bus not directly. You don't want to have that latency. You want a unified model. Like Intel GPUs that can access main memory, or the FPGA being another endpoint in AMDs infinite fabric architecture. That exists as well in SoCFPGA boards. But not in the mid or high performance segments.
DeFi is easy and doesn’t really involve blockchain knowledge, but your use of the code becomes blockchain knowledge.

The programming is all javascript and solidity, which has syntax very similar to js. The blockchain imposes restrictions on how complex your code can be which means you are writing simpler code. More like building with legos (which is very similar to other programming where you have dependency hell, not really prevalent here because the other code-legos don't really change).

Private sector has not gotten around to valuing this skillset and typically interview out of novelty and curiosity but are completely confused and ignorant about what your involvement in “blockchain” actually was, but there are enough VC backed companies that operate in this space if you wish to eventually be employed.

You can also get wealthy enough not to care. Not from crypto prices rising, just from transaction volume and earning your crypto.
I'll raise my head above the parapet and admit that I don't get it. How about just scheduling things? If you want to spend more time on things that matter, just pick a date and time, and get going.

That said, perhaps the alluring part was gathering data on one's self.
I would be really interested to read a study that isn’t based on self evaluation.
Technically libc couldhave an inline version of qsort in the header or the linker (even the dynamic linker) could do LTO, but bechmarks are done on actual implementations not the mythical sufficiently good compiler.
Code of Revelation
Playing devils advocate, couldn’t this just be reflective of the fact that Ubers brand reach us strong enough that there is very little advertising that gives them a marginal benefit?

Uber owns taxi services as a brand as much as Google does search.
> I’d like to see an actual technical write up of this: network logs, tracing of the android device activity etc.

FWIW there’s a technical paper[0] that summarizes existing studies as of 2019, and it’s been neither definitively proven nor disproven that it happens. Turns out it’s not at all that trivial to detect.

From the paper:

> Perhaps most importantly, Pan et al. were not able to rule out the scenario of apps transforming audio recordings into less detectable text transcripts or audio fingerprints before sending the information out. This would be a very realistic attack scenario. In fact, various popular apps are known to compress recorded audio in such a way [10, 33]. While all the choices that Pan et al. made regarding their experimental setup and methodology are completely understandable and were communicated transparently, the limitations do limit the significance of their findings. All in all, their approach would only uncover highly unsophisticated eavesdropping attempts. …

> Therefore, the fact that no evidence for large-scale mobile eavesdropping has been found so far should not be interpreted as an all-clear. It could only mean that it is difficult – under current circumstances perhaps even impossible – to detect such attacks effectively.

(Apparently, noticing relevant content being obviously suggested is the only way of detecting it at this time, and of course it comes with its own caveats.)

[0] https://link.springer.com/chapter/10.1007/978-3-030-22479-0_...