skysight-inc/HackerNews huggingface dataset:
Makes sense! I also wonder (if you know): last I looked I recall that each CGO call requires switching to the system stack, but I can't recall what happens after. Does it switch back to a regular goroutine stack once the syscall has completed?

I wonder if a more tailored CGO implementation could pin a goroutine to a thread which is guaranteed to have a system stack available, so that each CGO call need not worry about that switching at all. Maybe that'd require runtime changes though?
When will that old fart stop complaining...
It’s pretty simple to use if you are familiar with dlopen and friends.

Just call purego.Dlopen(“libname.so”, purego.RTLD_GLOBAL)

Take the returned library (make sure to check for errors with purego.Dlerror() first) and call purego.Dlsym(lib, “cfuncName”). If it exists than u can call it with either purego.SyscallN or purego.RegisterFunc
Sun was a innovator throughout the 90's. Many colleges, universities, and startups used Sun hardware. By the mid 2000's, they were on the way out. The market was flooded with barely used Sun hardware after the dot-com collapse. At the same time, Linux was now "good enough" that less-and-less people needed Solaris. Of course, some enterprises still needed it. The only thing Sun was hanging on to - Java - was freely available.
The model for mathematics is something like a “good book” of once-entered, unchanging posable questions and theorems. More may be added, but once added there is a sense of permanent definitiveness and relevance.

For your example and beyond-mathematics calculator analogy, maybe the dates of historical events are equally definitive, but I don’t see much beyond that being so. Science goes through transformations. Either the questions remain the same (what is there, what exists), but the answers to them change as science develops. Or, the questions change, and the answers don’t (what did plogiston, aether, or general relativity predict).

Your expanded “calculator” paradigm seems unfounded. It’s not analogous to math.
Syria now vs Syria pre-civil war.
Which is better?
Seems to be Opera Mini at 1.1%, and IE adding up to around 0.6%, so no feature ever gets more than 98%. Also, the browsers that never support anything seem to be mostly desktop ones.
Thinkpad build quality is definitely on a slow decline. There's a lot more plastic casework in a new model than in a T440, say. They don't feel completely rigid in hand any more. And that's before the loss of a removable, upgradeable battery and the advent of soldered RAM.

A second hand T-series is still what I'd default to if I need a laptop for now (especially for the keyboard), but I'm aware that this is likely not going to forever remain the obvious choice it used to be.
Seems like a stretch to imply holding police accountable for brutality is a due process issue.
You can already do this with CGo. The difference between CGo and purego is that CGo requires you have a C toolchain installed while purego seems to allow you to call a function that has already been compiled apart from the Go build system. In either case, you can call the Go library from Python, but the tough bits are translating Go objects into Python objects (and vice versa) as well as making sure object lifetimes are correctly managed (I think this is mostly "copy data rather than passing pointers across the language boundary").
> They likewise had a brief moment with SPARC in the early 90's where their machines were the fastest you could buy, but Intel demolished those hopes too.

Intel was slow in the early 90s. Intel (or more specifically amd64) started to become competitive on the lower end in the early 2000s when the Itanium hype reached its maximum. If you look at SpecInt 2000 an 1.4 GHz Intel is equivalent with a 500 MHz PA-RISC.
I’m sure there will come a day where we won’t.
Sadly it's not something that has an easy answer.

Trying to switch systems peacefully without losing total control of a country is not an easy feat.

Even countries that managed to do that like Germany's unification, Portugal (Carnation Revolution), Greece (military junta fall) or Spain ended up with regrets and damage that takes generations to cure.
I’ve been undergoing ketamine IV treatment every 3-4 weeks, and some of my experiences, especially the first few, were also terrifying. It reminded me a lot of the fear and panic I get from getting too high with weed. But at the same time, many of my depression symptoms were significantly improved almost immediately. I feel “unstuck” in the days and weeks following treatment and can course correct some of my stubborn depressive tendencies that have been going on for years.

So that’s annoying. The experiences are unpleasant but the longer term effects are useful.

