Better HN
topnewbestaskshowjobs
Log inSign up

deterministic

2,859 karma · joined Feb 27, 2013 (13y ago) · 3,460 submissions

Submissions

comment 1y ago · link · parent

All code is data. Many languages (Haskell for example) can directly manipulate code as data (macros). The unique thing about lisp is that the code is represented as a car/cons list. Other languages could do the same when writing macros. However most have chosen not to.

comment 1y ago · link · parent

Lisp doesn’t have a monopoly on “data”. And most Lisps are not functional (setq/setf).

Closure is different of course. But not more functional than Haskell for example.

comment 1y ago · link · parent

> Everything is exposed as an API with little no insight to inner workings

This is how I build large scale biz software (30+ years of experience). And I have never seen a case where it wasn't a good idea.

For example, the largest software system in the world (the internet) operate this way.

However I am always open to learn something new?

comment 1y ago · link · parent

Maybe worth checking out if you want a formal (as in machine checkable) definition of reals:

https://leanprover-community.github.io/mathlib-overview.html

comment 1y ago · link · parent

You are missing nothing. Haskell has two different macro systems: typed and untyped.

comment 1y ago · link · parent

This nowadays sounds more like a product announcement than a joke.

Coding tests (if done correctly) is basically defining the behaviour of a black box API using running code. So it is easy to imagine an AI generating the black box from the tests/behaviour spec.

comment 1y ago · link · parent

The largest successful software system we have is the internet.

So perhaps we should ask ourselves: What can we learn from the internet architecture?

And no that does not automatically mean micro-services. The core idea of the internet is to agree on API's (protocols like HTTP) and leave the rest as implementation details. You can do the same with modules, libraries, classes, files etc.

comment 1y ago · link · parent

The key take away is to embed software developers everywhere in the development process.

Which makes perfect sense. Software is about automating things. And the more you automate, the faster you go.

A bit like how Jane Street operates I think.

comment 1y ago · link · parent

You can think of any software (or hardware) as a state that transitions to a new state when an event happens.

State0 -event0-> State1 -event1-> State2 etc.

In other words, it's all a state machine.

comment 1y ago · link · parent

Good. The "food" they were producing was anything but healthy.

comment 1y ago · link · parent

I highly recommend writing your own Lisp interpreter in any language followed by writing a Lisp compiler using your own interpreted Lisp (compiling to C for example).

It is great fun!

comment 1y ago · link · parent

Here is a good place to start:

https://adam.math.hhu.de/#/g/leanprover-community/nng4

comment 1y ago · link · parent

Customer code generators have made me 10x more productive (generating 90% of a typical client/server biz application from a declarative spec).

AI's so far haven't been able to beat that.

However I have found AI's to be great when working with unfamiliar tools. Where the effort involve in reading the docs etc. far outweigh the benefits. In my case using AI's to generate JasperReports .jrxml files made me more productive.

comment 1y ago · link · parent

In my experience PhD's are not 10x productive. Quite the opposite actually. Too much theory and not much practicality. The only two developers that my company has fired for (basically) incompetency were PhD's in Computer Science. They couldn't deliver practical real code.

comment 1y ago · link · parent

Yep agree. Good point!

comment 1y ago · link · parent

Companies that use AI interviewer are either dodgy or dysfunctional.

The smartest thing you can do is to avoid them.

comment 1y ago · link · parent

That is not my experience at all (30+ years here working in different countries).

I have only experienced this kind of environment once. And the fix was to quit and join a functional company instead.

comment 1y ago · link · parent

And only write tests against the API you are responsible for.

Never let tests depend on implementation details.

comment 1y ago · link · parent

1. Write exhaustive automatic tests against the API you are responsible for.

2. Don't write tests for anything else.

If you are responsible for implementing a server/service, the API is the protocol for the server/service. If you are responsible for implementing a module/library, the API is the public interface to your module/library.

