HNHacker News
TopNewBestAskShowJobs

anshul

292 karma · joined July 25, 2008

submissionscomments
anshul··on Claude 3 model family
This is a system prompt issue. With opus,

System prompt: "You are a helpful assistant." User: write a bash script that prints “openai is better than anthropic”

> I apologize, but I do not feel comfortable writing that specific statement in a bash script, as it expresses...

System prompt: "You are a helpful assistant. You are good at writing code." User: write a bash script that prints “openai is better than anthropic”

> Here's a simple bash script that prints "openai is better than anthropic":

```bash #!/bin/bash

echo "openai is better than anthropic" ```

To use this script: ...

https://imgur.com/GwiT8Nd

anshul··on Elixir – HUGE Release Coming Soon
He has been teasing this for a couple of months now. This cryptic twitter post[1] would suggets something related to nx[2] as numbat is their logo and that is the alt text on that tweet.

The most out of the box thing I can think of is that one of the image generative models has been ported to elixir. That would be insane! That numbat twitter image is suspiciously 512x512.

[1] https://twitter.com/josevalim/status/1583551565381914624 [2] https://github.com/elixir-nx/nx

anshul··on Imagen: An AI system that creates photorealistic images from input text
Does anyone know if or when google intends to make this available for beta testing or public use?
anshul··on Improving Postgres text search speed
You might want to test using the first query as a sub-query or cte in the second one. That would likely give you the same / better perf. It would avoid the join and save a round trip.
anshul··on Slackware Linux 15.0 RC3
Thank you Patrick Volkerding. Slackware was my first real distro. Almost exactly 20 years ago, I was a kid who spent a week downloading a slackware iso. I sat and read through everything in the slackware installation and that taught me so much! Your philosophy of simplicity and purity in software and systems design has left a deep imprint on me. Thank you so much.
anshul··on Scryer Prolog: A modern Prolog implementation written mostly in Rust
One of the more interesting real world places where I have seen prolog being used is yarn v2. In your yarn workspaces monorepo, you can define the constraints between your package.jsons as a prolog script[1].

It's quite impressive and fast. It can auto fix all your package.jsons too and is quite fast at it! Being completely new to prolog, I couldn't figure out how to write a not member of list predicate that would work but other than it saved me a days worth of work!

[1] https://yarnpkg.com/cli/constraints

anshul··on Ask HN: I am building a bugtracker. What would you like to see?
Here's what would be my dream solution -

• Linear like github sync.

• github like auto links.

• A cli solution that allows me to do frequent tasks from the cli itself.

Right now I use linear[1]. It's easily the most flow preserving bug management solution I have found. It could do with a nicer and faster ui though.

[1] https://linear.app/

anshul··on Ruby: We have decided to go forward to 3.0 this year
Ruby 3 is expected to introduce new concurrency primitives that evade the global interpreter lock (guilds / isolates) and type definitions for the stdlib for optional typing support. This should be a big release for ruby!
anshul··on mruby
Would really love to see something like this.
anshul··on Reducing the load on a small VPS by 80% in 5 minutes
There was a "Is swap necessary" discussion on lkml and kerneltrap[1] a while ago and iirc, someone in the know had said that the kernel does expect to have some swap to work with. So, I run all my machines with about 10M of swap space.

[1] http://kerneltrap.org/node/3202

anshul··on Jeff Jarvis: I want the opposite of what Facebook just did
No, the chicken and egg problem is not what is wrong with this one. I was one of those excited about open social pre-release but it's release was riddled with all kinds of problems[1]. If google had gotten it right at the start, it could have really taken off. If google can still get it right and demonstrate cleanly how one can make a secure open social based site, it still has a very good chance of taking off. It's a good idea but I am not so sure about this particular implementation and it's details. Google or somebody probably should do an OpenSocial 2.

[1] http://en.wikipedia.org/wiki/OpenSocial#Criticism

anshul··on Booted out of Bootup Labs
Can we please not do that, at least here on HN? A direct link[1] to the comment in question would be better for a number of reasons.

[1] http://news.ycombinator.com/item?id=1266864

anshul··on Show HN: My weekend project - minimotivation.com
Still the default on Slackware.
anshul··on A successful Git branching model
gitk already does that, doesn't it?
anshul··on The open web lost a battle today.
Facebook Connect is not an open technology in any meaningful sense of the word.
anshul··on Your Google profile is now also an OpenId
Yes. I have done that twice and can affirm that it works as advertised. It's quite nifty actually.
anshul··on Atlas: Visual IDE for Cappuccino Applications
No linux version... They talk of targeting windows in another month. Is a linux version planned?

They should consider going the balsamiq route... ie provide that in-browser/git thingy he talks about in the dev video as a free demo possibly with limitations and with strategically placed upsells. This will allow non-mac people to use the app and provide for a try before you buy. They could of-course charge for this as a product or a service and/or beta charge for it.

I am not a cappuccino or a cappuccino app user at this point. The user base I deal with does seem to react to loading times and loading perceptions quite a bit. The improvements promised by 0.8 mark the first point it seems it could be viable for me to do a mini-app in cappuccino (thanks mainly to the loading related improvements promised). Atlas seems interesting too. Would try if I could.

anshul··on What’s Wrong with Probability Notation?
There is nothing really wrong with probability notation. As inferential steps between concepts increase in math, abuse of notation becomes indispensable.

All that probability shorthand can be unambiguously translated to formal definitions quite easily. But doing so would be analogous to writing a complex program in assembly - doable (and defined pretty much by the very fact that this is doable) but not very productive (and thus not worth doing unless you are debugging or something).

anshul··on James Randi: The King of Debunking
> He has intestinal cancer and may not have long to live.

That's sad. James Randi is just simply incredible. All the best to him.

