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

I've used mg and find it generally useful. It's my default editor pretty much everywhere.

However, the code is a mess, with deliberately cryptic identifiers (e.g., `w_doto` for `cursorOffset`), redundant functions (e.g., `vtputc()` is a strict subset of the behavior of `vtpute()`) and a bunch of other weird choices (e.g., deeply-baked assumptions that one byte == one char == one column, even thought Big5 and ShiftJIS were already a thing when it was written).

I tried adding UTF-8 support to mg a couple years ago and basically gave up.

I'll probably be an atto convert.


> `w_doto` for `cursorOffset`

Well, sometimes we call the cursor "the dot."


Literally never heard that prior to hacking on the mg codebase.

In GNU Emacs, try running M-: (dot) RET.

I think this alias was an aid to porting Lisp from some other Emacs variant in the 80s that used "dot" instead of "point". Never figured out which. It isn't mg because mg doesn't run Lisp.


Emacs called it “point” which is not as far. The cursor is just the visible widget.

also in sam and acme editors in plan9 os

> it would be better if programmers read deliberate instances of UB as if they literally said "std::unreachable()"

Except that isn't true.

There are basically two kinds of undefined behavior.

The first is undefinable behavior, the kind that easily goes disastrously wrong, like writing to random memory locations.

The second is incidentally undefined behavior, something where there just isn't enough implementation consensus for the standard to settle on it, like realloc(p, 0).

There's no standard terminology I'm aware of to distinguish the two. But the distinction exists.

And where programmers read deliberate instances of UB, it's usually the latter, e.g., writing directly to an address memory mapped to device I/O in that particular environment.


> There's no standard terminology I'm aware of to distinguish the two.

There is: implementation-defined behavior. Your example of writing to an MMIO address is such an example, as the standard says casting an int to a pointer is implementation-defined. (However, the C standard has plenty of cases of undefined behavior that probably should have been implementation-defined.)


You seem to be conflating the act of writing to an arbitrary address with the act of assigning that arbitrary address to a pointer to begin with. They are distinct actions.

> There's no standard terminology I'm aware of to distinguish the two. But the distinction exists.

This distinction exists, but not to the compiler. And the compiler is the thing building your binary. You can complain if you like about how UB that could potentially instead have been implementation-defined is UB instead.

But until then, the compiler will mangle your code either way, whether you feel it is fair or not.


Again, that is inarguably and obviously wrong. I cannot understand why you would say things you know to be false.

That's the point.


In Coders at Work, Peter Seibel quotes Jamie Zawinski as saying that certain Netscape acquirees were people for whom "cross-platform means both Windows 3.1 and Windows 95."


I find that there are domains where LLMs are much faster and more skilled than I am, particularly in extremely well-documented but technical and complicated, but a lot of domains where they cannot do anything at all (mostly novel issues, weird architecture issue resolution, etc.).

Building a basic X11 window manager is almost a one shot prompt.

Modifying a UI toolkit to make it work with MSAA/IA2 is simply not possible.

There's a lot of room for deep work left... for now.


When you say this is simply not possible you sparked my interest. I would be curious to chat about your approach?

If I were trying to accomplish this particular goal I would first consider what the agent could see. In particular does it have an accessibility inspector of some kind? or even NVDA hooked up with NVDA Remote so that it can actually see the implicit a11y tree for the toolkit it is working on? My email is in my profile and I would love to chat about this.


All of the science supports permanent daylight time.

Even this article, while stating the opposite conclusion, directly scientifically supports permanent daylight time as beneficial for most people.

It points out sunrise being at 0751 versus 0851 for Toronto. That's the anticipated sunrise time on 1 January 2027. The anticipated sunset time is 1651.

That means that someone working in a cubicle for a standard 0800-1700 schedule will get 9 minutes of possible daylight under winter time, versus 51 minutes under daylight time (sunrise 0851, sunset 1751).

Lack of sunlight leads to terrible circadian rhythms. There is absolutely zero scientific support for the proposition that nine minutes of daylight is healthier for our circadian rhythms than fifty-one minutes of daylight. No person could possibly argue such a thing in good faith.

(Also, I have a terminology quibble with "Standard Time," since Daylight Time is the actual standard, and we observe it eight months of the year.)


> Even this article, while stating the opposite conclusion, directly scientifically supports permanent daylight time as beneficial for most people.