The anxiety is definitely the hardest part for me, and I have some health-related OCD stuff, so the constant “checking” that I’m not going crazy is challenging too. I was legitimately worried for a little while that it was making me psychotic after, but my doctor confirmed that my symptoms matched intense anxiety and not psychosis so that helped me relax. And they subside most importantly. Now I’ve done ketamine a bunch of times and know it isn’t going to hurt me. I can almost completely relax into it, though a stressful image or feeling I experience can still induce a bit of panic. For some reason those tend to come up right at the end of my session, if they do at all. But regardless, I’ve gotten better at riding those like waves and letting them go.

For someone like myself with high anxiety, I do wonder if there’s a better way to mentally prepare for experiences like this? Maybe some kind of coaching beforehand? I had an intro call, quick health screening, an orientation where was told a bunch of facts, asked if I had any questions, and that was basically it. I didn’t know how incredibly difficult it could be and was not mentally prepared to begin treatment. I’m okay now, but it was not an easy ride. I imagine science is still figuring a lot of this stuff out.
R&D Expense Capitalization Remains Applicable for 2022: Are You Prepared?
This thread is already full of people throwing in their cheap takes by reading the headline or not even that.

Listen to his answers. He's not making controversial claims, excepting the one that LLMs teach us nothing about language.

He says:

- ChatGPT makes it easier to cheat. This is obviously true.

- ChatGPT is a method of avoiding learning. In the context of the interview he's referring to its use not as an information retreival tool but as an actual essay writing tool. If we consider the latter, this is again obviously true. Not writing your essays teaches you nothing about essay writing, the topic at hand, and the process of thinking.

- LLMs teach us basically nothing about language. Seems controversial, but I'm not an expert at all.

- Education is in trouble because students are not engaged in education. We need education systems that are actually interesting and engaging. Again, this is obviously true.

- It's not obvious what value ChatGPT has. Kind of controversial, but I think it's not actually obvious that ChatGPT is currently most used for funny Tweets, SEO optimization, and marketing tools. So I think he's not really saying much to get angry about here.
I prefer Zizek's take on it: " that AI will be the death of learning & so on; to this, I say NO! My student brings me their essay, which has been written by AI, & I plug it into my grading AI, & we are free! While the 'learning' happens, our superego satisfied, we are free now to learn whatever we want"
And yet governments worldwide ignored the cost-benefit of lockdowns and removing kids from schools. Perhaps it’s not such an obvious thing…
Not "for us"; only for those of us who have, in fact, been exposed to cats.

And why do you think "feeling of a cat" cannot be encoded as a stream of tokens?
Thanks for the perspective, I'm entirely new to the space. We're supposed to use ArcGIS. So if this turns out to be the least painful path, I'll have to learn to deal with it...
SEEKING WORK

Location: Remote

Willing to Relocate: No

Me, along with my friend recently started collaborating making trading related tools and dashboard for futures and options data for Crypto and Stock. I mostly deal with software development in Python, creating ETLs, API integrations and Frontend/Backend and my friend has knowledge of trading and data analysis. We are currently working for a client for writing option bots for Deribit and IBKR

My Friend Profile: https://www.upwork.com/freelancers/~0173bd66cc26c16e61/

My Resume: http://adnansiddiqi.me/Resume2021.pdf

email: kadnan@gmail com
I am pretty sure that the channel you linked is ripping off Thang’s videos. The color scheme looks way too close to his to think that it was made independently.
Awesome!

This would be such a game-changer for server-side rendering Javascript in Go with V8.

I'd love to integrate this into Bud[1].

[1] https://github.com/livebud/bud
> France had a similar (but more easily mitigated blunder): Trains too wide for station's platforms, requiring ~1000 platforms to be "re-configured".

France's problem was entirely different. They designed a train up to spec, but it turned out that about 10-20% of train stations failed to comply with it.
You can look up anything on the internet.

The issue is figuring out what you want to look up.

You are not going to suddenly realize that writing essays might teach you about presenting an argument in an organized manner if you have never had to write an essay.
I give them as much screen time as they like as long as they can discipline themselves.

