2,676 karma · joined Nov 28, 2019 (7y ago) · 1,131 submissions
comment 4y ago · link · parent
If (let x () (x)) is allowed to take more than a constant amount of space, then for any finite memory there is always some finite runtime after which the program will exhaust the memory.
With proper tail calls, there is always some finite memory above which the program will not consume, even given an arbitrarily long runtime.
So, while it is a problem of degrees, one degree is infinite while the other is finite.
comment 4y ago · link · parent
The carbon footprint of eating meat is a thing, but I don't know... doesn't have the ring of importance.
If you think you can treat an autoimmune disorder by eating a lot of meat, then why not try it? Just bear in mind that it is in other ways harmful to your health compared to vegetarianism [citation needed].
comment 4y ago · link · parent
Short answer: the lawyers will decide whether this is enforced.
comment 4y ago · link · parent
In tech, often most of compensation is stock, but I always like to see the salary range advertised anyway.
Here's the law, by the way: https://legistar.council.nyc.gov/LegislationDetail.aspx?ID=3...
comment 4y ago · link · parent
It's not as ideal, but you can even get away with this in Python using comprehensions and functions. Any language with nested data structure literals will do. Really, any expression language.
Here's a Python version: https://github.com/dgoffredo/dgoffredo.github.io/blob/master...
and a Javascript version: https://github.com/dgoffredo/llama/blob/master/llama/xml.js
...and as others have said, Scheme has "sxml," which I use here: https://github.com/dgoffredo/xsd-gc
comment 4y ago · link · parent
People don't read emails, so they sure as hell don't grok portfolios.
I put time into preparing an interview for a candidate, but I doubt it matters. My recommendation is always "proceed" unless they're a total wreck.
comment 4y ago · link · parent
comment 4y ago · link · parent
At my previous job, we had enforced automatic code formatting in pull requests, but most of the code was not (yet) formatted, and people were afraid to bulk format the code. I wrote a script that picked a few files periodically, formatted them, and auto-assigned a review. They hated it. Eventually I turned it off. I wasn't even pushing the style, by the way, just working with the most "legacy" code.
Before that, I worked on a team whose TL offered to hand-reformat my submissions, because clang-format didn't get his personal style right.
At my current job, we're a team of two and we know what we're doing, but there are some nits that have lead to lengthy, albeit adequately self aware, discussions (mostly C++):
- Is it ok to use assert()?
- Is it ok to use std::string literals? ("hello there"s)
- Should errors reported by an API have a corresponding error message? Should the error message be contextual?
- Should an API report fine-grained errors or just a component-wide failure value?
- Is it ok to add more logging? Is it just noise?
- Is it ok to report errors using exceptions?
- Are stringstreams too slow?
- Is it ok to write a strict parser for a specified format?
- Does a parser need a corresponding fuzzer?
- Is it ok to use macros for conditionally compiled multi-level logging?
- Should functions have contracts documented in source comments?
- Are regular expressions overkill?
- Should we use /bin/bash or /bin/sh?
- Is it ok to use exec in a shell script?
- Single quotes or double quotes?
- Should the release process be automated?
- How often should releases occur?
- Are variant types ok?
- Is RAII a useful technique or is it over-complicating code-hiding?
- Is this "simple code"?
... The list goes on and on. Can you guess, based on this list, what it is we work on? No, you cannot.
A team could vote on a Coding Style Guide to decide many of these things, but does anybody follow those? If you're going to give someone a hard time, you give them a hard time. </rant>
comment 4y ago · link · parent
comment 4y ago · link · parent
You have thought about this plenty. The only thing I'll add is that all objects live in the same spacetime. The metric of that spacetime is a mathematical object that obeys known laws under coordinate transformations, and the parameters of those transformations depends on the energy momentum tensor (likewise an object that transforms...).
Trouble with GR is that the "trivial" solutions are heavy shit. So it goes.
comment 4y ago · link · parent