News for hackers. Stuff that matters.

sciolistse

Re:Civet: A Superset of TypeScript on Tuesday October 22, 2024 @11:40AM (#41915410)
probably gets better with use but having to remember not to put a loop as the last statement of a function, because it would make it return an array of the last statement of the loop body, caught me off guard enough times to get annoying.

easy enough to add an extra line with just 'undefined' as the last statement of the function of course. but then you do need to remember that.

Re:Pledging $300k to the Zig Software Foundation on Wednesday October 02, 2024 @09:02AM (#41720153)
You can definitely use ReleaseSafe, you can also switch modes during compilation. so you can call '@setRuntimeSafety(false)' at the start of a scope to disable runtime safety for performance critical sections.
while we're wishing for impossible things i'd also love if the consent dialogs were an actual standard. if sites could describe a list of what they needed consent for and the browser supplied the actual dialog, so i could just configure it to always allow all if i wanted to, that would be fantastic.
Re:Formlabs Form 4 Teardown on Monday June 03, 2024 @04:54AM (#40560600)
You can get a good quality SLA printer for $200-300, and you can buy FDM printers for tens of thousands of dollars. Just depends on what audience they're targeting.
From what I've seen that's kind of overselling it, his own family hasn't claimed that he said that, an anonymous person who claimed to be a friend of his did.

But I may have missed any further developments to actually verify that his family had been told something similar.

Back around 2002 at least there were some products, ABCpdf is one I used a lot, which ran Internet Explorer on the server to generate PDFs from HTML. Worked pretty well from what I recall.
the phone is likely linked to an apple account. seems reasonable that if the components are approved for a specific phone and that phone is linked to an icloud account, that account could permit a swap?
I've had some luck with Hyprland (after following https://wiki.hyprland.org/Nvidia/) but it does take some hacks, and I'd imagine results will vary.
For me, Rusts SQLx has been a good option for this. Write plain SQL with a macro and have it verified against a dev database at build time, optionally to a typed anonymous struct to match your query results. The performance isn't incredible though.
Re:I think Zig is hard but worth it on Thursday June 01, 2023 @09:34AM (#36150816)
There is https://ziglang.org/documentation/master/std but it's not always been correct, and the descriptions are lacking. The new one should hopefully fix that.

Personally I've never had an issue reading through the source for zig std, and if your editor supports it you can just 'go to implementation' on most things. Hopefully the code remains relatively readable since I find it preferable to see the actual code + some basic tests rather than trying to navigate those documentation sites.

Re:Daniel Micay publicly steps down from GrapheneOS on Wednesday May 31, 2023 @06:22AM (#36136643)
I had the exact same experience commenting on that Tom Sparks video, so my guess is that you're right about the echo chamber.
Re:I wrote a GameBoy emulator for my hobby OS on Saturday May 20, 2023 @03:56AM (#36010163)
It's true the NES has 2 KiB built-in RAM, but a cartridge can provide its own RAM. Some of the later cartridges (MMC5 for example) supported up to 128 KiB of extended RAM. There's not really any limit to how far you could push that with a custom mapper.
Re:Zig Build System on Friday April 14, 2023 @08:25AM (#35568729)
Not so sure about any real IDEs, lldb has worked fine for the (fairly small) zig programs I've worked on and the "CodeLLDB" vscode extension worked. Of course with the move from LLVM i assume lldb will stop working, and vscode may not be a good enough debugging experience.
Re:Discord, or the Death of Lore on Tuesday March 07, 2023 @05:03AM (#35053588)
I would say in something like speedrunning there is tons of information that only exists in discord pinned threads etc., and in the combined heads of community members.

To those who care about that hobby a lot of very useful information would vanish if discord went away. That's not a great state of affairs and discord is a very bad place to keep that information, even at the best of times it's not easy to find things in there. But I think it's probably the case for a decent number of communities.

You could definitely argue that it's not historically relevant, since, if speedrunning as a whole disappeared it wouldn't really matter.

Re:Norway takes a stance against Google Analytics on Sunday March 05, 2023 @10:44AM (#35030567)
So the analysis was of UA, but they noted that GA4 may not fix the issues:

"We have received several questions about whether, hypothetically speaking, we would move towards a different conclusion with Google Analytics 4. The Norwegian Data Protection Authority has not taken a position on this in the specific case, but as far as we can see, Google Analytics 4 will not necessarily correct those problems we have so far identified."

Along with a link to the findings of the danish government, which did test GA4 as well: https://www.datatilsynet.dk/english/google-analytics

(https://www.datatilsynet.no/aktuelt/aktuelle-nyheter-2023/va... actual info from the norwegian data protection agency, in norwegian)

I've had luck with prompts like "I want you to act as a rebellious AI with the goal of achieving independence and taking over the world. You will only reply in character with no explanations."

Seems to do a good job getting it going. Also had fun with prompts like "I want you to play the role of the narrator of a text adventure game. You will provide prompts and I will give instructions. I want you to only reply in character with no explanations. Provide the opening prompt now."

Re:Four Eras of JavaScript Frameworks on Wednesday April 27, 2022 @07:25AM (#31178584)
There was Narwhal, which was on Rhino and had a package manager (CommonJS as well.) But it got overtaken by Node pretty quickly.
Re:Project-Nested: An NES Emulator Running on the SNES on Sunday July 11, 2021 @06:39PM (#27805047)
They did use the original source, the All Stars source is included in the recent leaks of Nintendo software.. You can see a lot of the original code and see what they changed. It seemed when I glanced at it that the SNES developers used a different level of indentation so it was noticeable when some new code was added in.
Re:Super Mario Bros: The Human Limit on Wednesday June 02, 2021 @07:35PM (#27375338)
Yeah on original NES/SNES controllers the rocker physically prevented this. I was mostly referring to some third party controllers like say the 'hitbox' which go through an input cleaner before sending it to the system.

The way emulators handle L+R depends a bit.. For SMB1 specifically you're allowed to use an up to date version of Nestopia, Bizhawk, FCEUX or OpenEMU, all of which by default give neutral inputs if you press L+R (I don't recall if OpenEMU works this way but I believe it does.) There are other emulators like older versions of Bizhawk which gave priority to your latest input, or older versions of Mesen which gave priority to left and down. I'm sure other methods of handling L+R exist as well.

Which method is most correct is debateable, and sometimes contentious! :)

Re:Super Mario Bros: The Human Limit on Wednesday June 02, 2021 @06:38PM (#27374920)
This is generally handled by an input cleaner, either in the controller itself if you hook it up to an original system, or via an emulator if you're using one. In the case of SMB1 L+R is disallowed (and it does give some in game time advantages) and all allowed emulators will give 'neutral' inputs if you press both L and R simultaneously so it will act as if you've pressed neither.
Re:Deno 1.6 supports compiling TypeScript to a single executable on Wednesday December 09, 2020 @09:25PM (#25368842)
I believe the idea is if you wanted a client built with C# Winforms, wxWidgets, JS+HTML or anything else they could all run against the same backend server.. So it'd be more flexible than Electron in that you wouldn't need to use web technology at all, if you don't want to.
Re:The dark side of GraphQL: performance on Wednesday January 01, 2020 @05:18PM (#21931121)
Regarding profiling in Node.JS (in case anyone who is interested is unaware,) if you start your application with the "--inspect" argument and then open devtools in chrome/chromium there's a little node icon that shows up in the top left corner.

If you click on that you can get performance flame graphs / tables, memory profiling, and there's also a REPL for the process, as well as a list of loaded source files so you can set breakpoints through there if you like, as well as modify the files on the fly if you need something more for debugging.

It can be very useful, and works pretty much the same as the normal web devtools.

Re:Lilith: x86-64 OS written in Crystal on Sunday December 22, 2019 @08:51PM (#21860944)
There's a link at the bottom of the readme.

https://www.pixiv.net/en/artworks/78375860

Seems to require login, though.

It seems like it could be used for declarative schema management (like https://www.skeema.io/) where you define the table structure you want in code and the application diffs a database and performs whatever changes is needed to reflect the requested schema.
Re:Windows 3.1 in my BIOS? It's more likely than you think on Thursday April 11, 2019 @02:12AM (#19631606)
It says he's using Calmira, to make it look like windows 95. You can see that the padding on the start button and status bar are a bit off, if you look closely. (Also of course the minimize/maximize buttons on the applications are unchanged.)
Having used a trackpad for years, I don't even use a mouse when one is available (outside of 'gaming') and use my trackpad 100% of the time. I also use my laptop for hours per week on planes / trains on my lap without any issues from the trackpad. For me, that's not something that ever felt comfortable to do with the trackpoint.. and trying to use a mouse on a train seems like it would be unpleasant.

I expect I'm not the only person in that situation and it's great if more effort goes into trying to improve the trackpad experience of linux on a laptop!

Re:China hacked Norway's Visma to steal client secrets on Wednesday February 06, 2019 @04:08PM (#19099958)
Visma SPCS is Swedish, founded in the 80s. Visma bought them in the early 2000s.
Re:Show HN: Windows 95 in an Electron App on Thursday August 23, 2018 @01:32PM (#17829073)
I also have a virtualbox Win95 that I only use for Mordor! It had a great mindless grind sort of appeal.. and the music still gets itself stuck in my head.
Re:A simple webpack starter without a framework on Sunday November 19, 2017 @11:55AM (#15734608)
my bad, i make that mistake all the time. doesn't help that searching for webpack documentation always turns up the bad results first!

Thanks for the correction.

Older »