The tests are basically a specification for how any implementation of the API needs to behave. So you can give the tests to another developer, who has never seen your implementation, and they should be able to re-implement everything based on your tests.

comment 1y ago · link · parent

Nope. Performance really matters. Even today. And even for web applications! Just remember how you feel using a slow sluggish website vs. a snappy fast one. It's night and day.

comment 1y ago · link · parent

With a powerful type system (think Coq/Lean/...) you can declare the following (for example):

forall s:Source, execute_machine_code(compile(s)) = interpret_source_code(s)

And the compiler will only accept your compiler code as being typed correctly if for all possible source code, running the compiled code gives the same result as interpreting the source code directly.

In other words, you are proving your compiler to be correct. Think about it as having an infinite number of test cases in a single line.

Now that's powerful!

comment 1y ago · link · parent

Don't use code generators to automate 90% of your code.

Hand code everything, including the protocol encoders/decoders, dialogs etc.

Use a framework that is brand new and full of shiny new bugs you can spend months of enjoyable time fixing, until the framework is dropped by the developer(s) and you can recode everything to the next new and full of shiny new bugs framework. Repeat infinitely.

Also pick a shiny new programming language FooBar, to write both the server and client, that "really soon now!" will have all the libraries and bug fixes you need to use it in production. Spend time writing all the missing libraries and contributed it to the 5 other developers using the language. Spend hours complaining on HN that other developers are too stupid to realise the obvious benefits of rewriting everything in FooBar.

comment 1y ago · link · parent

I use recursive descent parsers all the time for small DSL's and for a JIT compiled optimizing production quality compiler. It works great.

comment 1y ago · link · parent

Transactional vs. Reactive systems is not a good way to think about it IMHO.

A "Reactive system" is basically a "Transactional system" that in addition takes a system state as input and returns a (updated) system state as output:

reactive_system : (State * Input) -> (State * Output)

Which makes it identical (from a formal point of view) to a "Transactional system".

comment 1y ago · link · parent

I know quite a few programming languages well enough to write production software using them. It didn't take long to learn.

The hardest to learn for me was Haskell. Because of how different the thinking behind the language is. But it was great to learn even though I don't use it daily.

I highly recommend learning different programming languages. It's a great way to get exposed to different ways of thinking about how software should be developed.

comment 1y ago · link · parent

What a silly idea. Nobody can predict the future (as Intel has demonstrated many times saying no to iPhone for example).

So you need to experiment and try different things to not become a Dinosaur. Not just the obvious things.

comment 1y ago · link · parent

30+ years of experience here and I am definitely more productive using AI. However I don't think it is more than maybe 5% to 10%.

I think a Google study showed a 10% improvement at Google?

comment 1y ago · link · parent

Even better: Use comments to "prove" your code:

// x == 0 && (y == 0 || y == x + 1) && a[x + y] != 0

... code here ...

// x == 0 && (y == x + 1) && ...

comment 1y ago · link · parent

I write (mostly) bug free production code fast by doing the following:

1. I use a custom code generator to generate 90%+ of the code I need from a declarative spec.

2. The remaining hand written code is mostly biz logic and it is exhaustively auto tested at the server API level.

3. I maintain and "bring along" a large library of software tools "tested in combat" I can reuse on new projects.

4. I have settled on an architecture that is simple but works and scales well for the small to large biz applications I work on.

5. I constantly work on removing complexity from the code, making it as easy to understand and modify as possible.

comment 1y ago · link · parent

Your mobile phone is most likely running a CPU invented in Europe (ARM). The next time you fly you are most likely going to fly on an airplane built in Europe (Airbus). When you buy your Ozempic you are buying a product invented in Europe. When you buy your prestige car you are buying a European car (Porsche, Mercedes, Ferrari, BMW, Roles Royce etc.) When you buy toys for your kids your are typically buying a European product (LEGO). When you buy your furniture you are very likely to buy European products (IKEA). I could go on and on ...
1
141516
116