Better HN
topnewbestaskshowjobs
Log inSign up

deterministic

2,860 karma · joined Feb 27, 2013 (13y ago) · 3,465 submissions

Submissions

comment 4y ago · link · parent

> that complex systems implemented in low-level languages cannot avoid reinventing and/or reimplementing (poorly on both counts) the facilities built into higher-level languages. Like garbage collection in OLE or keyword arguments in X."

Nope. Not true at all. Games for example implement “garbage collection” all the time but it is not the garbage collection typically used in “higher-level” languages. It is instead carefully tailored to the task at hand to achieve the kind of performance players expect from games. This is something you can not do in most “higher-level” languages. Which is the reason why most high performance complex software is not written in “higher-level” languages.

So there is a reason why smart experienced developers start new complex high-performance projects in C/C++ every day. They simply use the best tool for the job.

comment 4y ago · link · parent

I think Ant (the Java build tool) might be a good example of what you are talking about. As I said above, I haven't experienced it in any software I have worked on myself, but Ant might actually be a good example of the "rule" in practice. Except that (AFAIK) Ant doesn't have Lisp style macros for example.

comment 4y ago · link · parent

Yep that makes sense. And personally I will never work for a company that isn’t WFH flexible. So hopefully there will be options for both of us to get what we want.

comment 4y ago · link · parent

Run don’t walk away from no-code tools. Seriously. I have never seen or heard of a case where no-code tools increased productivity long term. Instead, hire good developers who knows how to be more productive with real production languages.

comment 4y ago · link · parent

> Any sufficiently complicated C or Fortran program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp.

I call BS on that “rule”. 25+ years of experience here working on very large C/C++ code bases used by large commercial companies. And I have never ever seen this happen in practice. I know that the often cited “rule” makes some Lisp fans feel all smug and superior. But it doesn’t seem to be based on reality.

comment 4y ago · link · parent

F# is a great example of a strongly typed language where you almost never have to write type’s explicitly. The best of both worlds IMHO.

comment 4y ago · link · parent

Try F#: Strongly typed but 100% inference of types => best of both worlds.

comment 4y ago · link · parent

If you are WFH flexible and everybody prefers to be in the office that still makes more sense than forcing everybody to be in the office. Companies that are not WFH flexible will be less competitive in the jobs market. It’s that simple.

comment 4y ago · link · parent

Capitalism is a powerful tool. And like any other tool how we use the tool makes a big difference. In other words, it is our values that dictate what the outcome of Capitalism is. Not Capitalism itself. Don’t blame the tool. Blame the people using the tool.

comment 4y ago · link · parent

In other words, what works for some doesn’t work for others. So the right choice for companies, that want to be competitive in the job market, is to be WFH flexible instead of making it a one-solution-fit-all choice that will annoy 50%.

comment 4y ago · link · parent

I agree. I wish the Typescript team had simply embraced Dependent Types from the beginning instead of adding a laundry list of ad-hoc solutions with special syntax. It’s already way more complicated than it needs to be. Solving a problem you can either use a simple but powerful solution or add patch after patch forever until you kinda sorta have covered everything that the simple powerful solution would have given you. It looks as if Typescript unfortunately is going down the patches route requiring cheat sheets and memorisation to work with. Exactly what happened with C++ templates.

comment 4y ago · link · parent

What an excellent read. I wish all technical articles were written this clearly.

comment 4y ago · link · parent

This is an example of Typescript kinda sorta have some of what Dependent Types will give you. The problem is that the Typescript team hasn’t fully embraced this. So instead of implementing Dependent Types (see Agda/Idris/LEAN), the team is kinda sorta implementing parts of it piece wise, inventing different syntax for each feature as they add it. A bit like templates in C++ ended up kinda sorta implementing a Turing complete functional programming language with the worlds worst syntax. It looks as if Typescript is going down the same road. It’s a bit of a mess compared with Dependently Typed languages (Agda/Idris/…)

comment 4y ago · link · parent

Sets isn’t just “a branch of mathematics”. Sets is the foundation of traditional mathematics. However it has problems (paradoxes). Type theory was invented to solve those problem. And most modern proof assistants are based on some variation of type theory. Type theory is in many ways much simpler than Sets: The Set axioms are built on logic. While the (Martin Loff) type theory axioms aren’t. In other words, Type theory is much simpler than Set theory. The two theories look similar at the surface level. However they are fundamentally different. Values in type theory always comes with a type. That is not the case in Set theory. It makes a huge difference to how you use the two to prove things.

comment 4y ago · link · parent

I understand the thinking behind it. But I personally prefer following a strict priority list. In this case, whatever was finished at each monthly milestone would be part of that milestone release. The only choice remaining is how to prioritise features. Having a good balance of onboarding, bug fixes, cleanups, and new features seems to work well. The result is that there is something valuable for everybody in each release.

1786.

Creating a GPU With C++ and an FPGA (2021)(youtube.com ↗)

51 points · by deterministic · 4y ago · 20 comments

comment 4y ago · link · parent

A great read. I had the same experience proving (toy) software correct: the act of formally specifying what you want to prove and proving it makes you understand the problem and the solution much better. It’s like your brain gains super powers.

comment 4y ago · link · parent

I didn’t work on Mario 64 but I did work on other N64 games years ago. And yes I did have that reaction :)

comment 4y ago · link · parent

I agree. I also have spent a lot of time thinking about how to make PCG better. My conclusion is that the key is intent/design. The PCG algorithm needs to first generate the high-level gameplay design/intent and then the context. Instead of just arbitrarily placing things, it needs to place things constrained by what makes sense from a gameplay/fun point of view.

1790.

The Lean Mathematical Library(arxiv.org ↗)

4 points · by mbrodersen · 4y ago · discuss

comment 4y ago · link · parent

https://arxiv.org/pdf/1910.09336.pdf

comment 4y ago · link · parent

I understood math much better after following the Software Foundations tutorials:

https://softwarefoundations.cis.upenn.edu/

Another good starting point (for mathematicians) would be the Lean community group and the Math lib project:

https://arxiv.org/pdf/1910.09336.pdf

https://github.com/leanprover-community/mathlib

comment 4y ago · link · parent

I have managed a number of small to large software dev teams in my career. And there was always a small core of developers who outperformed the rest of the team. Not by working harder, but by working smarter: focusing on the right priorities, reducing complexity, automating things etc.

comment 4y ago · link · parent

Not at all. To be a 10x programmer you need to be lazy. Automate everything, brutally eliminate complexity, and focus 100% on what makes sense from a business point of view.

comment 4y ago · link · parent

Removing complexity and making the solution super simple can easily make you 10x or 100x more productive.

comment 4y ago · link · parent

Not my experience at all. It works really well.

comment 4y ago · link · parent

Agree. Satisfactory is one of my top 10 games.

1798.

Why it's harder to earn more than your parents (2021)(youtube.com ↗)

1 points · by mbrodersen · 4y ago · discuss

comment 4y ago · link · parent

You are fooling yourself. It is clear she doesn’t love you.

Life is sometimes unfair, cruel, and painful. Accept it. And do the best you can with the time you have left. If you don’t you will continue to suffer for no good reason.

This might help:

https://www.psychologytoday.com/au/therapy-types/acceptance-...

1
596061
116