From the published paper:

> Findings suggested that pDST and pST offered health advantages compared with the current twice-yearly clock changes, but the health benefits of pDST were lower than those of pST by a third. Notably, the comparative benefits of pST were greatest in northern regions of the continental US, which are similar to the latitudes in which most people in Canada reside.

* https://www.cmaj.ca/content/cmaj/198/34/E1335.full.pdf

Yes, there are benefits to pDST. There are more benefits to pST.


The data in that article support the opposite conclusion.

The reasoning the article takes to reach its incorrect conclusion is plainly erroneous. For example, it reasons that "Northern latitudes have later onset of winter sunrise and higher prevalence of SAD, with the latter increasing by 0.2% per 1° increase in latitude," ignoring that northern latitudes also have less sunlight overall.


> […] ignoring that northern latitudes also have less sunlight overall.

It does not ignore the fewer hours: it prioritizes them towards the morning, where it is more important for circadian rhythm reasons.

It even mentions public dislike of the lack of morning light in the most recent large-scale pDST experiment in a northern-latitude country

> Russia moved to pDST in 2011. Public dissatisfaction grew rapidly, particularly in northern regions, where winter morning darkness was even more prolonged, with critics citing disrupted biological rhythms, morning travel risks, and effects on daily functioning. The policy was reversed in 2014.[15]

See also comments with link dumps of position statements of various chronobiologist and sleep research societies:

* https://news.ycombinator.com/item?id=30691158

* https://news.ycombinator.com/item?id=30691237

The analysis itself has an Appendix which links to position papers:

* PDF: https://www.cmaj.ca/content/cmaj/suppl/2026/10/01/198.34.E13...

* https://www.cmaj.ca/content/198/34/E1335 / https://doi.org/10.1503/cmaj.261089


Why is that the “standard” work schedule? Isn’t that the problem, not the fact that noon happens at noon?


If the work schedule should change, that can be done in either case of the time adopted and the debate would not matter. But with the current schedule, daylight time savings makes much more sense. Where I live in deep winter you just don't see any light at all if you work a normal schedule. If there was daylight savings in the winter instead, you could at least get some light after work.


The studies are saying it is more important for you to get that limited daylight before work rather than after. It's much better for kids sleep and school for them to walk to school in the daylight.


Right, so let’s change expectations for what a “normal” schedule should be. Perhaps stock market, banking, school, and government hours could change and this would be enough to move everyone else.


Noon doesn't actually happen at noon


> Noon doesn't actually happen at noon

It used to, until people compromised on that for the sake of better societal coördination:

* https://en.wikipedia.org/wiki/Standard_time


It’s close enough to solar noon in most places under standard time.


I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.

What possible meaning could the phrase "noon happens at noon" have? That's tautological and meaningless.

And if your solution requires a wholly independent, newly built mass coordination mechanism rather than just a minor tweak to the existing one, then I think the burden you bear for arguing your position is extremely high.


What do you think it means? I think you’re feigning ignorance.

If we’re going to ignore the position of the sun, let’s just set a single “American time” to follow DC like China does and be done with it.


My post did not ignore the position of the sun. Indeed, it's governed by it.

I am not interested in whatever you've got going on right now. Being dishonest about others' positions is bizarre. Refusing to clarify your own is bizarre. Let me know when you're willing to engage in good faith.


Funny since you’re the one who isn’t engaging in good faith. Judging by votes I received, I think others understand what I mean.


> There is absolutely zero scientific support for the proposition that nine minutes of daylight is healthier for our circadian rhythms than fifty-one minutes of daylight. No person could possibly argue such a thing in good faith.

There are noticeable health effects on people even with-in a timezone depending on whether they live in the eastern or western part of it. For every 5˚ westward (~20 min later sunrise) you are, you have an increased chance of all types of cancer (n=4,000,000):

* https://aacrjournals.org/cebp/article/26/8/1306/283057/Longi...

51-9=42 minutes difference, which is the equivalent to ~10˚ of longitude.

> (Also, I have a terminology quibble with "Standard Time," since Daylight Time is the actual standard, and we observe it eight months of the year.)

Standard Time dates back to the 1800s:

* https://en.wikipedia.org/wiki/Standard_time

