Better HN
topnewbestaskshowjobs
Log inSign up

crazypython

4,542 karma · joined Jul 18, 2019 (7y ago) · 1,228 submissions

Submissions

comment 5y ago · link · parent

Hi, I made this map/visual diagram of the web's APIs. One of the interesting things you can see is the emerging technologies, like CSS Houdini (https://developer.mozilla.org/en-US/docs/Web/Houdini). Another is alternative and less popular technologies, like XSLT for styling (https://developer.mozilla.org/en-US/docs/Web/XSLT) or SVG as a markup language. (https://www.w3.org/TR/SVG11/)

It helps people understand the capabilities of a modern web browser easier.

The color-coding is intended to help web developers think on if they can use as a feature on their site. If your audience is on a modern web browser (not IE 11), the medium shade of green is enough. If you only need some users to have the feature, then dark green is enough. If you only care about Chrome, you can use the APIs in blue.

932.

Periodic table of the web's APIs(wwwperiodictable.surge.sh ↗)

127 points · by crazypython · 5y ago · 44 comments

933.

Show HN: Visual Map of APIs and Technologies on the World Wide Web(wwwperiodictable.surge.sh ↗)

1 points · by crazypython · 5y ago · discuss

comment 5y ago · link · parent

What about CDN to reduce latency and load time?

935.

Show HN: Visualization of Available Web APIs(wwwperiodictable.surge.sh ↗)

12 points · by crazypython · 5y ago · discuss

936.

Periodic Table of the Web(wwwperiodictable.surge.sh ↗)

2 points · by crazypython · 5y ago · discuss

937.

Web Periodic Table v0.0.1(wwwperiodictable.surge.sh ↗)

1 points · by crazypython · 5y ago · discuss

938.

Web Periodic Table v0.0.1(wwwperiodictable.surge.sh ↗)

3 points · by crazypython · 5y ago · 1 comment

939.

H.R.2426 – Copyright Alternative in Small-Claims Enforcement Act of 2019(congress.gov ↗)

2 points · by crazypython · 5y ago · discuss

940.

Ask HN: Monetizing/attaching a monetary reward to good HN comments?

2 points · by crazypython · 5y ago · 2 comments

comment 6y ago · link · parent

AGPL let's you link against GPL code.

comment 6y ago · link · parent

Disappointed it's not under GPL– since it isn't, any other company (Huawei? Samsung?) could use the code to create a surveilling alternative to Google Play Services and take away user freedom once again.

943.

Browsers(darthsecuria.neocities.org ↗)

1 points · by crazypython · 6y ago · discuss

944.

Darth Securia(darthsecuria.neocities.org ↗)

1 points · by crazypython · 6y ago · discuss

945.

Logseq – Open Collective(opencollective.com ↗)

1 points · by crazypython · 6y ago · discuss

comment 6y ago · link · parent

Like CAs, the power company can be controlled by the government.

Let's say governments ban youtube-dl. The prosecution gets a court order to order CAs to not renew youtube-dl.org. If they're using a Let's Encrypt style 30 day certificate, youtube-dl has 30 days to comply or be soft-banned from the internet.

comment 6y ago · link · parent

When enabled, it forces a domain to be signed by a CA to be displayed. Effectively giving the CA a veto over the content.

comment 6y ago · link · parent

> Just give each server a separate domain and certificate as you create them. The matchmaking algorithm returns a url pointing to the server.

Do you mean a separate subdomain? (A separate domain would be very expensive.) I would need to figure out how to generate and provision certificates, in that case.

949.

Wisdom(twitter.com ↗)

1 points · by crazypython · 6y ago · discuss

comment 6y ago · link · parent

> A game absolutely should be use HTTPS anyhow, for their own security.

The game has no log-in or sign-up; no account system. The only potentially sensitive data sent is the nickname the user enters.

> But I'd say that anyone that has an operation so big that it dynamically creates and destroys servers to balance load should probably already be paying for their own wildcard cert anyhow.

The game is free and ad-supported. Dynamically creating and destroying servers is a basic requirement.

comment 6y ago · link · parent

Not every web service is easy to set up with HTTPS as a simple Let's Encrypt service. Take a game. It dynamically balances between servers rented and destroyed on the fly. It needs a wildcard DNS certificate. Then all the sub-servers need to have that wildcard certificate.

In conclusion, deprecating HTTP makes it harder for people to get started on the web. How are you going to get certificates for IP address' control dashboard, after all?

952.

LibrePlanet 2021: Empowering Users will be held on March 20 and 21, 2021(fsf.org ↗)

2 points · by crazypython · 6y ago · discuss

953.

Committee begins review of High Priority Projects free software list(fsf.org ↗)

10 points · by crazypython · 6y ago · discuss

954.

Getting friends: Your friend, by default(defaultfriend.substack.com ↗)

1 points · by crazypython · 6y ago · discuss

955.

Face-to-face communication is superior to written communication(jameslu.substack.com ↗)

4 points · by crazypython · 6y ago · 1 comment

comment 6y ago · link · parent

It's called PEP-484, and it's part of the language https://www.python.org/dev/peps/pep-0484/

Pyre and PyCharm are third-party implementations of PEP-484.

comment 6y ago · link · parent

> Everything is a spelunking expedition, and there's no type safety or anything to help you figure it out.

For any significant Python codebase, I make sure to put extra effort into precise and strict type annotations so I can rely on type safety. Sometimes after fixing all the statically detected type problems, my program works on the first try.

Python was strongly typed from the beginning, before it was statically typed. When you add a string to a number in Python, you get a type error. Python's static type system– which is formally part of the language and has multiple implementations– is an elegant and natural fit to the language. Unlike TypeScript, where the type system is artificial, and restricts what you can do with JavaScript.

Language features that made it into ruby– like blocks and unless– were rejected from Python because they would have made it possible to create advanced DSLs, which is something the language maintainers aim to avoid– enabling the creation of arcane application-specific special languages.

PEP-484 is the static type system's name: https://www.python.org/dev/peps/pep-0484/ (implementations include mypy and Pyre)

comment 6y ago · link · parent

No, (optional) static typing is the best recent addition to Python. It allows IDEs to catch a large variety of errors. The static type system is part of the language and has multiple implementations. It's Hindley-Milner, making it two-way, like Haskell's type system.

comment 6y ago · link · parent

How is this a JIT? Everything is compiled to machine code. There's no advanced type specialization or lazy deoptimization. It might as well be an in-memory, lazy, AOT compiler.

960.

Never start a project by making a logo(jameslu.substack.com ↗)

2 points · by crazypython · 6y ago · discuss

1
313233
41