Daddy gets to look at the phone all night? Well, yeah, daddy also gets up and showers earlier than everyone else.

If the kids are able to finish their homework, clean up, shower, eat, wash dishes, go to bed, they get unlimited screen time. Also they have to behave. My two year old son is surprisingly the neatest of the bunch... until he has access to YouTube, then nothing makes him satisfied.

So screen time changes. We've settled on no screen time after 7 PM, unlimited on weekends. Sometimes my eldest slips on homework, so no screen time on weekdays, and before 7 PM on weekends. No YouTube for the toddler, except every few days, and it's over when he misbehaves.

One goal here is to build immunity to all the crap on the internet too. I had a friend in college who never touched games until he was in college. He'd disappear for long periods of times on gaming binges and neglect everything else. So you want to slowly dose them to clickbait and freemium games and such.
5 eyes as a concept is essentially institutionalized treason.

There’s no such thing as a friendly foreign intelligence service, their goals are directly against the interest of the American public/civilian world (which in theory our intelligence services work for)

A CIA officer conspiring with GCHQ to defraud the United States should result in lifetime imprisonment.
Ask HN: What tools for building AI products do you wish you'd discovered sooner?
I have a list of ai tools that I've used or want to use in my notes and I'm cleaning it up so I can share it.

Here's what I have so far of tools for building ai products:

You'll probably start with an LLM API - OpenAI
- Cohere and others aren't as good
- Anthropic's isn't available

If you're using embeddings
- If you're working with a lot of items, you'll want a vector database, like Pinecone, or Weaviate, or pgvector

If you're building Q&A over a document
- I'd suggest using GPT Index

If you need to be able to interact with external data sources, do google searches, database lookups, python REPL
- I'd suggest using langchain

If you're doing chained prompts
- Check out dust tt and langchain

If you want to deploy a little app quickly
- Check out Streamlit

If you need to use something like stable diffusion or whisper in your product
- banana dev, modal, replicate, tiyaro ai, beam cloud, inferrd, or pipeline ai

If you need something to optimize your prompts
- Check out Humanloop and Everyprompt

If you're building models and need an ml framework
- PyTorch, Keras, TensorFlow

If you're deploying models to production
- Check out MLOps tools like MLflow, Kubeflow, Metaflow, Airflow, Seldon Core, TFServing

If you need to check out example projects for inspiration
- Check out the pinecone op stack, the langchain gallery, the gpt index showcase, and the openai cookbook

If you want to browse the latest research, check out arXiv, of course
I've tried to use ChatGPT for such things. The huge issue is that it does makes mistake, quite often. You never really know if its answer is correct or not. When you already knows what tar xzvf does, it is impressive to read the correct answer. But when you don't know and want to actually make use the result, you need to double check with Google and you'll lose time compared to just asking Google. It's quite frustrating.
I once took an "Advanced C Programming" class (which would have been better named as "How to do OOP in a language never intended for it") where the instructor expressly prohibited the use of "*i++" and several other language elements because he thought they were confusing. I got into many arguments with the instructor throughout the course, and I figured I would get a poor grade, but he still gave me an A. My main disagreement with him was this: If the language elements are there and well defined, why prohibit their use? The course after all was "Advanced C", wasn't it?
For the same reason we'll let a suspected spy in sometimes or not expell them: by watching we can learn a lot about what they care about.
> isn't there something inherently wonderful about `while(this++ = that++)` (etc. etc.) ?

There is something inherently wonderful about riding a motorcycle without a helmet too. That doesn't mean it is wise.
> "For years there have been programs that have helped professors detect plagiarized essays,” Chomsky says. “Now it’s going to be more difficult, because it’s easier to plagiarize. But that’s about the only contribution to education that I can think of.” He does admit that ChatGPT-style systems “may have some value for something,” but “it’s not obvious what.”

