HNHacker News
TopNewBestAskShowJobs

joncfoo

364 karma · joined May 3, 2011

submissionscomments
joncfoo··on Firefox 148 Launches with AI Kill Switch Feature and More Enhancements
Be nicer. You could’ve sufficed with:

> It's good that they've added an option to disable them for those who don’t want to use or see them.

joncfoo··on Show HN: unsafehttp – tiny web server from scratch in C, running on an orange pi
Doesn't seem to be up =\
joncfoo··on Meta's flirty AI chatbot invited a retiree to New York
A sick man died enroute to visit a chatbot which fed him a false address as its own. Meta needs to be held accountable.

We need better regulation around these chatbots.

joncfoo··on Using static websites for tiny archives
That is slick. Offline first in the truest sense.
joncfoo··on The "email is authentication" pattern
Unfortunately login.gov is only available for use by companies doing business with the US government.
joncfoo··on .INTERNAL is now reserved for private-use applications
[...] the Board reserves .INTERNAL from delegation in the DNS root zone permanently to provide for its use in private-use applications. The Board recommends that efforts be undertaken to raise awareness of its reservation for this purpose through the organization's technical outreach.
joncfoo··on Pulsar – A Community-Led Hyper-Hackable Text Editor
It already contains extension support (not sure why it's not prominently mentioned in in their docs though).

The built-in ones are here: https://github.com/zed-industries/zed/tree/main/extensions. There are others outside the main tree as well, all of which are accessible within the app.

joncfoo··on The Vision Pro is a flop
> The recall involves all 3,878 of the aesthetically-divisive angular trucks that have been sold so far.

https://www.npr.org/2024/04/19/1245849907/tesla-cybertruck-r...

> That means the 3,878 trucks being recalled are likely many, if not all, of the trucks now on US roads.

https://www.cnn.com/2024/04/19/business/tesla-cybertruck-rec...

----

A couple of sources.

joncfoo··on FF4J – Feature Flags for Java
Have you come across sqlc? https://docs.sqlc.dev/en/stable/

It gets rid of the crufty parts of DB interaction with Go.

joncfoo··on Building a front end framework – Reactivity, composability with no dependencies
This is really neat! I'm going to take it for a spin in a simple CRUD internal app.
joncfoo··on Ask HN: Tell me about how you bombed a technical interview
1. I froze during a whiteboard interview where I was asked to pretty print a tree in front of two people. Performance anxiety made me implode and stumble so much that I failed to implement basic recursion :')

2. I froze again during a live coding interview when I was asked to correct code under test for a coin change problem. I couldn't get over the fact that someone was judging me based on what they were seeing live and I messed it up so badly that I told them I'm not good at live coding and left it at that >_<

FFS after ~15 years in the field having worked on firmware all the way up the stack one would think I'd be great at throwing out solutions to trivial problems off the top of my head...nope not my brain :D

I've found for myself that there's a massive difference in how someone approaches live coding. If it's a colleague or even my entire team I know that we are doing this together because we have a common goal and will support each other...unlike in an interview where it's set up to be antagonistic and that throws me off completely.

joncfoo··on Announcing WCGI: WebAssembly and CGI
Next thing you know each wasm assembly will need a package format to ship assets with and have the app server provide common resources to all assemblies, e.g. db connection pools, some notion of security, etc.

Replace Wasmer with the a JVM-based app server and WASM assemblies with JVM-bytecode. The big difference is the source language doesn't matter as long as it's able to be run/replaced by WASM bytecode.

We're heading in circles in a lot of ways

joncfoo··on The simplicity of single-file Golang deployments
> Some of this is probably going to have to be done in your application...

FWICT tableflip does exactly this: https://github.com/cloudflare/tableflip

joncfoo··on The simplicity of single-file Golang deployments
Rough psuedocode to do this with the built-in http.Server where startServer(..) would use the reuseport library to create the listener so multiple servers can listen within the same process:

  func reloadConfig(config) {
    if newServer, err := startServer(config); err != nil {
      // gracefully shutdown previous server
      // no new connections will go to old server
      oldServer.Shutdown(...)
      oldServer = newServer
    }
  }
joncfoo··on The simplicity of single-file Golang deployments
Assets of any kind can be embedded in the executable and accessed via the embed.FS interface. This makes it trivial to bundle up all dependencies if desired.
joncfoo··on ARM vs. Intel on Amazon’s Cloud: A URL Parsing Benchmark
At $previous_job we shifted a large workload from Intel to Graviton which was projected to save ~$1.7m annually while keeping roughly equivalent performance (after some tuning).
joncfoo··on Mighty Retrospective
In Firefox, type % followed by a space and you can then search tab titles and jump to a tab.
joncfoo··on Show HN: Earn 9.62% on US Treasury I Bonds on Yotta
The virtual keyboard on the Treasury Direct login page is terrible, especially for those of us who use a password manager. I use the following bookmarklet that "types" each letter via the exposed JavaScript function on the page itself.

  javascript:prompt('treasurydirect.gov password please').split('').forEach(PasswordVK)
easy-peasy
joncfoo··on Dyalog APL 18.2
What does the integration ecosystem look like for array-based languages? e.g. writing and consuming network services, database interoperability, C FFI, text encodings, etc.

Given this release of APL introduces support for shebang scripts I'm thinking the ecosystem of integration isn't great but I'm happy to be wrong.

joncfoo··on SQLite in production with WAL
Please be nice.
joncfoo··on Please – A cross-language build system
Is this type of response called for?

Please be a good netizen.

If you’re interested in the project and are a Windows user, contribute to the project.

joncfoo··on Show HN: Microfronts – Front-end solution for running multiple frameworks as one
Micro-frontends are indeed a solution looking for a problem as others have noted. They remind me of the ball of mud that was Java portlets.

No team(s) wants to maintain a SPA written in multiple frameworks. If you truly must, embed a component written in framework X into a component in framework Y.

The embedding of components is a good way to re-factor your way out of having multiple frameworks and migrating towards a single framework. We've been doing this successfully at work where we're incrementally migrating our AngularJS + React SPA to Vue one component at a time.

joncfoo··on Pylon – Declarative layout primitives for CSS and HTML
Wow. So many kill-joys in this thread.

I think the project is neat. It certainly is an opinionated way of doing a layout and it reads quite nicely. If CSS classes were provided as an alternative I think the project might have more adopters.

Good work :)

joncfoo··on Utah man dies from rabies, the first in the state since 1944
It's not expensive outside the USA. Personal experience as travel was involved; for the full round of shots:

  - 1 USD in Nepal
  - 5 USD in India
  - free in UAE
  - ~350 USD in Texas
This was without insurance.
joncfoo··on The power of Result types in Swift
Maybe a quick spell check would've caught the misspelling of prgrams or maybe more proof reading is the answer.

/s :D

Types are a tool just like auto spell checking. Why not leverage them to reduce cognitive load?

joncfoo··on Marp: Markdown Presentation Writer
Might I suggest also having a look at https://github.com/gnab/remark

It's uses markdown as well, has a presenter mode, speaker notes, and is easily customizable. The best thing is that everything can neatly fit in an HTML file or you can create a folder with the JS for offline usage.

Demo: http://remarkjs.com/

joncfoo··on The Unappreciated Success of Charter Schools
I now have a favourite comic :) Thanks!
joncfoo··on Bond – An extensible framework for working with schematized data
Quoting apc @ https://lobste.rs/s/7w6p95/msft_open_sources_production_seri...

The current offerings (Thrift, ProtoBuffs, Avro, etc.) tend to have similar opinions about things like schema versioning, and very different opinions about things like wire format, protocol, performance tradeoffs, etc. Bond is essentially a serialization framework that keeps the schema logic stuff the same, but making the tasks like wire format, protocol, etc., highly customizable and pluggable. The idea being that instead of deciding ProtoBuffs isn’t right for you, and tearing it down and starting Thrift from scratch, you just change the parts that you don’t like, but keep the underlying schema logic the same.

In theory, this means one team can hand another team a Bond schema, and if they don’t like how it’s serialized, fine, just change the protocol, but the schema doesn’t need to.

The way this works, roughly, is as follows. For most serialization systems, the workflow is: (1) you declare a schema, and (2) they generate a bunch of files with source code to de/serialize data, which you can add to a project and compile into programs that need to call functions that serialize and deserialize data.

In Bond, you (1) declare a schema, and then (2) instead of generating source files, Bond will generate a de/serializer using the metaprogramming facilities of your chosen language. So customizing your serializer is a matter of using the Bond metaprogramming APIs change the de/serializer you’re generating.

joncfoo··on Ask HN: Alternatives to OpenAFS?
If your use case simply involves editing text files so that they are in sync with the remote server then OpenAFS does seem to be overkill. SSHFS [1] would be the simplest solution to this. It works well for small files but not well with large ones due to its synchronous nature.

[1] http://fuse.sourceforge.net/sshfs.html

joncfoo··on Ask HN: Alternatives to OpenAFS?
Does OpenAFS not solve your problem in some way? A little more context would be helpful.
Page 1 of 2Next →