skysight-inc/HackerNews huggingface dataset:
> I am experimenting with runtime generation of shared libs.

Sure, you can produce an executable or a shared library at runtime; after all, that is what compilers and linkers do, those are also just programs, aren't they :). But do you really need to do that? As others said, you can also dlopen and rename your symbols, put them in an array and what not, but your problem seems quite simple, unless you need to transport that library somewhere or keep it for later use, I don't see reason why would you bother with generating a file just to load it after into your program again?

> We have a database of rules in the form 'A OR (B AND C)' stored just like that in human readable form.

That sounds like you could construct a "bottom-up" parser, i.e. an operator precedence parser, and just evaluate that directly, or emit the assembly code directly to a page memory and mark that as an executable page? Unless you are doing some optimizations, do you really need an explicit AST?

Anyway, if your AST is slow, it may depend of course on the size, but also on how you create your AST in the memory and how you use it. If you are doing some linked structure with pointers pointing all over the memory and accessing it randomly you can be trashing your cache which should be slow. But if you put it in some vector and can access it sequentially, it might help performance. I don't know, just thinking loud, no idea what you are really doing.

I suggest look at a good Lisp compiler like SBCL or CCL. They generate code at runtime which is than mark as executable and call that code. They can also save themselves into an executable (or a shared library in the case of sbcl). Writing a read-macro that transforms your human readable strings into compiled Lisp functions would be trivial exercise in Common Lisp. Perhaps you should try to solve your problem with that tool instead of C++? If you are going to generate code dynamically every now and than as you describe, than pick a tool that already has infrastructure to do that in-place so you don't have to do everything from the scratch; albeit you could do something similar based on llwm or libgccjit too.
The ~ selector should be labeled "general sibling combinator" instead of "subsequent selector" (thanks for sharing!)
In some places, there are legal obligations and consequences that can trigger with shareholder counts. For example, pitch 17 firms with NDA protected IP in the slide deck, than your project could be considered public domain. Or... issue ownership to more than 30 shareholders, and you now have a filing obligation regardless of investor tier (YMMV, in some places... I recall it is 300 names that trigger a requirement to enter an exchange whether your group is fully ready or not).

This is one of those things you had better get more than one corporate lawyers opinion on in your geographic region. Seriously, don't even think about YOLO'ing it with share structures. Hard pass if you are unsure...

Good luck, =)
I really wanted to like FreeBSD. ZFS is cool, jails are cool, pkg has such a wide variety of packages that it's comparable to Arch.

In a world before Docker and btrfs, this would be enough to make installing FreeBSD worthwhile. I tried it anyway, for a home server, and it was mostly painful.

Jails are tricky and require third-party (?) tools and scripts to manage them effectively. And they don't give you much that Docker doesn't already. And, although it's not as bad as Arch, FreeBSD does update quickly and if you aren't frequently updating your server you can be left behind; it's not noticeable until you try to update and a bunch of packages break, or your jails are no longer running the same major version as their host and that causes subtle bugs.

I recently replaced my FreeBSD home server with a basic Debian machine running a docker-compose cluster, and it's so much simpler. I wanted to like FreeBSD. At its core, it's probably a better-designed system. But it requires too much additional knowledge and maintenance for something that Linux and Docker do just as well.
I read the entire article and I reviewed the spreadsheet with financial data.

The department costs were $5,846,146 in 2022. They had net revenues of $801,468. A 13.71 ROI. They served a student population of 61. The student population has been consistently shrinking over time. Compare this for example to the Department of Psychology which had costs of $6,485,775 and net revenue of $1,724,536 for an ROI of 26.59. This while serving a student population of 774 which has been consistently increasing over time.

If they believe they can replicate the higher ROI while serving more students by switching the funding to another department they should do so.
I'm sorry, but "just following orders" is not a valid excuse. Millions have died because people were "just following orders".

I admit that I'm privileged and that my perspective is not subjective, but I - as an engineer - would never build something that I know it's immoral.

Yes, there are people that can't afford this choice, but I seriously doubt that FAANG engineers are in this group, or, for that matter, dare I say it, most engineers.

We come here to complain about these user-hostile features, then turn around and build some more.
> the person that had 2FA for your organisation’s github admin account

Why doesn't your organisation have at least two people with the Owner role?

> Also phones don’t seem to think it’s important to backup 2FA secrets

I've been using a TOTP app with backup functionality since at least 2014, so its not exactly a new concept. If you choose not to avail yourself of one, that's on you.
Is it possible a pool of these running smaller sized models could somehow be cheaply combined into a MOE approach (as supposedly GPT-4 is) so create something cheap but higher quality?
DRM, proprietary components, "signed hardware" (ala Apple), app bullshit - is all forms of enshittification.