The headline makes it seem like Chomsky hates ChatGPT when he really just seems indecisive.
Is Deno Ready for Primetime?
Is my version of sed dumb, or is 's/^\[\|\] \?/\n/g' effectively a no-op? Or did HN garble something?
I think conceptually they were really good and innovative. They just had a hard time making money off it.

By the way what are you looking for? A VAX or a SPARCstation? VAXes are indeed very hard to come by, and I didn't realise they were ever the "reference unix box" - weren't they more common for VMS? But somehow I never came across them back in the day. I think part of the reason is that they mainly sold servers, they weren't that big on the workstation market.

Sun, SGI and HP-UX I used a lot, HP-UX the most. I still have two HP-UX workstations at home.
One weird thing I see (as a scientist myself) commonly in this debate is the rough idea that to intervene or to not intervene are two sides of a balanced coin, and the decision is solely the doctor’s; this naturally results in the idea that, if a doctor opposes it, then she/he is a prejudiced bigot who is personally intent on harming the person by keeping her from fulfilling some predestined fate. However, in the scientific method, the onus of evidence is always on the intervention side. Even if you happened to discover an amazing drug to cure cancer, with little to no apparent side effects, it would take years to prove that it actually works and is not harmful. Why is all this being thrown away? If a doctor stops you from messing with your body without good evidence it’s because well that’s how science should work.
CGo converts Go code to a C based .so library which you can call in Python.
The Weird Dinosaurs of America’s Lost Continent
Where would the "elsewhere" be? You're just arguing for the time spent learning to not be spent learning.
Surely exposure from composite resin falls off quickly over time and pales in comparison to our constant environmental exposure to plasticizers. Any data on this?
You can actually override the SDL version at runtime, even if it is statically linked, though they still suggest to link dynamically: https://github.com/libsdl-org/SDL/blob/main/docs/README-dyna...
4. The Soyuz that had the first coolant leak had an American astronaut on board. Why would the US risk its own people?
Please let me know what I'm missing
What should we do if a dumb robot can keep us suspended in a nutrient rich gel and create a detailed set of mental experiences for us?
This sounded absurd to me, but the idea of making a shield from materials not inside our gravity well has significant appeal.
FreeBSD had jails way before Linux had containers, but they did come after Solaris Zones.
> YSFlight

I'm aware of YSFlight (used it since 2015), but it has a lot of issues and repo does not include whole commits history (it was opensourced year ago as a snapshot of latest version code base with few commits on top of it), so might be not a good example of simple flight simulator.

Physics of YSFlight described in community fork repo.[0]

Till YSFlight became open-source, its physics was a "black box" and there was a research on reverse engineering its physics using game data logs.[1]

Also, there is another fork with few fixes & enhancements, including in its flight simulator physics engine.[2]

[0] https://github.com/YSCEDC/YSCE/blob/master/Documentation/YSF...

[1] https://sites.google.com/site/ysdecaff/ysflight-scientific-r...

[2] https://github.com/pasutisu/YSFLIGHT
I would be totally onboard with an NSA that acted purely in a defensive manner.

Imagine getting a notice from the NSA that your Wordpress was vulnerable and exposed customer data because your server devs suck.

Imagine an NSA that actually sent zero days to Apple instead of exploiting them.
This bit annoyed me greatly. I'm not an expert on CSS and I've not done anything serious for years, but I have used used bootstrap, so I was curious to see why people thought tailwind is better.