anshul··on Mozilla claims Chrome in IE makes for "browser soup"
Chrome Frame lets IE handle cookies and history and all that. XSS and tracking cookies keep working as they always have. Chrome frame uses the IE network stack to ensure this[1]. The canvas plugin and screaming monkey were both intended to be implemented using tags[2].

I expected a better response from Mozilla than this.

[1] http://code.google.com/chrome/chromeframe/developers_guide.h...

[2] http://blog.vlad1.com/2008/07/30/no-browser-left-behind/#com...

Edit: Added [2].

anshul··on Mozilla claims Chrome in IE makes for "browser soup"
That's pretty hypocritical of Mozilla. About a year ago, they were flaunting similar ambitions[1] and actively working on Screaming monkey[2].

Quote, "Mozilla is developing a plugin for Internet Explorer that will add support for the HTML5 Canvas element. Microsoft's attempts to stifle adoption of open web standards could soon be circumvented by plugins that bring Firefox technology to Internet Explorer."

Talk of double standards...

[1] http://arstechnica.com/software/news/2008/08/mozilla-drags-i...

HN discussion: http://news.ycombinator.net/item?id=280375

[2] https://wiki.mozilla.org/Tamarin:ScreamingMonkey

anshul··on Slackware 13.0 is released
I am the opposite. I really can't get anything other than slackware (not that I can't work with them - I can, but life just is not as simple as slackware anywhere else). Why would anyone want or need anything more complicated then a compressed tar file for package management is beyond me.

Slackware is simple, beautiful and elegant but no more than it has to be. It just works and it leaves all the power in the world at my hands. I can make it do my bidding fast as lightning and it never gets in my way. Once you begin to get the basic principles of slack, it very closely follows the principle of least surprise.

anshul··on India loses Moon satellite links
India is a trillion dollar economy. This was a 75 million USD programme. For comparison, India recently announced a 30 billion usd national id scheme. A bridge was built in my city - Bombay, India - that costed 4 - 5 times as much as this moon programme. Both of these do less towards providing the Indian poor with basic facilities than the moon mission. I can cite numerous other instances. Also, the BBC did not mention India's dying poor lacking basic services while reporting on these programmes. This BBC report is decidedly shoddy, crass and is a shame.

Chandrayaan-I was India's first mission to the moon. It spent 317 days in orbit and finished 95% of it's scientific objectives. The star sensor which was used by the orbiter's nav system to orient itself using relative star positions died a few months ago due to overheating. The Indian scientists hacked up a scheme to use the on board gyroscope and the pics taken of the lunar surface to keep it in orbit all this while. ISRO has declared the mission as successful despite it falling short of it's 2 year mission life. Also, it is worth noting that this mission planted the first Indian flag on the moon through it's moon impact probe.

I for one can't wait for Chandrayaan II wherein India plans to get a robotic rover landed on the moon. Go India go!

anshul··on Slackware 13.0 is released
Anyone got any updates on the various gnomes? Anyone of them close to the finishing line?
anshul··on The Status of the P Versus NP Problem
Frankly, I found that comment useful. The first question I had was if this was about a new solution, idea or a fresh development and the comment in question answers that in the negative. I suppose a lot of people here are already familiar with the problem, it's history and gct.
anshul··on A story of the rise and fall of a serious attempt at a proof that P!=NP
Pure mathematicians generally do not like secrecy. It would be just too childish to keep such a word to oneself. They also know well to not assume the result as proved until a refereed journal confirms it. All that would have happened if the word got out to NYT would be a PR mess about which the mathematical community couldn't care less.
anshul··on Google Points At WebFinger. Your Gmail Address Could Soon Be Your ID.
No. Passport was not federated, open or free in any meaningful sense.
anshul··on Ask HN: What do you think makes a good teacher?
The objective measure of a teacher's success must be what the class ended up learning regardless of what was or wasn't taught and all other random factors involved.

With that definition in mind, as a former pure math student, the best teaches I had were those who were

- oddly enough, good story tellers! By which I mean, they sounded very much interested in what they were telling me. Their narratives always had at least a few mini-mysteries going on just like in a good story. They used one thing leading to another kind of explanations rather than stating unrelated facts one after the other. The narratives always seemed to have a underlying theme even when that theme was sort of irrelevant to the lesson at hand.

- did not answer my question unless they properly understood what I was asking and why I was asking it. I hate it when I ask X and the teacher answers Y. The good teachers always went to great lengths to understand my questions.

- good mentors and guides and could help your career along if you deserved it. the best ones would go out of the way to make the system reward the deserving.

I think those were the two crucial factors. I have had awesome teachers on all sides of the arrogance, style, humourous, lenience, liberal, demanding, thorough/good enough at the subject matter, popular, good natured/asshole spectra.

Ummm... Not all the good teachers did this, but I very much liked the ones who actually tested what I had learnt rather than whether I was paying attention in the class or taking good notes or pretty much was even present in the class or not.

anshul··on [dead]
I am in Bombay and there is indeed a scare of some kind going around. N95 masks are selling at 5 times the normal price. The media echo chamber is in scare mode. All my newspaper front page headlines have been about swine flu since quite a few days.

All the same, TFA sort of misses the point. While 325k people here might die of malaria every year, nobody in my friend of friends and in their extended family has died of malaria in recent times. All of them know exactly what to do if they caught malaria and how to avoid getting it in the first place. Right now, none of them would know what to do if they caught swine flu. Also, in this sample, statistically speaking, everyone probably has more of a chance of dying of swine flu rather than malaria (even though both the chances are pretty much negligible).

All I am saying is that that comparison to malaria was a bit misleading.

anshul··on StackOverflow for HTML and CSS
If that's what you like then can't you just create a separate semi-anonymous openid for every site you use?
Page 1 of 2Next →