And damn near every silly-con valley company engages in one or more of those. And I hope they die eating their own crap they put out.

I support the 4, not 3 R's: Reduce, Reuse, REPAIR, Recycle. And enshittification is completely opposite of reversing pollution and climate devastation, by forced generation of more enshittified trash :(
The above doesn't even touch on the analogue photography renaissance taking place. Polaroid cameras are being snapped up at flea markets all over the place. Zoomers and younger millennials are spellbound by the whole milieu.
Estimating association between Facebook adoption and well-being in 72 countries
casual classism on HN. You're suggesting not only that everyone do the research, but be capable of doing the research, understanding the research, understanding whether they're being lied to, all without potentially any knowledge of how things work.

remember how normal people operate ffs
There are ESP32 boards with ethernet and PoE. This device[0] uses one and it works very well.

I'm not aware of any ESP32 boards with a camera and ethernet though, but I haven't gone looking on AliExpress either. It's a reasonable combination, so I'd be surprised if it didn't exist.

[0] https://smartlight.me/smart-home-devices/zigbee-devices/smli...
These are good points.

At the same time, a lot of the UI tooling and APIs feel like we went back 30+ years. Everybody is still reinventing the pop-up menu button (aka “select”). I really thought this was a solved problem in NeXT by the early nineties.
Dang was right, these comments do attract that absolute lowest tier of discussion.
In my experience (with GPT-4 at least), a temperature of 0 does not result in deterministic output. It's more consistent but outputs do still vary for the same input. I feel like temperature is a bit more like "how creative should the model be?"
30 years of powerpoint and we still think it's a good idea?
Canada:
- squash innovation and entrepreneurs with high taxes and regulations
- try to bring big players with subsidies and tax exemptions.

Innovation is bottom up, come from small player that grow (Tesla) If the conditions are not right for those kind of players don't expect the big players to save you (they are on their way out anyway)

Most of the automakers will not survive the transition to EV. They resisted as long as they could. Now they are trying to catch up but are loosing money on each vehicles and Tesla is still growing 50% YoY.

I expect EV from China/Korea to be the androids of ev and Tesla to continue to be the iphone. If I ever buy an EV other than a Tesla it will be because it’s massively cheaper. This mean almost impossible margin for other manufacturer.
How to Deploy a TypeScript Application to Platformatic Cloud
Put yourself in the shoes of an FTX victim. Would it give you any comfort knowing that your investment was donated to a politician's local charity so they could score political points, instead of going back to you?

Understand yet?
When I did college in the mid-90s, the American Advertising Federation had not yet green-lighted digital projectors. (Which was ok, because the resolution and brightness at the time was pretty terrible.)

So for the national contests we'd send digital artwork off to be printed as actual slides and run two synchronized projectors which would crossfade. It was tricky to set up and order the slides because they alternated across the two machines, and of course edits were impossible. We also had an entirely separate film projector for the commercials we'd made.

As analog as the tech was, it was almost indistinguishable from a modern presentation in experience. Just a whole lot more gear to lug around.
My claim isn't that users don't need secure devices, but rather that there's always a balance between security and other factors (such as repairability), such that locking all parts of a device to it does not make sense for the average user. Hacking someone by replacing a part of their computer/phone with one modified to be malicious is a very target-specific attack.

In comparison, on so-called 'secure' Apple devices, all the usual holes are still open for traditional approaches like vulnerable software, poor password practices etc. These are the approaches that have the widest impact and are the most meaningful to deal with when it comes to security for a broad audience.

As such, it's ridiculous to be suggesting that the security Apple devices add by being unrepairable is reasonable.

In my opinion, it's kind of like how we could force everyone in the world to have a yubikey or other similar separate device for 2FA, with no backups and no recovery methods to eliminate any risk of someone unauthorized gaining access to any data. But that would be way overkill for most people and would make computers much less valuable to them due to all the added hassle. I see Apple's locking down of all parts of the device to prevent repairs the same way.
About six years ago I went backend to avoid the React churn, hoping it would eat itself by now. Unfortunately that didn’t pan out. Apparently it’s the new Struts.
> If you weren't and aren't going to pay for Red Hat, you aren't going to pay for any other distro either.

I don't think that follows logically. People who won't pay for Red Hat, after Red Hat's deemphasis of desktop work, might still willingly pay for another desktop focused distribution.
https://archive.li/DtOVI
I had the same reaction upon learning that curl can talk LDAP.
I wonder how llama affects the simulation. Even llama2 consistently fails simple reasoning tasks.

