Better HN
topnewbestaskshowjobs
Log inSign up

crazypython

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

Submissions

comment 6y ago · link · parent

I wish HTTPS origins were allowed to define a set of certificates to trust. Imagine a game architecture where each game server has its own self-signed certificate. For example, imagine you download a game client via HTTPS, and the game client downloads a list of official servers from the same origin. I want the HTTPS origin to be able to say "for this webpage load, trust these certificates, because they originated from an HTTPS origin."

Instead of making HTTPS hierarchical through a certificate chain, this let's it be dynamic (script-controlled) and sideways.

Thoughts?

comment 6y ago · link · parent

Do they offer automated certificate renewal for services with constantly changing IPs? I don't think so.

comment 6y ago · link · parent

Why can't browsers allow self-signed certificates as long as it is signed by a private key on a DNS record with DNSSEC enabled?

comment 6y ago · link · parent

I agree that Ionic's components are easier to work with and less of a hassle. However, React Native components let you talk directly to native, even using native components from the native platform's ecosystem in your code. It's a tradeoff developers have to make.

https://github.com/wix/react-native-navigation is beautiful, it uses iOS' own navigation APIs, but it's a pain.

comment 6y ago · link · parent

> - rendering to a window that isn't owned by the UI being rendered or created by the framework

I once used a native library I installed with iOS' native package manager, Cocoapods. I rendered a React Native view inside the native view, which was contained inside a react native view. The only limitation is that the two react native views used separate bundlers i.e. the two react native views can only communicate through the native platform, they couldn't communicate to each other via JavaScript.

comment 6y ago · link · parent

React Native isn't afraid to expose platform specific details when abstracting away cross platform APIs in uniform APIs. In my experience, it was fairly easy to use a native UI library inside a React Native app. (It takes more work to embed a React Native view inside a native view that's embedded in a react native view, but it's possible.)

comment 6y ago · link · parent

> I don't mean too sound harsh, but - the idea that other states should be funding another state's AG dept is frankly kind of ludicrous, it's not like it's a charity or nonprofit or something. The case volume they have is a direct result from the political forces at play in that state; that's true for any state. If they want more resources per case, they should lower the number of cases. That starts with the AG himself but includes the rest of the state-level government and the citizens making voting decisions.

States pay the Pennsylvania Dept. of Food to regulate their food, and Pennsylvania has many bread and food companies. How are AGs and regulators different?

comment 6y ago · link · parent

Then we should ask, can we fund them more? Moreover, if we don't live in California, can we lobby our states to help pay for the Cali AG?

comment 6y ago · link · parent

    a::after {
      content: url(my_external_link_symbol.gif);
    }

comment 6y ago · link · parent

Quantum Mechanics, and why we need interpretations of it.

1151.

Princeton’s Admissions Officers Talk About Asian-Americans(buzzfeednews.com ↗)

2 points · by crazypython · 6y ago · discuss

comment 6y ago · link · parent

> In particular, note the appearance of an existential quantifier in the premises of the sequential composition and Kleene star cases, and note the nondeterministic choice of a branch in the alternation case. So read as a logic program, this semantics is not well-moded.

Is this saying that you cannot mechanically convert a "declarative language" into a program? Or is it saying it may allow multiple choices? If so, how is it not included in the Curry-Howard correspondence?

comment 6y ago · link · parent

Arras uses a JavaScript file that generates JSON.

comment 6y ago · link · parent

Interesting, can you share the name a book, preferably rife with examples, where I can learn about the "In all societies in which there is a power vacuum gangs take over." thesis?

comment 6y ago · link · parent

Can you send a link to a list of the mentioned load balancing algorithms?

comment 6y ago · link · parent

Apple's Command Line Tools installer installs GNU Bash.

comment 6y ago · link · parent

Even macOS runs with GNU Bash.

comment 6y ago · link · parent

For a very very long time, Linux could only be compiled with GC, and you could only interact with it from userland with glibc. Don't forget GNOME or GNUStep. GNOME is the default GUI, window manager, solitaire player, etc. of Ubuntu.

There's also Mastodon, which is a variant of GNU Social.

comment 6y ago · link · parent

Interesting. I would love to see a version of JavaScript that has stack scoped (RAII) allocation.

comment 6y ago · link · parent

American masks are ugly. Other country's masks look stylish.

comment 6y ago · link · parent

Some C++14 code will not compile under C++17 under edge cases, such as const constexpr member functions.

comment 6y ago · link · parent

Yes.

comment 6y ago · link · parent

Dlang is a better C. DMD, the reference compiler for Dlang, can also compile and link with C programs. It can even compile and link with C++03 programs.

It has manual memory management as well as garbage collection. You could call it hybrid memory management. You can manually delete GC objects, as well as allocate GC objects into manually allocated memory.

The Zig website says "The reference implementation uses LLVM as a backend for state of the art optimizations." However, LLVM is consistently 5% worse than the GCC toolchain at performance across multiple benchmarks. In contrast, GCC 9 and 10 officially support Dlang.

Help us update the GCC D compiler frontend to the latest DMD.

Help us merge the direct-interface-to-C++ into LLVM D Compiler main. https://github.com/Syniurge/Calypso

Help us port the standard library to WASM.

comment 6y ago · link · parent

People need to learn Git. Git has a "click" moment. Git "clicked" for me a few weeks after I began using GitUp, an FOSS Mac app. It visualizes Git, and doing advanced Git is easy from within there, and only committing some lines of code is easy from within it. Visualizing Git is really helpful.

A branch is a name that points to a git commit. Every git commit has a parent, so a branch also has all its parents. You have a current commit, known as HEAD, and you have a current branch.

Merge is when you make a commit that "fuses" two commits, leaving both in the repository. It is ugly.

Rebasing is when you reapply the diverging commits of a branch onto the commits of another branch. You give it a new base."

This is important: Branches are names for commits. I have two active branches currently, "floating-plugins" and "master." "floating-plugins" is where I'm working on a plugin system and inter-plugin communication. I made the logging system log a stack trace for warnings. When I did and tested this change, I quickly select the lines of code that bring about this change through a GUI, type in a short message, and commit. Suddenly, I need to implement a feature on "master." As I'm implementing it, I realize I also need the log-stack-trace-on-warn feature in master. So I rebase with floating-plugins, and now, I have that feature on master.

In another scenario, I might have had to reorder the commits on floating-plugins so I could safely rebase to just the commits I wanted on master. In yet a different scenario, a cherry-pick might have been appropriate. The unifying theme of all this is that you need to be able to visualize Git.

Git won't fix people who do not test in a disciplined way. That's a social problem.

Git let's me do a hotfix on a beta testing server while having other code on my current laptop, and then merge the changes together with a rebase.

comment 6y ago · link · parent

It came true for thesaurus.com– onelook.com/thesaurus is much better but few people have heard of it.

comment 6y ago · link · parent

CSS is a set of concepts. CSS contains a set of layout models, such as flexbox. You need to learn a layout model. There is no other way. I like Flexbox. It's easy to center in Flexbox.

comment 6y ago · link · parent

Is Rome currently suitable for writing a transpiler?

comment 6y ago · link · parent

You can make C++ pretty: it's called D. https://dlang.org/comparison.html

Here's the D<->C++ intercompatibility project: https://wiki.dlang.org/Calypso#Current_status

1
3738394041