Hacker Newsnew | past | comments | ask | show | jobs | submit | nomel's commentslogin

I think this has to be seen as "over some span of time", because a drought is an "over some span of time" thing.

For the downvoters, I think giving examples of what's NOT a function would start an interesting conversation, especially if you don't know how it could possibly be interesting!

In the mathematical sense, all functions are relations, but not all relations are functions.

What are relations, if not an indicator function of a cartesian product?

I think it depends on what you mean by "is a function". You can think of a constant, `x` as `x_: () -> {x}` (i.e. everything can be indirected). It could be argued that this is "philosophically" "useful" since getting (using) the value of `x`, even as an actual constant, requires at the least loading it as an immediate into the ALU (or whatever execution unit).

Even non-functional relations can be turned into functions (domain has to change). Like a circle, which is not a function of the x-axis, can be parameterized by an angle theta (... `0 <= theta < 2pi`)


I think in this context, it is function as in a lambda in LC.

The answer is pretty much, yes, everything can be a function. e.g. A KV Map can be a function "K -> Maybe V"

P.S. If this style of thinking appeals to you, go read Algebra Driven Design! https://leanpub.com/algebra-driven-design


For me, a x86 interrupt service routine that services a hardware interrupt[1] doesn't strike me as something I'd consider a function. It shouldn't return a value, and it typically has side effects. So why is it a function?

I mean trivially you could say it's a function from (entire machine state) to (entire machine state), but typically we ignore the trivial solution because it's not interesting.

[1]: https://alex.dzyoba.com/blog/os-interrupts/


Take a parabola and rotate it 90 degrees. The forumula for that is not a function of the x axis: it has two values for all but one point on the curve.

It's still a function of many other things: y, t, angle, ...

Waiting for the m word.

not a downvoter (actually, an upvoter), so grain of salt, but in my experience people cannot stand this framing. my best guess is that they dislike how impractical it is. obviously it's too abstract to be useful for most practical application. but that doesn't make it any less true.

it's a bit like saying "everything is a process", or "everything is a part of the same singular process that has been playing out since observable history". there's some interesting uses you can get out of that framing, but it's not generally applicable in the way that something like "all programs are unable to tell when a process will halt" is.

but if you really want to harvest the downvotes, I haven't found a better lure than "everything, including the foundations of mathematics, is just a story we are telling each other/ourselves." I know it's true and I still hate it, myself. really feels like it's not true. but, obviously, that's just the english major's version of "everything is a function".


I didn't downvote but I'd be interested to know what the domain is here -- I'm not going to play dumb and be like, 'rocks are not functions', but I'm not sure exactly what class of thing you're asking for examples of.

I think it's just that you can make alternative (to set theory) formalizations of mathematics in terms of functions and in consequence anything that is thinkable of in terms of mathematics (which includes all computation).

Closures and fexprs

Well a closure is a kind of a record with a function hiding inside it and a record is a function which returns its contents.

An fexpr is a function.


If you extend the definition of functions to include state, sure, closures are functions. It would be more correct to call them procedures though, which are a superset of functions and operators with side effects.

> An fexpr is a function.

Try to implement a short circuiting logical `and` operator as a function :-)


And, you'll know why this statement

> But for several years we've been able to style radio buttons however we want using a few CSS tools

proves how good the current state is, where a dev can think things will just be ok, for everyone, if you just ripped all that complexity and ship it (which should be the attitude for a good framework).


"People" or "professionals"? Our legal department said we had to buy licenses.

Both. LGPL doesn't distinguish between commercial and non-commercial use.

Sure, but there's a clear practical difference. Most professionals don't have the agency or company backing to allow LGPL, with their companies source code. Most personal users do.

I've seen it many many times, a few from myself.

It's not so hard if you're an expert in the field or concept they're asking the solution for, especially if you've already implemented it in the past, in some way, so know all the hidden requirements that they aren't even aware of. If you're in a senior position, in a small group, it's very possible you're the only one that can even reason about the solution, beyond some high level desires. I've worked in several teams with non-technical people/managers, where a good portion of the requirements must be ignored, with the biggest soft skill requirement being pretending they're ideas are reasonable.

It's also true if it's more technical than product based. I work in manufacturing R&D where a task might be "we need this robot, with this camera, to align to align to and touch this thing with this other thing within some um of error."

Software touches every industry of man. Your results may vary.


I think this is the cause for the division in the perception of how useful AI is.

If you work in a field with mostly proprietary implementations of solutions, the top model aren't going to be all that helpful. The models won't have the domain knowledge, because open source code doesn't exist for most domains, because there's very real competitive advantage in keepings code/processes, that aren't trivially implemented, a secret!

I think proprietary data is the new moat, because that's where the vast majority of useful domain knowledge exists.


It would be interesting to see how things changed if you included extended ascii characters [1], which were widely used for ascii UI.

[1] https://www.lookuptables.com/text/extended-ascii-table


I did actually try out various alphabets e.g. Cyrillic, Greek and symbols (e.g. box drawing symbols), but ended up removing them: https://github.com/alexharri/website/commit/d969ef839

Using only ASCII felt more in the "spirit" of the post and reduced scope (which is always good)


Appears to be around 150 times slower. I suspect increasing the sample circle cell resolution would give similarly crisp edges.

When given an image of an empty wine glass, it can't fill it to the brim with wine. The pogo stick drawers and wine glass fillers can enjoy their job security for months to come!

You can still taste wine in the metaverse with the mouth adapter and can get a buzz by gently electrifying your neuralink (time travel required)

"Zero emission" has included PHEV [1] like the 20 mile electric range Jeep Wrangler, that gets 20MPG when running on fuel.

That 264,277 is not all BEV.

[1] https://tc.canada.ca/en/road-transportation/innovative-techn...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: