skysight-inc/HackerNews huggingface dataset:
> "All hazards" really is the name of the game these days.

Absolutely! One of the more recent calls I attended was a 'residential [smoke] alarm sounding', with no further details. Call turned out to be a woman desperate to turn off the water to the house, after a hot water pipe had burst in the kitchen with no other way to turn it off. Not sure how dispatch got 'smoke alarm' from 'hot water pipe', though panicked people tend to do and say bizarre things under obtuse acute stress.

Some digging (the mains tap was burried under a decade's worth of pine needles) and one multi-tool later, we had the water turned off.

> I mostly gave up firefighting due to the demands of my day job, but I still consider myself a firefighter at heart and may well join up with a volunteer department again some day.

The 'job' is very much Hotel California.

Whilst I'm 'career' in my day job (which only turns operational in an incident management sense during the 'on' season), I still regularly volunteer with my local brigade when I can, which isn't much these days unfortunately. We've always said family and work come first, though even an hour or two here and there definitely help, even if its only with odd jobs around the station. It also helps keep one's skills sharp, as monotonous as maintaining BA sets can be, it helps keep the muscle memory exercised.
> exist in your head if you're implementing a function like max(a, b)

surely, you have an idea of what you're using that function for, while you're writing it.

The compiler is doing a check to see if the function makes some minimal logical sense (ala, a typecheck), but it cannot read your mind. But this implies the types are actually an actualization of the thoughts in your head, in a formal manner.
can't even reuse cable anymore, will increase cost and e-waste. smh.
I guess they take it for the same reason you do. The effects aren't really different in people with ADHD vs people without [0]

> I cannot tell you how much literature there is trying to convince you that Adderall will not help healthy people, nor how consistently college students disprove every word of it every finals season. That makes “only give Adderall to people with ADHD” a moral judgment, not a medical one. Adderall doesn’t “cure” the “disease” of ADHD, at least not in the same way penicillin cures syphilis. Adderall will give everyone better concentration, and we’ve judged that it’s okay for people with terrible concentration to use it to overcome their handicap

[0] https://slatestarcodex.com/2017/12/28/adderall-risks-much-mo...
Is the girl from the date with the TV now the wife?
If you want to be a developer, shape your resume and LinkedIn profile to look like that. Would you hire a person marketing themselves as a not-a-software-engineer as a software engineer? I wouldn’t, at least not when there are so many other developers applying to jobs.

Do this:

- drop most everything from your resume that doesn’t sound like "I’m a software engineer"

- don’t to be proud to play the game, so grind a bit on Leetcode, take a class, hack on a personal project or do anything that gets you back into the mindset of being a software engineer

- don’t spend too much time apply to junior roles, as you’re unlikely to be taken seriously
The type is encoded in the name of the function.

Is a pretty bad system because you say "won't even exist in your head" but I dont even know if I should pass it integers, floats a srtring. Or what it will return.
I'm fairly confident there's virtually no ethnically diverse nazis in diffusion models' training set.

It simply has a model of what ethnically diverse people look like, what nazi uniforms look like, and combined the two when asked.
> Streaming music was popular even before it became legal

Downloading music was popular. You download once, you listen many times. On Napster, it could take hours until a song was downloaded. No way you'd delete it and download again next time you want to listen to it.
A firie after my own heart!
One of the most suitable use cases for LLMs is text-to-SQL, even though this is the case it takes a lot of effort to get an LLM to give right answers to your data questions.

Why is it not straight forward?

First of all, it's important to realize that these models are typically trained using substantial volumes of general SQL and text data. Although this extensive training greatly aids in their ability to comprehend plain language, it does not always prepare them to write precise SQL queries.

Understanding the exact database schema, table relationships, and data types is necessary for efficient text-to-SQL translation. Without further instruction or refinement, general-purpose LLMs may not be conversant with these details.

Complex questions requiring joins, subqueries, aggregations, and conditional logic can be more difficult for LLMs to handle, even though they may handle simple searches rather effectively.

Questions in natural language can be unclear. For instance, in order to answer the query "Show me the sales for last year," one must be aware of the precise meanings of the terms "sales" and "last year" in relation to the database.

So, How do we get the right results?

There are two methods to enhance an LLM to make it perform better: the first is to enhance context, and the second is to enhance behavior, or fine-tune.

These models have a good use case for fine tuning because they have already been trained on a vast amount of general SQL query sets. However, they also need to be improved in context. To achieve results that are more accurate than 83%+, a hybrid approach that incorporates context improvisation and fine tuning is required.

The above diagram shows how to approach this problem.

1. Start with simple prompting (By giving schema)
2. Add few examples to the prompt
3. Improve the context by adding relevant examples from RAG
4. Fine tune the model with example sets
5. Iteratively refining both the context and behaviour

Evaluation

Evaluation is one of the key factor when you are dealing with optimising an LLM, we need to make sure we are repeatedly evaluating the model performance at each level, this makes the model to improve periodically in the right direction.

In summary, there is promise but also difficulty when utilizing Large Language Models (LLMs) for text-to-SQL translation. It works well to use a hybrid method that combines model fine-tuning and context improvement. Accuracy can be greatly increased by the use of relevant examples, straightforward schema prompts, and iterative refining. Our approach has shown accuracy rates higher than 83%, indicating its usefulness.

By offering a platform that makes it simple for developers to create text-to-SQL models and implement analytical dashboards, we at EnqDB(visit) streamline this process and guarantee a smooth transition from model training to deployment.
Here is where you can attempt to develop your text to SQL model Beta - https://app.enqdb.com

Ref -
https://www.youtube.com/watch?v=ahnGLM-RC1Y
https://platform.openai.com/docs/guides/fine-tuning
> You compared it to an authoritarian regime and locking someone's head in a cage with rats

They compared it to the effect on creativity in an authoritarian regime and locking someone's head in a cage with rats.
Hot take of the day: you learn that with imperative programming just as well.

I familiarized myself with fp to the point of writing scheme and haskell around 15 years ago. Read the classics, understood advanced typing, lambda calculus and so on. The best “fp” I’m using nowadays is closures, currying in the form of func.bind(this[, first]) and map/filter. Which all are absolutely learnable by the means of closures, which are useful but I can live without. Sometimes not having these makes you write effing code instead of fiddling with its forms for hours.

Still waiting for the returns from arcane fp-like code I produced earlier. Cannot recognize nor understand none of my projects in this style that I bothered to save in vcs. Imperative code reads like prose, I have some of it still in production since 2010.

These FP talks are disguised elitism imo (not necessarily bad faith). Beta reduction and monadic transformers sound so cool, but that’s it job-wise.
There is a bit of a false equivalence between entropy of output distributions and creativity here. Is diversity really the same as creativity?
Big red stop sign? Like on the bus?
Are those the only two things in the universe that can cause emotions?
Isn't the bland obvious stuff the one that's most useful to automate?
Lisa Su is one of the (surprisingly rare) tech CEOs who comes from an engineering background.
Picture this: It's April 1995, and Brendan Eich is on a mission. He's working at Netscape, one of the early browser companies, and he's given just 10 days to cook up a programming language that can work directly in a web browser. Why the rush? Because Netscape's in a browser battle with Microsoft, and they need to get their browser out there ASAP. So, Brendan pulls off a miracle and creates JavaScript (also known as JS). It's not perfect, but it's a start.
I guess you mean "the entire eastern philosophy" in your last sentence.

I absolutely agree that there is a lot of parallels with Buddhist descriptions of "co-dependent arising", but there are also important differences. Buddhism is focused on suffering, its origin, its cessation, and the path to its cessation. It is a practical path, and everything that is not related to this path is out of its scope.

But I would disagree that eastern philosophy explores this "much richly". The article cites Kant and Husserl in the second paragraph. And the whole idea of seeing "things as they really are" was imported to Buddhist thought by western thinkers[1]. This idea is present in currents of the 3 Abrahamic traditions, in great part through the influence of neo-platonism from the 3rd century onward.

This kind of concept is present in mysticism in all 3 Abrahamic traditions, though in a different language.

As a Buddhist practitioner turned mystically inclined Christian, I would argue that there are lots of facets to look at this, from a wide array of traditions, and all have their place and value. One of the hardest things to do is not to immediately dismiss them by analogy with waht we already think we know, e.g. "oh yeah that's just good ol' teaching of the emptiness of all phenomena, I know that!", without rejecting what one learned until now either. What is beyond word can be described in countless ways, and each of them can help shed a new light and reveal holes in ones current understanding of "reality", if you let it do its work.

[1] you could argue that it is part of some Mahayana traditions, but the way they describe it is so foreign that if you do not engage with it for years, theoretically and practically, you will understand it through a "romantic" lense.
Ive convinced myself now that this woman was a time traveler and you cannot sway me.
Show HN: After 2 months my project management software is finally finished
Hey Hacker News,
I have finished this after 2 months and made the entire thing free (up to 2 projects) for you all to try out, all you need is an account.
Thansk and enjoy,
Dan
whether something (a variable) is a width or a height is encoded somewhere in the code because if the variable is a width it makes its usage different than if it is a height.

Then the code is written to make sure you never make the mistake of sending a width to a height, because that would be silly.

The type (width or height) is represented as logic in the code.

theoretically - if you have a type system that allows you to know something is a width or height you can often reduce logic to keep track of these things but my experience is that level of granularity in your typing reduces dynamism too much. I would rather keep track of that in code (as it probably will have to deal with it anyway) than make my type system deal with it.
https://www.slideshare.net/slideshow/rekursiv/7675588

It's really about Linn Smart Computing, a subsidiary of Ivor Tiefenbrun's slightly unhinged empire.
You feel connected to people by looking at their pictures and avoid talking to them? Honestly not sure why I would want to feel connected to anyone I don't have a reason to talk to
"By contrast cats are not really domesticated and cannot be, no matter how you treat them"

Of course you can. A small tiger won't sleep on your couch and remembers not to make a mess in the house. And when a small tiger attacks you, it can still be dangerous. There are still wild cats around here (in europe) - and they would not get that tame so easily.

(Also you can teach cats some commands, it is just way more work and the commands won't work all the time)
Why Google Maps Has No „Scenic Route" Option
It isn't aimed at one or two individuals, it is aimed at the workforce of an occupied country who are required to keep working and directly/indirectly supporting the occupying power.

This is for the people who, for whatever reason, can't be partisans but can do their part to ensure that they're not collaborating.
We achieved a 200ms page load time
> Well this is just like humans. Totalitarian societies don't produce great creative work.

The clear implication that it's "just like humans" is that we shouldn't be surprised because it is comparable to an authoritarian regime.

Feel free to disagree but that is the limit to which I will engage in a semantic argument, I don't wish to engage in any further dissection of the comment.
People aren't born familiar with C style syntax. Quite the opposite: many people struggle with it for a long time! Back in the day it super common to get frustrated because you missed off a semicolon or something. Nowadays IDEs probably help, but what's the point of syntax that the computer could write for you?
More like:

Meta: "Privacy is long dead, we always owned your data."

EU: "Hold up a moment, we need to check this before we can agree to this."

Meta: "Ok". Thinking: Eh, whatever. This will happen later anyway.
Yes, according to a llm. He had a particularly touching moment repairing a broken drone he found with his son. Shortly after the story took a dark turn with the cancer diagnosis. As the condition worsened, he made an effort to document his projects, scavenging 3D printers, partly as a manual and partly as a diary. "The knowledge that my kids would have these memories and skills to carry forward, and perhaps pass on to their children, made the days feel meaningful."

Not what I was expecting. Perhaps the model was not a reliable source.
Not if the OS had the ability to set up cryptographic systems to ensure that the banks balance and my balance were always properly synchronized ...
I now almost always format C and C++ with clang-format -I pure, without any .clang-format overrides.

There's no need for lengthy discussions with co-workers then. Just for bigger projects there's a need for Statement Macro Declarations, but that's arguably a bug/limitation in clang-format
Given how ardently they defend them, they do more than pay lip service. I think what's happening is "we want to be the only ones who can invade our citizens' privacy".
Developer Takes 'Retro' Concept to New Level by Creating Physical Winamp Player
Sorry, I don't think you can say nomads or semi-nomad got any of their five snout from agricultural societies, there is no proof of that.

Especially since most of those agricultural society got their law and political organizations from nomads (Turkish 'torük', ancestral law, while influenced by Islam, is definitely from Gotürks' 'türük' which was at the time likely already thousand of years old). Rus political system was also heavily influenced, if not copied from the horde (or rather, the 'ordo', since our vision of what is a horde is now so wrong it isn't funny).

You have to know that the political organization of central Asia nomads stayed stable from before the Xiongnu until the 19ty century, and their administration was as good, if not better than the Ottoman one until cheaper method of making paper was found in the 15th century.
Should be duplicate from https://news.ycombinator.com/item?id=40699470
If you read this and think "would be fine with my dog", I say the same, but remember the kid can mess with the dog and the dog will defend itself. Do you know for sure what the dog will do if the kid pokes it in the eye? The dangerous part is more what the kid will do.
I watched it but I don't get your meaning. Perhaps I am as clueless as the censors. Could you enlighten me?
Drug war continues to be an enormous amount of waste and human suffering for no clear public benefit

The only "scandal" here is that an adult can't go buy adderall at a grocery store if they need or want it. There is no reason for cops to be involved in this sort of personal decision, and doctors are better suited to an advisory role in it than their current position as de facto legal enforcers
What's the big deal on AI being trained on my data? The only argument I can understand is that a megacorp makes money from content I created, even if that would only be a net a few dollars for me, if someone were interested enough to pay. What other issues are there?
When I compile it with GCC 12, this machine code results:

1129: f3 0f 1e fa endbr64
112d: 55 push rbp
112e: 48 89 e5 mov rbp,rsp
1131: b8 01 00 00 00 mov eax,0x1
1136: bf 01 00 00 00 mov edi,0x1
113b: 48 8d 05 c2 0e 00 00 lea rax,[rip+0xec2] # 2004 <_IO_stdin_used+0x4>
1142: 48 89 c6 mov rsi,rax
1145: ba 0f 00 00 00 mov edx,0xf
114a: 0f 05 syscall
114c: b8 00 00 00 00 mov eax,0x0
1151: 5d pop rbp
1152: c3 ret

Can you spot the error?

.
.
.
.
.
.

The code biffs rax when it loads the string address, so the system call number is lost, and the code ends up not printing anything. Moving the string assignment to be the very first line in main fixes it.

BTW, Clang 14 with no optimization accepts the code without issue but compiles it without using any of the registers; it just stores the values to memory locations and runs the syscall opcode. With O1 optimization or higher, it optimizes away everything except the syscall opcode.
I've actually had to fire a technically exceptional Haskell programmer because of the damage they did to our C# codebase (and arguably moreso, the team). Sometimes it's not a matter of talent or skill, but culture fit.

In my experience FP-aligned people on non-FP projects tend to be more likely to overengineer, more prone to argue in favor of the Great Rewrite For No Reason Except Aesthetics, and more likely to abuse "lesser" programmers when they put up PRs. They suck as team players on teams that are not made of language nerds. I am not just talking about the one person here who I fired, this is a legit pattern I've noticed over at least a half dozen people.

Conversely, they are exactly the right people to deploy when you have really tough, self-contained problems to solve that you wouldn't trust the normal Java 9-5ers to tackle.

No matter how they do it, you can always rewrite their working code in a more maintainable language later once it's working, and make it integrate well with the rest of your stack. :D
The UB is a lot more manageable if you pass nostrict-aliasing and similar to the compiler, or if you use a compiler that doesn't do that style of trickery.

The includes and raw pointers are a build your own abstraction thing. Annoying if the abstraction you're building is the one a different language gives you to work with. For example, a struct with multiple arrays of the same length - in C that's multiple pointers and one size, in other languages that's probably multiple sizes and asserts that they haven't diverged.

It's not a perfect language but it's really rather good.
Not necessarily true. The jury is out on that.
I use remotes liberally. Reconciliation is a problem for later
The coup preceded the little green men ..
She worked as a researcher in the field for decades. Moore's law only kept up because of some of the techniques she developed.

> During her time at IBM,[6] Su played a "critical role"[7] in developing the "recipe"[2] to make copper connections work with semiconductor chips instead of aluminum, "solving the problem of preventing copper impurities from contaminating the devices during production".[7] Working with various IBM design teams on the details of the device, Su explained, "my specialty was not in copper, but I migrated to where the problems were".[6] The copper technology was launched in 1998,[7] resulting in new industry standards[22] and chips that were up to 20% faster than the conventional versions.[6][7]
No need to thank me, but thank you.

If you can, and you're willing and able, consider volunteering for your local volunteer department if there's one near by.

You don't need to be the fittest or the strongest (though some fitness is essential), it's much more important these days for a fire service be reflective of the community it serves[1] (NSFW minor adult themes, headphones recommended).

That means more women firefighters, firefighters of colour, short firefighters, tall firefighters, tiny firefighters, stocky firefighters, LGBTQ+ firefighters, religious firefighters, English-second-language firefighters, even techy firefighters, help reflect the community in which they serve.

(And I include our paramedic/EMT brothers and sisters in the word 'firefighter' here, who are just as vital as us).

All of those skills and life experiences are valuable in the fire service today.

[1] https://www.ted.com/talks/bronnie_mackintosh_how_diversity_i...
I was hoping I could revive my background in lower-level programming, I am not actually interested in creating AI based solutions per se, but rather develop frameworks that allow it. Hence CUDA and algorithmic programming in general.

Thanks for your input, I appreciate it!
Yes I feel your pain and I'm sick of group projects in the university where I'm offered ChatGPT text and code without disclosing it. If you know the problem and the experience level of your group partners it's easy to spot ChatGPT generated content. People that correct the exercises told me it's obvious that large part of the students just submit slightly modified ChatGPT but they can't prove it and so it's accepted.

Personally I'm getting also angry when reading these texts. I don't mind using ChatGPT, I do it myself but be honest about it and disclose it. It's even allowed for some projects as long as you disclose it.
I'd very much prefer my privacy to be respected universally. One has to note so, that there is a very significant difference between a democratic government having rules in place to intrude on it and some capitalistic corporation doing it for profit.
Yes

The AI will be very good at that it seems
The title is not inflammatory, but (granted) easily misunderstood. "Bullshit" is a term of art in philosophy, coined by philosopher Harry Frankfurt (1929-2023) in his 2005 booklet On Bullshit, in which he distinguishes bullshit from lies:

> The liar cares about the truth and attempts to hide it; the bullshitter doesn't care if what they say is true or false.
Tried it with GCC, and without any optimization it does print the message. With "-O2" however, we get this:

Disassembly of section .text:

0000000000001040 <main>:
1040: 0f 05 syscall
1042: 31 c0 xor %eax,%eax
1044: c3 retq

Everything except the syscall instruction has been optimized away!
Thanks for the heads-up, I'll look at mine in a different light from now on.
Mark Shuttleworth Chats Ubuntu, Snaps, and Open Source on Nerding Out with Vikt
Yes, I would. My email is jgc@cloudflare.com.
I wonder if this will be one of those situations where because everyone else does the wrong thing, the people that try to do the right thing actually end up worse of. Mostly because if models will not be trained on european data, the internet and cultural hegemony of the US will go into overdrive with all models churning out only US-centric views.
I'd worked exclusively with functional languages and assignment operators implemented as lambdas blew my mind more so than all the monads in Haskell.