HNHacker News
TopNewBestAskShowJobs

signaru

471 karma · joined March 3, 2020

submissionscomments
signaru··on Ask HN: What software sparks joy when using?
While Python may be an easy language, Javascript may be the easiest to get things running. It's just there before you even start downloading what other languages need. Just press F12 and REPL away. I use the JS console as a calculator on steroids among other things. It's nice that it has the C family syntax, which lets me interactively test expressions before using them on non-browser code, without the prerequisite of projects, files or other boilerplate.
signaru··on Tell HN: We should snapshot a mostly AI output free version of the web
Alternatively, searching has to be changed. The non AI content doesn't necessarily disappear, but are gradually becoming "hidden gems". Something like Marginalia which does this for SEO noise would be nice.
signaru··on Kate editor on all platforms
KHTML also led to WebKit then Blink.
signaru··on Yes, social media is a cause of the epidemic of teenage mental illness
And then there are also those companies/institutions/orgs/news/shops that make you left behind from otherwise useful information or services by not being on social media platforms.
signaru··on How might software development have unfolded if CPU speeds were 20x slower?
I'm curious if you've used Lazarus and what you think about it. I have not used enough similar IDEs to compare it (or maybe just forgotten how it was) and didn't have access to Borland tools back in the day. One crazy thing I remember about Lazarus is how it can compile the IDE quite fast (given its codebase size) when installing plug-ins.
signaru··on Playboy image from 1972 gets ban from IEEE computer journals
Unlike in its time, almost everyone now has access to a good camera. Most of the effort would go to good lighting and finding objects that satisfy these criteria. A contrived CGI render could also serve the purpose.
signaru··on Why is the LinkedIn app almost half a gig?
It's like Parkinson's law, but extended to other resources besides time, like capital.
signaru··on Why is the LinkedIn app almost half a gig?
Some of my friends who work in similar situations call this "job security".
signaru··on Vast Archive of Rare Japanese Textbooks Now Online to Explore Free
It's fully Japanese though (and Kanji heavy), so the linked article is still helpful as an English overview for those not (yet) proficient in Japanese.
signaru··on Bython: Python with braces. Because Python is awesome, but whitespace is awful
It need not be braces. Maybe the 'end' in Ruby, Pascal, Matlab or partially in Basic would look more natural.
signaru··on Bookish Diversions: Do Audiobooks Count?
The important part is that you're actually "listening". I used to listen to audiobooks when I commute to work and I do learn from them. Stuck at home, I play audiobooks as part of multi-tasking, and there are many times that I'm just "hearing" so it's not as effective. Still good enough to familiarize with the book and be more prepared the next time around.
signaru··on Netlify just sent me a $104k bill for a simple static site
Any suggestions for hosts that will just make your site offline once it reaches its tier limit? Cloudflare and Netlify get suggested a lot and I was considering one of them before this.
signaru··on Netlify just sent me a $104k bill for a simple static site
Can't hosts just make a site unavailable once it reaches its plan's bandwidth limit, DDoS or not?

I think being offline is a lesser headache than a large bill, especially for those who are inclined to a free tier to begin with.

signaru··on Show HN: Nekoweb – a retro static web hosting
It also reminded me of neocities which has a cat (neko) mascot.
signaru··on Winteracter – The Fortran GUI Toolset
python numeric libs, matlab, octave
signaru··on Winteracter – The Fortran GUI Toolset
meanwhile, fortran is also underneath modern numerical programming in other languages
signaru··on Why is Common Lisp not the most popular programming language?
I tried before because I read a lot of praise about it. But it seemed to me that there's not much of a standard library or included batteries (at the time, I was looking for something that can open image files or compute FFTs). Perhaps the problems I wanted to solve just weren't a good fit.
signaru··on Tesla Cybertruck may have a rust problem
I just want a truck that can deliver cargo and packages in crates.
signaru··on Should toggle button show its current state or the state to which it'll change? (2010)
It is forgivable if the wrong choice is not so harmful (e.g. play/pause a video) and the effect is reversible. There's an e-commerce website I use that has an option to post product reviews as anonymous with a "slide toggle" typical of mobile devices. The only feedback is after the review gets posted which cannot be undone. I just learned by experience, but it is always confusing to interpret.
signaru··on Why Zig When There Is Already C++, D, and Rust?
C++ Builder also has them in their extensions to C++. My guess is that it looks convenient for languages that have a de facto GUI framework/library. In Delphi/Object Pascal, C#, C++ Builder, it becomes convenient to, for example, change a button's text as if assigning to its text value. And it is often taken for granted how the form's UI just "magically" updates. I'm pretty sure classic VB's control "properties" work that way as well.

