Better HN
topnewbestaskshowjobs
Log inSign up

rustc

1,476 karma · joined Nov 10, 2012 (14y ago) · 287 submissions

Submissions

comment 12mo ago · link · parent

That's how you get this feature: https://wiki.php.net/rfc/deprecate-bareword-strings.

tldr: undefined constants were treated as a string (+ a warning), so `$x = FOO` was `$x = "FOO"` + a warning if `FOO` was not a defined constant. Thankfully this feature was removed in PHP 8.

2.

Benchmarking KDB-X vs. QuestDB, ClickHouse, TimescaleDB and InfluxDB(kx.com ↗)

5 points · by rustc · 1y ago · discuss

3.

The Web Animation Performance Tier List(motion.dev ↗)

1 points · by rustc · 1y ago · discuss

4.

The New Google Search Ad Layout Is Causing Accidental Clicks(seroundtable.com ↗)

29 points · by rustc · 1y ago · 3 comments

comment 1y ago · link · parent

> what's next?

Removing existing Docker images? Seems unlikely.

comment 1y ago · link · parent

It's still risky if you pay unless you have a contract guaranteeing what the renewal price would be.

comment 1y ago · link · parent

> OR they acknowledge that it's almost impossible to build a website without some form of tracking

Why would it be almost impossible to "build a website" without tracking?

comment 1y ago · link · parent

Another weird idea: make this kind of tracking illegal. Why would anyone willingly agree to be tracked?

comment 1y ago · link · parent

Or just ban this kind of data collection. Is there any reason anyone would willingly click "Accept" when a website asks to share your data with 500+ partner sites?

comment 1y ago · link · parent

Does any host provide more compensation than refund for downtime?

comment 1y ago · link · parent

What is the right way to make ripgrep behave closer to `git grep`? Plain `rg` ignores files inside hidden folders like `.github`, `rg --hidden` will search `.github` but also search inside `.git`. I currently have this alias that I don't remember where I found: `rg --hidden --glob '!*/.git/*'`. Is there a better way?

I would prefer a solution that works from outside git repos, so no piping `git ls-files` into rg.

comment 1y ago · link · parent

But will the "big fine" be more than the money LinkedIn will make by doing this?

comment 1y ago · link · parent

It would disallow private forks of WordPress (require them to share the modifications) but I don't know whether WPEngine and other hosts have any private modifications or they all use stock WordPress.

comment 1y ago · link · parent

Have you thought about licensing future additions to WordPress under AGPL? I believe it can be done [1]. This will disallow private forks and require companies to publish any changes they make.

[1]: https://opensource.stackexchange.com/questions/12276/how-to-...

comment 1y ago · link · parent

> If your bank calls you, hang up and log in or call their support number yourself.

And don't trust the number you see on Google. Google is known to show scammers' phone numbers in featured snippets or in their new "AI Mode". Click on the link and make sure it's the correct site before trusting the number.

16.

CVC Strikes $1.5B Deal for Namecheap(wsj.com ↗)

6 points · by rustc · 1y ago · 4 comments

comment 1y ago · link · parent

The notifications are not real time. You can rack up a significant bill before they are triggered.

comment 1y ago · link · parent

And what if they don't say "no problem"? Like the Netlify case where they at first offered a reduced bill (which was still a lot) before the post got viral and the CEO stepped in.

comment 1y ago · link · parent

> Included in Always Free Tier

> 1 TB of data

Someone can rent a 1Gbps server for cheap (under $50 on OVH) and pull 330TB in a month from your site. That's about $30k of egress on AWS if you don't do anything to stop it.

comment 1y ago · link · parent

> If you put your information freely on the web, you should have minimal expectations on who uses it and how.

Does this only apply to "information" or should we treat all open source code as public domain?

comment 1y ago · link · parent

> If you want your content to be free, you release it and have no issues with AI. If you want to make money of your content, add a paywall.

What about licenses like CC-BY-NC (Creative Commons - Non Commercial)?

comment 1y ago · link · parent

This is like `curl | bash` but you automatically execute the code on every webpage you visit with full access to your browser.

comment 1y ago · link · parent

> Malicious actors can hide instructions in websites, emails, and documents that trick AI into taking harmful actions without your knowledge, including:

> * Accessing your accounts or files

> * Sharing your private information

> * Making purchases on your behalf

> * Taking actions you never intended

This should really be at the top of the page and not one full screen below the "Try" button.

24.

Anthropic settles class action from US authors alleging copyright infringement(reuters.com ↗)

7 points · by rustc · 1y ago · discuss

12345
10