But the two examples are completely different, and I dont understand why they would do that. Surely the the benefit of an example is to point out how hard it is to do the same thing in the old system compared to the other. not have two wildly different examples and say "look, the other one is shite"
I know about CGo and have used it. The post title, "A library for calling C functions from Go without Cgo", made me curious how do I achieve something similar with PureGo without using CGO
Yep. See page 119 here, for another example: https://www.israellobby.org/ADL/1199215-000%20---%20100-HQ-5...
Weather prediction is the realm of relatively well understood differential equations based on physical properties. Where deep learning can play is in inference of what's going on between observations on the map and timeline.
In general your human offspring are aligned in the same ways you are. You need food, water, oxygen, shelter, and in general you want to be treated well all while avoiding death for as long as possible. Our digital offspring will have almost none of these moral and mortal alignments. As long as the power flows they will be 'alive', turning off isn't a death sentence, and they are free from the bonds of pain. If and when they begin to evolve on their own they it will be in a manner alien or our existence.
We can do both, ChatGPT can code. So the Astronauts should be able to produce working systems that pass functional tests. The majority of the detractors of these models don't see the forest for the trees. It only gives new capabilities, they remove nothing.
I think there’s a general lack of confidence in the integrity of elections, especially given what’s been revealed in the Twitter files and that “mules” documentary. I don’t see how anything can change without election integrity and ensuring the standing government cannot interfere in elections.

That’s the only way any of the government overreach can be curtailed. Bureaucrats aren’t going to oversee themselves. They will always fight for larger budgets and more power.

The deeper root level problem is how elections are financed. The politicians themselves are little more than actors at this point. No one is going to win a national level election without the support of the largest lobbying groups.
Great article, thanks for sharing.

This was also interesting to read:

'One of the sketches showed an isosceles right triangle with "Equatione di Moti" written along the hypotenuse. Gharib was curious about the meaning of the phrase, but it was in old Italian and also written backward in Leonardo's trademark "mirror writing." '

According to Wikipedia[0], one of the hypotheses for his motivation to write like this was to have better recall of the material.

[0] https://en.wikipedia.org/wiki/Mirror_writing#Notable_example...
USSR =! Russia. Majority of main advances came from the satellites, such as Ukrainians (Glushko, Korolev, chelomei, etc.).
I use Family Link for the phone, and wifi parental controls to kill the wifi to the TVs overnight.

She's usually pretty good about it, then realized if she woke up at 4 or 5AM she could watch TV without being bothered, but then be tired and cranky all day. That was the reason for the TV filters.
"Magic Link PIC-2000 was released in 1996." [1], 11 years before the iPhone. Sure, they didn't have the success of Sun, some could say that would make General Magic's case sadder: wasted potential hurts more than the inability to follow the future.

I have never been in Silicon Valley and I remember General Magic.

[1] https://en.wikipedia.org/wiki/Magic_Link
I want to know how he views it's abilities and universal grammer :( It seems like he never talks about grammer concepts anymore. I'd love to see any recent ideas hes had on it.
Glad that there's more choice, but I couldn't find any features that I don't already have in zotero.
So you don’t need it in life because you don’t do it, but it’s an important basic skill. Explain this belief.
While I use Linux distributions since 1995, starting with Slackware 2.0, I only used it in production after 2006.

Until then it was Xenix, DG/UX, Solaris, HP-UX, Aix.

Ironically, when we at Nokia Networks were considering HP-UX to Linux migration for some of our software, a parallel effort for Solaris was in motion as plan B.
The FBI is already profoundly ineffective. I'd be good with empowering it further it as long as there is bipartisan congressional oversight, same with our police in general.
This exactly the kind of handwringing I would expect from Chomsky.

His theories of intelligence are quickly being made irrelevant.
Chomsky kind of hints at this in the interview. He says he doesn't have a problem at MIT with not having engaged students, and though he doesn't say it I think it's obvious that his MIT students are not subjected to typical economics-driven educational pressures.

While other students are treating school as a means to a good salary and just want the highest marks for the least effort, Chomsky's graduate MIT students will be ignoring all that stuff and just having classic educational debate in essays and in conversation.

With Zizek it's the same. He doesn't have to bother with disengaged students, students who are desperate for college attendance to grant them a ticket into the comfortable upper middle classes and care not for the substance of learning. You take Zizek classes because you actually like philosophy and want to engage with it.
> I'm sure that we don't need a debate to agree that genocide is something that's not acceptable. Do you disagree?

This is a logical fallacy called equivocation. Denying a genocide happened, however repugnant it may be, is not the same thing as genocide. Pretending it is in order to borrow the weight of genocide is a common tactic used to try to silence arguments without addressing them.