(Though I suppose people aren't very reasonable, so it might give an accurate simulation!)
> this coupled with a complete denial of the real state of the country

A mix of denial and ignorance, really - the atrocities were not known as clearly as they are today.

It’s easy to forget just how closed off the USSR was under Stalin. Respected western journalists were fully complicit in the denial of the Holodomor, and Stalin’s purges were not well publicised. The few people who escaped the USSR and tried to spread the word of Stalin’s atrocities were easy to dismiss as either angry capitalists, or as socialists who were just upset that they didn’t win the power struggle themselves (eg Trotsky).

It was only in the 50s under Khrushchev that what were previously rumours were confirmed as facts. The revelations devastated western communism - the Communist Party of the United States lost 30,000 members in the weeks after Khrushchev's secret speech was published in 1956. A year later it had 10,000 members, 1,500 of which were FBI informants.
> the mass of the not quite yet a sun was only 6% of the mass of the entire system.

That seems like an arbitrary division of the mass of the system. More than 99% of the mass of the system was going to become a star, so on what basis are you identifying a small subset of that as being significant? Gravity involves the net effect of the forces between every particle in a system.

> At some very early point I assume the distribution of mass in the proto solar dust cloud would be the same as the distribution of mass in the galaxy. [...] would galaxy sized objects eventually coalesce into the same proportion of objects.

No and no, because of the inverse square law. Galaxies don't look like large solar systems because they're much bigger. The Sun has a big effect on all the planets in the solar system, but it doesn't have much of an effect on Alpha or Proxima Centauri, even though that's our nearest neighbor.
Bayesian Flow Networks
Its not supported by TVM yet, but there is support for Qualcomm Hexagon.

You can kinda see some of the supported backends gated behind flags in the cmake file: https://github.com/mlc-ai/relax/blob/mlc/CMakeLists.txt
> I’ve never found myself wanting to reorder notes by dragging them around

I cannot imagine using a program like MuseScore for anything other than composing original music, whose content is not known at the outset.

Pretty much everyone who defends the MuseScore UI turns out to be more of a music typist. (And, sure, that is an entirely legitimate, necessary activity in professional music.)

"Oh, give it a few weeks of learning, and you too will be transcribing existing music (for your whole orchestra even!) in a clean left-to-right pass whereby you don't have to go back and do anything more complicated than adjusting a wrong note pitch."
Yes like a person
I feel the someone might argue suggests that's not T.E. Eliot... but...

At the time there was a sizable movement not on political lines but one of emergent sociology that people could be conditioned en masses by (it seemed largely assumed) by conditioning. Take the book Walden Two written by B.F. Skinner during WWII years, (or Living Walden Two documenting places where it was tried and failed) of conditioning altruistic and intelligent societies, the not working out due to the positivist view of social truth, rather than social 'truth' being a much more dynamic, and endogenously generated, concept, perhaps, is it really ontologically 'is'. And to circle back on learning/reflection in technology, much effort being applied in AI to assist in grasping such 'truths' as repeating mistakes of the past (especially LLMs missing verticals of specialist knowledge), however I diverge.

Book recommendation:

Walden Two, B.F.Skinner

Living Walden Two, Hilke Khulman
Could you please elaborate on this statement: "The developer community being disproportionately composed of young developers" ?
>MicroPython or CircuitPython

Well, what do you expect? These are verboten for any kind of reliable embedded system.
No there were lots of just outright breaks.

JavaEE being removed, along with a package frequently used for Base64 encoding (with no replacement until several later versions). JavaFX being separated out so it's not bundled anymore, along with removing javafxpackager (since returned as jpackage). Java Web Start being removed.

Then there were all the borderline stuff. The locations of files inside the JDK all changing, like "rt.jar" went away and a lot of tools depended on that. The concept of an installable JRE was removed entirely and along with it the whole way people were used to distributing Java apps was deprecated with no replacement until much later (and the replacement was much worse in some ways). Suddenly spamming warnings to the console if you use widely used packages (which breaks anything parsing the output).

Even just changing the version number broke a lot of stuff because code had been written to assume the convention that Java version numbers started with "1."

Then when they went to 6 month releases soon after, that broke a lot of stuff because the whole ecosystem made the design assumption that Java releases were rare (stupid stuff like using enums to represent versions, the Java guys bump the version number in .class files on every release even if nothing changes).

Then people tried to use the new module system, but that broke the world too and for little/no ROI, so eventually everyone gave up. Now the ecosystem is full of broken module metadata that's there but doesn't work, and if you try to use it and report bugs they get closed with status: "don't care".

Frankly a lot of the dust has still never settled, it was a very damaging time for the Java community. Backwards compatibility über alles bitte, and that means NOT removing widely used features that were heavily developed and advertised as the right way to do things for decades.
> ...Server-side rendering isn’t special anymore..

quietly dries tears using pages ripped from ASP.NET For Dummies
You can probably get a PoE hat/board but I don't think it's built-in
No, that's not how it works. If the column is used in a foreign key constraint, MySQL will prevent you from dropping the column. In that case, the ALTER statement will immediately fail with an error and take no action.

Otherwise, assuming there's no FK and it proceeds:

If the dropped column is used in any indexes, the index definitions are adjusted to no longer be keyed on that column. And if there's a single-column index on that dropped column, the index is also dropped. It's pretty much what you would always want to happen, without forcing you to needlessly indicate how the indexes need to be adjusted.

It doesn't automatically adjust any views, triggers, procs, funcs, etc that reference the column though.
In Denmark we had MyMusic.dk, which later rebranded to Bandbase.dk, they were active from 1998 to 2013, they stored a lot of free underground music for a lot of up and coming artists.

They died when their data host Nirvanix went bankrupt, they lost all of the media files (with no backups), but according to Wikipedia customers were given 14 days to move their data.

A lot of culture disappeared that day :(
That isn't necessarily true. Rentals can be really inconvenient and surprisingly expensive.
Understanding Cryptocurrency Free Giveaway Scams Disseminated on Twitter Lists
Disney’s Taylor Swift Era
Wow! That one really pops!
I can only speak to a very specific example that I setup and ran at my last job for a SOC 2 annual pen test. We used a service called Cobalt Core (not affiliated), but they're kind of like UpWork for pen testers.

Aside from that, I'd imagine the general process is very similar. You define your parameters on what they're looking for, where to look for it, and what not to do. First thing I'd say is to make sure you have an isolated staging environment for them that they can attack without you disturbing them or them disturbing you.

If there are any parts of your code base that you're specifically concerned about, ask them to focus there! The goal of a pentest is to find what's broken (which it seems you're already on board with). An old CEO of mine wanted us to pass the pentest, not actually gain value from it... Take advantage of the fact they have people who know more than you and I (hopefully) to try and compromise the application.

They should give a nice write up with details on what they found and I've had a good experience asking them questions about solutions and future prevention.

I'm sure quality varies, but I wouldn't be surprised if the majority of what gets done for the average pentest are the same list of scripts that try to abuse Django admin and such, so I can't really speak to other qualities. Lots of injection focused attacks, but can't hurt for them to try.
I don't know how many times I've been in a meeting or on a conference call with an executive, and the exec will say something like, "Can someone open PowerPoint and start taking notes?" Not OneNote, not Word, not even freakin' Notepad. PowerPoint. For meeting notes. It's like that's the only app they can use. Is there a lobotomy that's done in business school that causes this thinking?
An executable file in /usr/bin can be edited just fine, just not in the way you'd prefer. So much so that certain licenses can legally prevent you from redistributing that binary without source. How easy something is to edit matters --- so much so that legality can hinge on it.
> as we all know you can't flip a coin many times without tails showing up.

We don't all know that. There's an ever-decreasing but nonzero probability that you will keep getting heads.
That was how I thought it was pronounced as a kid. I don't think I knew "wares".
Does this work in the open ai playground as well ?
The correct way to frame the issue is that climate change was already worse than it appeared because we were in the low side of the cycle recently. Now we are in the high side and it seems a bit warmer.
Coughlin: SSDs will not kill disk drives
I host an LLM because it's cheaper for my use case.
To many people focus on how an LLM interfaces with users but I believe the best most reliable use for an LLM is for analyzing free form text and having it put that data into quantifiable fields or tagging.
Things like this would have taken an interns or overseas laborers weeks to months to do can now finally be automated.
The record accounts for more history than you are giving it credit for [0].

[0]: https://en.wikipedia.org/wiki/Global_temperature_record
I've been doing web development since 1996. I've witnessed the ebbs and flows and hype trains.

Svelte's the real deal. How do I know? Because it's not a new API or paradigm. It's the old web just better.

It encourages HTML and sane CSS, not just wrapping them in endless boilerplate. It compiles to efficient code rather than making you write all of it over and over again. It takes all the lessons from the last decade and a half and distills them into familiar web development patterns.

<script>
<style>
all your HTML
+ bare minimum of logic to solve your problems

I haven't been this excited about a new web technology in a decade, so coming from an old school web dev who learned off of view source in 1996, take that into consideration.

And while I prefer Svelte, Htmx is doing a lot of the same work; not new APIs; just embracing old ones without all the boilerplate.
We've come full circle! TV is TV again!
I also found that quote very odd, for similar reasons. My immediate question was:

Why is this treated as a specifically Russian tendency?

The mindset sounds intimately familiar to me as an American. Many people, perhaps even most, operate on that idea. Our politics are heavily dependent on that idea. It also heavily underpins our justice system.