The fact that it is eight months of the year has been true since 'only' the 2000s under Bush43 (I remember it not-fondly, given all the tzdata updates that had to be done at the time). DST was in the minority of the time the year previously.


It is completely ridiculous to say that someone working 9-5 doesn't see any daylight during that period. Go for a walk at lunch time.

Conversely, getting up in the pitch dark and leaving the house in the pitch dark when the sun isn't going to rise for another hour is a horrible prospect and I hope I never have that inflicted on me. The evidence in the article is clear: our bodies need light in the morning more than we need it in the evening. Yes, winter sucks in northern latitudes, but we've just got to make use of the little daylight as best as we can. The flip side is by using DST we get these lovely long evenings in the summer.


> Go for a walk at lunch time.

Quite the entitled, unreflected comment. Not everyone works in an office or somewhere where this is a possibility!


Yeah, ok. If you are working on an airplane, or a submarine this doesn't apply.


Or a hospital, if you allow for praxis.


Daylight in the evening is not equivalent to daylight in the morning if a healthy circadian rhythm is the goal


You can have (almost) permanent daylight time - you just have to relocate regularly between (let's say) Iceland and the southern tip of South America. Or even further north/south for even more daylight (albeit even lower temperatures).


MetaFilter is by far the most anti-social group of moderators on any site in history.


now what did you do

be honest


> To an individual, the greatest risks are instead permanent account lockout, automated account bans, and device loss. By using passkeys, you gain better security against man-in-the-middle attacks but face the higher probability scenario of losing access to your accounts.

I'm glad to see this view becoming more mainstream. Passkeys are grotesquely insecure.

The only possible way to consider them more secure is if phishing attacks were more common and more damaging than lockout, which is so implausible that I reject the idea that someone could take that position in good faith.


> Passkeys are grotesquely insecure.

Lockout is a real risk, but there is nothing insecure about passkeys. Private keys stored on the secure enclave + biometrics or passcode before any signature is produced + origin binding mogs a static string and a 6-digit TOTP (often generated with a secret key outside the secure enclave) that can be phished and entered from anywhere. Also, in many (possibly the majority) of scenarios where someone is locked out of their passkeys, they’d also be locked out of TOTPs and passwords.

> The only possible way to consider them more secure is if phishing attacks were more common and more damaging than lockout

You’d be surprised.


Security as a field would be a lot less obnoxious if it did not neglect availability as an important facet of security. A 'security' system that obstructs legitimate access is also failing at its job.


> Lockout is a real risk, but there is nothing insecure about passkeys.

secure - adjective

se· cure si-ˈkyu̇r -ˈkyər

securer; securest

1

a: free from danger

b: affording safety (a secure hideaway)

c: TRUSTWORTHY, DEPENDABLE (a secure foundation)

d: free from risk of loss

Passkeys as a sole/required method of authentication increase the risk of permanent loss. In any other configuration they do not mitigate phishing risk.

It is not possible to say there is nothing insecure about them.


Reliability != security

If a car breaks down every 50 miles we would call it unreliable. If a car’s doors don’t lock we would call it insecure.


Information security has the concept of the CIA triad: Confidentially, Integrity, and Availability.

Being able to access the secured data is an essential element of security, otherwise a safe encased in concrete dropped to the bottom of the ocean would be the most secure storage available.


Pro tip: if your substantive argument requires gaslighting people about the literal definitions of words, maybe you should take a step back.


> gaslighting

That is some serious semantic bleaching!

I’m not disputing the fact that “secure” has different meanings in different contexts. My point is that when we talk about the “security” of authentication methods, we almost always are referring to its resistance to attacks, exploits, social engineering, etc.

If you tell the average non-technical person that “passkeys are insecure,” they’ll think that it’s easier for (WLOG) Russian hackers to phish or bypass their way through some website’s passkey requirement.

And to be clear, I don’t think it’s ridiculous to say that right now, the risk of lockouts outweighs the security benefits of passkeys. But this is a fixable problem. If it gets easier to securely recover or back up passkeys, I think we can reach what is more clearly a “best of both worlds” of security and reliability.


The context is literally the line quoted from the article, which made it reasonably clear what the word was supposed to mean, and you decided that (1) you understood what they meant, and (2) deliberately tried to bring up an alternative meaning and object to it, and (3) continue arguing why (2) was justified by taking the sentence out of its context (and into your hypothetical context).


This line from quoted from the article?

> security against man-in-the-middle attacks but face the higher probability scenario of losing access to your accounts

The author says "security" against man-in-the-middle attacks. Are they not using the typical cybersecurity-context meaning of "secure" that I just mentioned? (Resistance against exploits, attacks, social engineering, etc.) And note that they say "higher probability scenario of losing access to your accounts" rather than something like "lower security against account loss" which would have been admittedly understandable, but a bit less clear since the more common cybersecurity meaning of "security" was just used.

> deliberately tried to bring up an alternative meaning

I am using the typical understanding of what "secure" means both 1) in the context of the quote from the article you used and 2) generally in the context of authentication methods. Let's not act like I dug up some obscure and irrelevant alternative definition.

