Better HN
topnewbestaskshowjobs
Log inSign up

hyperbrainer

805 karma · joined Jun 19, 2023 (3y ago) · 214 submissions

Submissions

comment 1y ago · link · parent

You are looking for Ada.

comment 1y ago · link · parent

Tcl is another language used in the domain; it is rarely used outside of some sectors, but lots of interfaces for embedded systems are written in Tcl, especially in the Electical/Computer/Electronics Engineering sector.

IMO, the implementation of event handling is easy and simple, while being incredibly powerful. It may not fill the same niche as C does, but as a glue/scripting language, it's really good. Furthermore, the Tk library allows easy development of GUIs without much hassle.

Outside of embedded, you can also find it used for automation and testing -- SQLite famously has many millions lines of Tcl code for testing. [0]

[0] https://sqlite.org/testing.html

comment 1y ago · link · parent

SDL does have a platform-agnostic render library for basic stuff, and you can integrate Metal into it pretty easily.

comment 1y ago · link · parent

Needs (2018)

comment 1y ago · link · parent

If only there was an editor which could act as an interpreter for Lisp directly ...

comment 1y ago · link · parent

Any sufficiently complicated piece of code contains an ad-hoc implementation of Lisp.

67.

JSON Hijacking (2009)(haacked.com ↗)

2 points · by hyperbrainer · 1y ago · discuss

comment 1y ago · link · parent

Oh, I didn't see the typo. Thanks!

69.

My Book's Pre-Sale Just Barely Succeeded(mtlynch.io ↗)

19 points · by hyperbrainer · 1y ago · 7 comments

comment 1y ago · link · parent

For some reason the silverbullet link in the website is broken if I copy it or just click it. But typing the exact same thing works.

comment 1y ago · link · parent

I know of these. Almost added a disclaimer too -- that was not my point, as I am sure, you understand. Also Ocaml has a GC, unsuitable for many applications common to systems programming.

comment 1y ago · link · parent

> Both have the big restriction that the two functions involved are required to have the same signature.

I did not know that! But I am a bit confused, since I don't really program in either language. Where exactly in the documentation could I read more about this? Or see more examples?

The language reference for @call[0] was quite unhelpful for my untrained eye.

[0] https://ziglang.org/documentation/master/#call

comment 1y ago · link · parent

I couldn't actually figure out whether this TCO being done "fairly well" was a guarantee or simply like Rust (I am referring to the native support of the language, not what crates allow)

comment 1y ago · link · parent

It's interesting especially because it seems like companies today pour tens of millions into "accessibility", but I never see a thing's usability in terms of simple and easy-to-do-what-I-want UX fall in to the same category.

comment 1y ago · link · parent

AFAIK Zig is the only somewhat-big and known low-level language with TCO. Obviously, Haskell/Ocaml and the like support and it are decently fast too, but system programming languages they are not.

76.

Tail Call Recursion in Java with ASM (2023)(unlinkedlist.org ↗)

96 points · by hyperbrainer · 1y ago · 48 comments

comment 1y ago · link · parent

Actually, you are right.

comment 1y ago · link · parent

Any language with decent TCO won't do that. Python is the only big language that I can think of that doesn't do it.

comment 1y ago · link · parent

> > A recursive algorithm is a depth first search. Any loop that explores candidates/neighbors without sorting the candidates is a BFS.

BFS is also a recursive search. Even in the case of non-recursive search, the only difference is whether you use a queue or stack.

Apart from that, great article.

comment 1y ago · link · parent

This is great!

comment 1y ago · link · parent

I think there is a difference between comparing strings and so on, versus actually semantically processing the text. Spam/Phishing detection already feels invasive to me (although there is no way I would leave that to most users), and this is just one step further.

comment 1y ago · link · parent

> Gmail is rolling out a smarter search feature powered by AI to show you the most relevant results, faster.

Meaning they will actively be parsing emails and indexing them.

83.

Gmail's upgraded search results help you find the emails you want, faster(blog.google ↗)

10 points · by hyperbrainer · 1y ago · 6 comments

comment 1y ago · link · parent

Perhaps not. On closer inspection, the inverted pyramid reference does seem to support the claim anyways. Sorry! I really need to read better.

comment 1y ago · link · parent

I still think that your argument of "conveying most important information first" is really something that should be tackled through the title, but I agree with the rest.

comment 1y ago · link · parent

> communicate the effect of the change as quickly as possible

This should happen in the title of the PR overall. In larger projects, a single commit is rarely pushed alone. Personally, I use it as a checkpoint to save progress rather than really it being a meaningful piece of work. But then again, I rarely work on projects with lots of people, so this may not be wholly perfect for that use case.

comment 1y ago · link · parent

What really should happen is use of a simple structure with bullet points.

===== Error: Result of Investigation/Actual Problem: Solution:

comment 1y ago · link · parent

What I don't understand is how you get to a valuation of $32B. My quick googling showed me that the revenue for Wiz is about $700M. Even if I assume the existing customers + name + platform/assets is worth several billion, where is this number coming from?

To be clear: I am young and ignorant. I am trying to learn, not criticise

comment 1y ago · link · parent

I definitely did not consider this earlier. Do you know of some other big examples where monetary loss was actually a win when considered in an overall context?
12345
8