Better HN
topnewbestaskshowjobs
Log inSign up

joncfoo

364 karma · joined May 3, 2011 (15y ago) · 35 submissions

Submissions

comment 9mo ago · link · parent

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.

comment 1y ago · link · parent

Doesn't seem to be up =\

comment 1y ago · link · parent

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.

comment 2y ago · link · parent

That is slick. Offline first in the truest sense.

comment 2y ago · link · parent

Unfortunately login.gov is only available for use by companies doing business with the US government.

comment 2y ago · link · parent

[...] 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.

7.

.INTERNAL is now reserved for private-use applications(icann.org ↗)

563 points · by joncfoo · 2y ago · 278 comments

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

> 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.

comment 3y ago · link · parent

Have you come across sqlc? https://docs.sqlc.dev/en/stable/

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

comment 3y ago · link · parent

This is really neat! I'm going to take it for a spin in a simple CRUD internal app.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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

comment 3y ago · link · parent

> Some of this is probably going to have to be done in your application...

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

comment 3y ago · link · parent

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
    }
  }

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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).

comment 4y ago · link · parent

In Firefox, type % followed by a space and you can then search tab titles and jump to a tab.

comment 4y ago · link · parent

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

comment 4y ago · link · parent

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.

comment 5y ago · link · parent

Please be nice.

comment 5y ago · link · parent

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.

comment 6y ago · link · parent

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.

comment 7y ago · link · parent

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 :)

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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?

comment 10y ago · link · parent

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/

comment 11y ago · link · parent

I now have a favourite comic :) Thanks!

comment 11y ago · link · parent

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.

comment 12y ago · link · parent

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

12