> and into your hypothetical context

Is it really so unrealistic and hypothetical to think about how non-technical people (i.e., the vast majority of people) will interpret the at best questionable statement that "passkeys are insecure"? I stand by my claim that most people will get the wrong idea when they hear that.


> if phishing attacks were more common and more damaging than lockout

The calculus changes if the service is a bank or your stock broker, which, if you are in any reasonable jurisdiction, if you can prove your identity (in court) they are legally obliged to ensure they give you back your money.

But, for the vast majority of other internet services... I honestly don't think anyone would want to MITM my instagram account for example.


Lockout sucks, but it’s not an indicator of insecurity. If anything it’s the opposite.

I don’t use passkeys because I like BitWarden and two factor

Just sayibg


Can you explain what you mean by this? They haven't had a first release yet. They're still in beta.


That's being pedantic. The first public announcement was many years ago.


It appears you're calling something a scam because an early alpha version was early alpha quality. If so, that would be unprofessional and inflammatory.

I'm open to being wrong. So again, can you explain what you mean?


If I go to the vlang releases page, I see literally hundreds of releases https://github.com/vlang/v/releases

They haven't had a stable 1.0 release yet, but they've had many pre-1.0 releases. It's not some personal experiment that's been sitting in the dev's Github that people are piling onto; the author has gone out of their way to promote it, beg for donations, and lash out at any criticisms.

The issue has never been the quality of the language per se, the issue has been 1) wildly misrepresenting the quality of the language in the present tense; 2) not even having any kind of a realistic roadmap towards achieving the kind of outsized and implausible claims about the quality of the language; and 3) using these outsized, implausible misrepresentations as a way of soliciting hype and funding for the author.


For a long time they did weekly releases, which explains the “hundreds” of releases. It looks like they have made enough progress to move to periodic point releases. (I should probably take another look at it.)

I’m not qualified to judge the language as a whole, at least until I use it for something, but it does have some interesting features. I used to follow their progress, but it’s clear that the pace of development is very slow, like many other niche langs.


Those comments may be fair. Defamation is not.


Defamation? The author's responses and complete lack of honesty certainly made it look like a scam.

The author listed feature after feature that were unfulfilled. Scam is being fairly kind to the project, I thought the guy was the worst kind of liar. You can check out any of the earlier threads on HN to find out for yourself.

It isn't that it was early, it's that it advertised itself to be what it was not. You defending it isn't doing anybody any favors as this is all public record and you're just standing up for a dev that doesn't deserve it


All listed features are real. Which ones are unfullfilled?


The scammy part was definitely making all of the claims as if they were already true. A lot of people sincerely believed it. My recollection was that it took months before some of this was fixed to explain that it wasn't available yet, and then more to explain that it hadn't actually been done yet.

There were some really crazy ones, like that it could convert entire codebases from C++ to V and then compile them some multiple of times faster and make them memory safe. How? I'd love to know.

The author to me seems like they are not attempting to scam people, but it's hard to ignore that they were collecting money, from people who thought they had already accomplished these things, because the person collecting it absolutely appeared to be claiming it.

Now doing that once and going "oops, my bad" would be one thing. There would be no controversy. However, over time it has proven to be a bit of a behavior pattern, which is confusing because the author does appear to be producing things that I think are interesting. Just... often buried under some hyperbole.



Yes. Agreed. Did you intend to respond to someone else?


I have this amazing new thing I'm making, nothing like it, better than everything else. Here's a prototype that does none of that and is _barely_ functional. Care to invest $2000? If so, do I have a bridge to show you...


It was never true.


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

Search: