skysight-inc/HackerNews huggingface dataset:
Sure, but if it's a python application, you have two options:

1) Tweak the code without understanding* of how it'll affect performance, because every single line of code hides behind it such complexity that any improvement you find is almost certainly overfitted to your version of Python. Eventually a benchmark will spit out a nice number. If successful, make a modest improvement, maybe 30%.

2) Rewrite the critical section in C. If you need to optimize further, you are now able to draw on 50 years of know-how in a well-studied field. The improvement will be on the order of thousands of percent.

They both take about the same amount of time. Why should you do (1)?

* There is a difference between random tips like "replace {} with dict()" and fundamentals like how the CPU cache works, or the branch predictor. The former is almost certainly a quirk of the current Python version, the latter has been the same for the past 20-30 years. If you do work on software performance, you rely on your knowledge of the fundamentals and a tool like `perf` to make educated guesses about where you can save some cycles. These fundamentals are basically irrelevant to Python code and so you have to make effectively random attempts.
Or more precisely, its country code 'NO' is false. I don't think there are any YAML parsers that parse the literal string 'Norway' as false.
I don't expect interviews. But I also don't want to spend 20 hours working before getting a "Unfortunately we've decided not to move forward" message.

As a thumb rule, I'm happy to put 4x more effort than the company. If they interview me for 1 hour, I spend 4 hours doing the take-home. Anything more feels like exploitation.
Serendipity strikes as I'm implementing an emrichen interpreter in golang after getting too annoyed about templating YAML as a string.

The reasons I like yaml is that I can see the tree structure directly, and to my lisp brain it is extremely easy to read. Furthermore, in our age of LLMs, I find LLMs to be able to generate "correct" YAML more easily than JSON, since the tree depth is encoded in every line, and doesn't require matching larger structures. It also uses an actually significant amount less tokens.

I find it extremely easy to have LLMs generate decent DSLs by asking them to use a YAML output format, and found it very robust to generate code out of these (or generate an interpreter for the newly created DSL).

I didn't know about !tags until sunday, which is quite shameful, but I find that the emrichen solution is actually quite elegant, and really kind of feels like a lisp macro expander.

Overall, YAML is just good enough for me to get shit done, I can read and skim it quickly, LLMs do well with it, and it's easy to work with. It has aliases, multiline strings and some other Quality of life features built in.

https://github.com/con2/emrichen
>Termux + nvim has enabled many from underpriviliged backgrounds who cannot afford a computer to get into programming and build a career for themselves.

Really? Where? AFAIK even in poor countries, outdated old tower PCs over 10-15 years old, can be had for peanuts or even free if you go dumpster diving for parts through the imported e-waste scrap and build one yourself. No need to resort to using your phone as a computer.
The processes through which immigrants and refugees settle in Germany are enshrined into democratically enacted laws. The refugees did not demand it; Germans with voting rights did.

The presence of all immigrants except refugees is contingent on their ability to support themselves. This is a legal requirement and it's verified at every step of the immigration process.

I can't just "walk into your home". I've been here 9 years, and I'm still waiting for the immigration office to confirm that yes, I'm still supporting myself (and quite a few German retirees), and that yes, I can live in this country for another few years.

From my perspective, I was raised, educated and trained by another country, then moved to Germany in my prime to pay taxes and support the local economy, and if all goes well, I'll retire elsewhere before I'm a strain on the healthcare or pension system. I can't vote, and my presence in this country is directly linked to my ability to pay taxes.

But sure, I'm getting all the new benefits.
Hang on there, array of strings? Environment variables can't handle that either without quirks.
AGPT: macOS app that lets you run Windows apps and games for free via CrossOver
That's great news, but I'd only say that IPv6 has actually made it when HN switches off their IPv4 address.
Rust in Production, for Fun and Profit
They were completely earnest. The joke followed that they can't take money with them when they die, but they can take tattoos. Pharaohs still have their tattoos, they point out.

There is also a general pattern of spending "extra" money on things like parties, experiences, consumables, etc. Better to spend the money on a pizza party and gocart trip for their kids than to stash it away in a savings account. Better to spend the money on beer for a party than even to hide it under their mattress.
Water matters. Grind size matters. Compression matters if you want more bitterness. Temperature matters. But yeah, that's pretty much the method, lol.
DPD chatbot blasts courier company, swears, and dabbles in awful poetry
The following goes a long way:

setopt PROMPT_SUBST
HISTFILE=~/.zsh_history
HISTSIZE=100000
SAVEHIST=100000
PROMPT='%B%(?..%F{red}%?%f )%F{blue}%~ %F{green}%#%f%b '
RPROMPT='%B%F{red}$(git branch --show-current 2> /dev/null)%f%b'

And if you want autosuggestions:

brew install zsh-autosuggestions

Then add the following to your ~/.zshrc:

source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
TOML is just an .ini file plus some syntactic and computing sugar. I can argue that TOML is actually way older than it is.
One neat alternative is ohmyposh.dev
because you own an arm device. emulation exploded on arm androids, see yuzu, dolphin and so on
Hey, watch what you’re saying buddy, ‘rewrite in rust’ is what pays the bills in this family!
Those problems are systemic. It is the whole system called "Boeing" that is now rotten - and the rot can have extended anywhere and everywhere now.

The executive don't care. They earned enough to live rich until the end of their lives. Like locusts, they ate through Boeing's real value (its engineering, its reputation) and can now fly away their bellies full, leaving behind a devastated company.
I recommend a bottle cleaning tablet. Removes oil and residue without leaving any perfumes from detergents behind.
The capacity might be small, but with 256GB/s of bandwidth, that's right up there at modern GPU levels, roughly comparable to a RTX 4060.

And that's apparently from single chip, the RTX 4060 needs 6 chips get equivalent bandwidth.

Though for that exact reason, I'm really not sure I trust the "single chip" part of the rumour. That's a lot of bandwidth per chip and it seems more likely to have four memory chips, which would result in 2 GB of capacity.
Also 1st world manufacturing.
People balk at XML, but its verbosity plus DTD allows it to pull tricks which you can't do on other things.

Well everything has its place, but XML is I think very well suited where you need to serialize complex things to a readable file, and verify it while being it's written and read back.
>You may be at greater risk of being robbed

Isn't a phone a bigger target for theft??
Maybe one written by a Geordie?
> In effect, the 2015 "migrant wave" was rather uneventful in Germany

Nobody ever mentions brexit, even though it had a significant bureaucratic impact. The immigration office was clearly affected by it. Now it's equally impacted by the wave of Ukrainian refugees. I see these clearly since I work with the immigration office a lot.
This is king shit right here.
Having XSLT flashbacks. Send help.
Why is AGPL bad? It would prevent Amazon from taking it from the founders and making money off it without giving anything back, like they did to dozens other products.
Samsung Galaxy Ring could mark the beginning of the era of smart rings
Not all ME immigrants are refugees. For most people, immigration means meeting a list of requirements and months of paperwork. The process is much harder for ME nationals than for people from favored nations.
The false hope of the new Alzheimer's drugs
Since it's 12x faster than real time on a 4090, I wonder how fast would it be on a small form factor device (a SBC); I get it as this is using CUDA, so I really wonder how would that perform on my nV Xavier NX (and the more common Nano's out there)...!
What problems are you having? Technique shouldn't be too different than doing pour over, except for a coarser grind.
Shoutout to a anonymous Boeing engineer sitting in some for a gruesome permanent crisis-meetings, where mostly pr- and mbas talk about what has to be done, but not what has to change, especially not about how engineering and QA should have a blocking-veto right for any decision and the ones actually talking about plans to change.
Well deserved funding round for a company that underpins most of the AI hype happening all over the place and probably always overlooked by many analysts.

Let’s see what they can do in a year or more with that new capital.
That's a pretty smart way for them to seed the ecosystem with open source connectors! Are you implying that that's what they were really trying to do here? Or do you think it was a genuine filter technique?
Scalable High-Resolution Pixel-Space Image Synthesis
I keep coming back to tanka (https://tanka.dev/) and hoping it had more traction in the industry.
Yeah I have a ton of customization including a really sweet looking prompt (that includes branch name & even git remote project name). Shortcut aliases and custom functions for everything that I use often. Atuin for Ctrl+R history searching.

All without using any “plugins” or ohmyzsh. All just within my .zshrc, and a few extra files that get “sourced” depending which computer I’m on. Only occasional copy-pasting a few things I liked from StackOverflow.

Basically instantaneous speed. Don’t even notice any performance penalties from all of the customization and styling.

I did have a performance issue early on, but I profiled my zsh startup time and saw 97.5% of my shell startup was consumed by NVM (node version manager), and another 2.4% was RVM (ruby). Switched to FNM and Chruby instead, and it was zippy.

And it’s all mine, so there are no “updates” to break anything. Throw it all in source control and you can keep improving it without risk of losing your previous working config.
oooh, what plugin is this?
It’s very obvious that’s what he means.
a Dhall configuration file will never:

- throw an exception

- crash or segfault

- accept malformed input

- produce malformed output

- hang or time out

in https://docs.dhall-lang.org/discussions/Safety-guarantees.ht...

Still a fan of Python for configuration?
I don't exactly remember the exact thing I used that's why I said "I resorted to things like.. ". Also, I used actix web, which could be the reason of slow compiling code.
100%. This is dotfiles on super easy mode. PS1 and PROMPT_COMMAND are your friends!
And yet it doesn't recognize that the UK is false[0].

[0] https://en.wikipedia.org/wiki/Perfidious_Albion
Tangentially, I thought Czechia is the modern and practical name for the country. "Czech republic" was used for many years, for reasons which I never understood, even though nobody says "Italian republic" or "German federal republic". If you insist on using an old name, you might as well chose "Bohemia".
I've seen this approach in 100- startup and 10K+ enterprise: managers collect and store ideas in their private places.
This quickly turns into job security and spoils the work process.
As a member of your country's public society at large, sure (media campaigns, propaganda, government contracts for IT equipment and infrastructure). For individual targeting.. not many people.
Indeed. I get a lot of value out of my strongly typed XML documents. I generally have code that validates them during writing and after reading. Those who don’t understand XML end up learning why it is verbose when they eventually add all of the features they need to whatever half-baked format they are using.
It's not actually fine for VCs. I recall reading somewhere (forget where) that VCs are loathe to invest in biotech because they've been repeatedly burned by startups spending a few million to set up a lab and then failing to replicate the academic result they wanted to commercialize. Getting a startup to the point where you can find out you've been defrauded is expensive, so they prefer to focus on computing where this isn't an issue.
Yeah they kinda just invest and stand back (with west investments at least?), maybe they are conflating tencent with netease. Are they the same parent organization…? Am i a tencent subsidiary?
Note that most of ohmyzsh can be done in pure Bash
And even a blacksmith would be competing with forgeries from China if they had something that was moderately successful.
> You should not be forced to use the services of any private company to get through the basics of life.

How do I buy food/clothing/shelter from the government? We are already discussing the actions of private businesses.
> but can we have some fun?

No.
One should treat git itself as insecure. When you sign a commit, the signature is based on the commit message and commit metadata including tree object_id and parent object_id.
But if sha1 is used to generate commit hashes, one can theoretically forge a commit. This means that in an elaborate supply chain attack, one could spoof a commit with a valid signature. That signature would then still appear valid for the spoofed commit and probably make it seem more legitimate than it is.
US just got 1M sq kms bigger
I should have been clearer in my question: It would be great to hear directly from people who are using them about their successes and what their experience has been like
I swear this is how we got docker containers... some ruby dev who abused env vars and a SA who was sick of his shit breaking on every roll out and hearing "but it works for me"...

And now installable software is a fucking unicorn!

( This week I keep running into go apps that can be installed from source or as straight down load, with docker as well. Been a breath of fresh air)
Since the article is about rust, I was wondering if you believe rust has an issue with backwards compatibility. Do you have any specific examples?
I'll take every person keeling over dead in pursuit of paperclip maximization over a corporation effectively enslaving the entirety of humanity to farm "value" out of them as though they're livestock, a threat that is already happening faster and faster thanks to sub-AGI models.
The open AI API is becoming a default API. It's easier to create wrappers for each LLM than using langchain in my opinion, it's an unnecessary abstraction. The software around those wrappers is what matters, using langchain wouldn't change that
Dhall's lack of any form of type inference makes it very verbose and difficult to refactor in my opinion. (I'm the author of dhall-kubernetes and never ended up using it in production; funnily enough). Dhall is also extremely slow. We had kubernetes manifests that took _minutes_ to type-check. Cue is basically instant. This matters a lot to me.

I find cue very ergonomic. Also it treating both types and values as values is very neat. You write your types and your values in the same syntax and everything unifies neatly. but I sometimes miss its lack of functions.

Cue also being to ingest protobuf definitions and openapi schemas makes it very quick and easy to integrate with your project. Have a new Kubernetes CRD you want to have type-checked in cue? No problem just run `cue get go k8s.io/api/myapi/v1alpha1` and off you go you have all your type definitions imported from Go to Cue!

Especially for k8s this makes for very fast development and iteration cycle.

I've wanted to take a look at https://nickel-lang.org/ which is a "what if cue had functions" language. but to be honest Cue kind of serves my needs.
> Or did that change while I wasn't looking?

Yes: https://datatracker.ietf.org/doc/html/rfc6177
It’s all fun and games until someone gets their eyes poked out.
Thats a content creator issue if they lose income due to DRM. Not our problem.
Does anyone know why the TTL is set to 1 on both A and AAAA?
Can you even begin to imagine a use case that could come close to exhausting an IP space that is perfectly capable of assigning a /60 subnet to every single grain of sand on earth?

That subnet is large enough to then assign an IP address to every individual atom in that grain of sand.

For comparison, if we wanted to assign every living person on Earth a grain of sand, we would only need a few cubic feet of it (less than 1 cubic meter).
The US has a whole department that is supposed to police scientific fraud, the ORI. It was set up in the 70s after a series of fraudulent studies caught the attention of Congress.

Unfortunately after a few failed prosecutions early in its history the ORI now does very little, only a handful of cases per year. Compared to the scale of the problem which is often measured in something like 50%+ or more of papers, it's just irrelevant. There is no "police department" you could staff up that'd be big enough to get a handle on this problem.
ChatGPT is a chatbot and it helped me learn many new things
Relevant: https://noyaml.com/

YAML and its ecosystem is full of footguns and ergonomics problems, especially when the length of the document extends beyond the height of a user's editor or viewport. Loss of context with indentation, non-compliant or unsafe parsers, and strange boolean handling to name a few.

It becomes even worse when people decide that static YAML data files should have variable substitution or control flow via templating. "Stringly-typed programming" if you will. If we all started writing JSON text templates I think a lot of people would rightly argue we should write small stdlib-only programs in Python, Typescript, or Ruby to emit this JSON instead of using templated text files. Then it becomes apparent that the YAML template isn't a static data file at all, but part of a program which emits YAML as output. We're already exposing people to basic programming if we're using YAML templates. People brew a special kind of YAML-templated devops hell using tools like Kustomize and Helm, each of which are "just YAML" but are full of idiosyncracies and tool-specific behaviour which make the use of YAML almost coincidental rather than a necessity.

Yes, sometimes people would prefer to look at YAML instead of JSON, in which case I suggest you use a YAML serialization library, or pipe output into a tool like `yq` so you can view the pretty output. In a pinch you could even output JSON and then feed it through a YAML formatter.

The Kubernetes community seems to have this penetrating "oh, it's just YAML" philosophy which means we get mediocre DSLs in "just YAML" which actually encode a lot of nuanced and unintuitive behaviour which varies from tool to tool.

Look at kyverno, for example: it uses _parentheses_ in YAML key names to change the semantics of security policies! https://kyverno.io/docs/writing-policies/validate/ . This is different to (what I think are the much better ideas of) something like kubewarden, gatekeeper, or jspolicy, which allow engineers to write their policies in anything that compiles to WASM, OPA, and Typescript/Javascript respectively.

We engineers, as a discipline, have decades of know-how building and using general purpose programming languages with type checkers, linters, packaging systems, and other tools, but we throw them all away as soon as YAML comes along. It's time to put the stringified YAML templates away and engage in the ecosystem of mature tools we already know to perform one simple task they are already good at: dumping JSON on stdout.

Let's move the control flow back into the tool and out of the YAML.
because it was designed that way. "we need it because we need it".
The faux pas is the admission that you’ve done this amongst peers who expect you to know better (presumably; personally I’d drink caffeinated dirt)
I had a math teacher who trolled the entire class.

We (the class) wanted to go outside instead of having a regular lecture. He made a deal that if we win his game we go outside, otherwise we had to be extra focused for the rest of the period.

Everyone in the class had to pick a random number between 1 and 100 and write it down. He told us that he would get one guess for each pupil (around 30) and if he managed to guess all numbers he would win. If any number was left we go outside.

Knowing how bad humans (and especially 12 year olds) are at picking random numbers, and knowing which numbers were mostly picked, he guessed all numbers with still a handful of guesses left.
I thought I was the only person in the world that still uses this...
Can someone help me understand what is the advantage of using jsonnet, cue, or something else vs a simple python script (or dialect, like starlark), when you have the need of dynamically creating some sort of config?

I've used jsonnet in the past to create k8s files, but I don't work in that space anymore. I don't remember it being better or easier than writing a python script that outputs JSON. Not even taking into account maintainability and such. Maybe I'm missing something?
Personally I prefer INI over nearly all configuration formats.

https://github.com/madmurphy/libconfini/wiki/An-INI-critique...
Feels like swimming against the current tho. Said dev experience poorly emulates actual linux at best.
Also, I’d think twice before running custom windows isos or unvetted scripts.
The questionable engineering of the 737 Max

https://youtu.be/hhT4M0UjJcg?si=2-nj6h8Ni5HvKh26
I used actix web, could it be the reason for slow compile?
How would you want it to evolve? It shows and sends emails good.

The promotions and social tabs are nice but I’d probably rather those all just went to spam instead.
I had to look up that tree. Invasive, offensive odour, cynaide-rich fruit. That's a a good insult!
> If a guest is invited into the more intimate areas of the house … they can no more object to what they see than

My brother, I can assure you that this is not actually how that works in the real world
But the point is that it's a lie, they have no intention to actually try those things. They only say them because as a society we do not give material support to physics for the sake of physics, instead we demand that it has some kind of economic value. Therefore physicists are incentived (or, really, forced) to oversell the reach of their ideas, since governments believe knowledge is not good in itself, it's only really good if there's some whiff that it may give a political or economic edge. All scientists in the world are used to pandering to this, so that they can be left alone and actually work. Unfortunately it seems to be getting more and more intense as time goes on, and as economies contract.