When I was new to their corresponding GUI frameworks, the dot + property notation was appealing because it looked clean. However, as I got more experienced I'm no longer seeing the advantage of saving two parentheses characters at the expense of potentially hiding function calls where anything can happen.

I'm not sure why D joined the club given it doesn't have a corresponding de facto GUI framework, and its users even discourage it.

signaru··on Why did words that end in "tron" once sound so futuristic? (2017)
Then electronics... Electronic or "e-" also made things sound futuristic, especially when the non-electronic counterparts were still common.
signaru··on Ask HN: 9-yo son wants to build a game, I'm lost. What can I do?
Back when I had zero experience coding games, I strongly considered Construct2 (https://www.construct.net/en , now Construct3) since it seemed particularly aimed at beginners, requiring no coding experience and using visual scripting.

Haven't used it though, since I already had programming experience and just ended up using SFML in C++ or Monogame in C#.

signaru··on Long exposure images from videos
This somehow reminds me of Marc Levoy's HDR+ [0] that uses the same exposure time for each shot instead of the conventional bracketing. The technique can take many same short exposure time shots and computationally make the photo brighter (among other HDR effects) with reduced noise, which in a way emulates some benefits of longer exposure time, although not the motion blur effect.

[0] https://blog.research.google/2014/10/hdr-low-light-and-high-...

signaru··on AI Toolkit: Give a brain to your game's NPCs, a header-only C++ library
Any book recommendations for conventional game AI? (Particularly with the "game" part, as games always have interesting constraints.) Thanks in advance.
signaru··on Writing a TrueType font renderer
Great to see more accessible references on font internals! I have dabbled on this a bit last year and managed to have a parser and render the points in a glyph's contour (I stopped before Bezier and shape filling stuff). I still have not considered hinting, so it's nice that it's covered. Besides Apple's and Microsoft's extensive documentations, what really helped me is an article from the Handmade Network [1] and the source of stb_truetype [2] (also used in Dear ImGUI).

[1] https://handmade.network/forums/articles/t/7330-implementing....

[2] https://github.com/nothings/stb/blob/master/stb_truetype.h

signaru··on Parsing an Undocumented File Format
I had reversed engineered some ASCII file formats. While probably overkill, my background parsing simple programming languages (for which there are many good educational resources) was really helpful (in the approach I use). I tokenize, and try figuring out syntax structures from the order of token types, then from there, extract the information I need into my program's data representation. I'm not sure if this is the approach used by everyone else, but it seems plausible for someone with a CS/PL implementation background.

But first, it helps to have sample files to see recurring structures. Ideally, you also have access to software that generates these files. This allows you to deal with simpler files containing less information to reason about, make small changes within the program and compare the corresponding change(s) in the file.

signaru··on Lazarus IDE 3.0
In the context here, it is about rapidly making a GUI by visually editing widgets, usually via drag and drop, pretty much like placing shapes in a power point slide. The IDE doesn't just contain a source code editor, but also that visual window/form "designer" (in Visual Studio jargon). The RAD IDE generates the GUI code from what you've drawn, instead of you having to manually type it yourself, hence the "Rapid" part. To attach code to an event (i.e. click) you often simply have to double click on the corresponding widget/control in the visual designer, or use the corresponding "Event" GUI element somewhere in the IDE. This was in contrast to how it was done with C++ options such as MFC prior to Visual Basic / Delphi.

It gets GUI layouts done fast, but I also think it has some drawbacks. Manually drawing controls, i.e. sizing & positioning, eventually becomes a tedious chore once you have a lot of them or if you anticipate frequent updates in the UI. One trick I always end up using is just using some simple math to do the layout as the form resizes. In C# + Winforms, I'd go further by bypassing the visual designer as much as I can and just manually spawn the widgets just like any other object. Other UI frameworks also assist in layouts or just don't make this a problem to begin with. For example WxWidgets, Qt and, if I'm right Ultimate++, have sizer/container controls that do the layout logic.

signaru··on How to Become a Great Software Engineer
I can speak for one where I have worked in a technical/academic capacity. Once a software is made in EU/US then shared to the world, I observe that there is no incentive for others to be good at it. Just use/download/pay/pirate. Problem solved. Just like other imported goods, software is just thought of as something someone else creates and that will always be available from outside.
signaru··on Was BASIC that horrible or better?
I also used to be a non coder until I got my hands on VB. Consequently, my first programs were GUI instead of command line, which was everyone else's "hello world". It took a while to convince myself to learn other languages that didn't have GUI out of the box, because non-GUI software didn't look like the software I knew or wanted. My more "advanced" C/C++ friends, on the other hand, thought of GUI stuff as being more difficult.
signaru··on Julia solves the 2 language problem, however it creates the 1.5 language problem
Any thoughts on Mojo?

From what I hear, it is also trying to solve the multi-language problem.

← PreviousPage 2 of 10Next →