News for hackers. Stuff that matters.

anshul

Re:Claude 3 model family on Tuesday March 05, 2024 @12:22AM (#39599741)
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

Re:Elixir – HUGE Release Coming Soon on Wednesday December 07, 2022 @10:19AM (#33895315)
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

Does anyone know if or when google intends to make this available for beta testing or public use?
Re:Improving Postgres text search speed on Friday August 12, 2022 @11:40PM (#32446686)
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.
Re:Slackware Linux 15.0 RC3 on Thursday January 13, 2022 @08:37PM (#29929540)
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.
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

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/

Re:Ruby: We have decided to go forward to 3.0 this year on Monday August 31, 2020 @12:46PM (#24333247)
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!
Re:mruby on Friday April 20, 2012 @02:54AM (#3866791)
Would really love to see something like this.
Re:Reducing the load on a small VPS by 80% in 5 minutes on Tuesday June 08, 2010 @07:07AM (#1413532)
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

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

Re:Booted out of Bootup Labs on Thursday April 15, 2010 @01:47AM (#1267093)
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

Re:Show HN: My weekend project - minimotivation.com on Wednesday March 17, 2010 @09:41AM (#1198508)
Still the default on Slackware.
Re:A successful Git branching model on Wednesday January 20, 2010 @04:40AM (#1064448)
gitk already does that, doesn't it?
Re:The open web lost a battle today. on Wednesday December 02, 2009 @03:03PM (#972766)
Facebook Connect is not an open technology in any meaningful sense of the word.
Re:Your Google profile is now also an OpenId on Thursday November 26, 2009 @05:19AM (#962511)
Yes. I have done that twice and can affirm that it works as advertised. It's quite nifty actually.
Re:Atlas: Visual IDE for Cappuccino Applications on Sunday November 15, 2009 @08:43PM (#943739)
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.

Re:What’s Wrong with Probability Notation? on Wednesday October 21, 2009 @04:52AM (#894261)
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).

Re:James Randi: The King of Debunking on Tuesday October 13, 2009 @07:34AM (#878838)
> 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.

Re:Mozilla claims Chrome in IE makes for "browser soup" on Wednesday September 30, 2009 @06:04AM (#852150)
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].

Re:Mozilla claims Chrome in IE makes for "browser soup" on Tuesday September 29, 2009 @10:50PM (#851803)
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

Re:Slackware 13.0 is released on Sunday August 30, 2009 @11:05AM (#794549)
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.

Re:India loses Moon satellite links on Sunday August 30, 2009 @09:27AM (#794451)
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!

Re:Slackware 13.0 is released on Sunday August 30, 2009 @07:37AM (#794379)
Anyone got any updates on the various gnomes? Anyone of them close to the finishing line?
Re:The Status of the P Versus NP Problem on Thursday August 27, 2009 @05:22AM (#788918)
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.
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.
No. Passport was not federated, open or free in any meaningful sense.
Re:Ask HN: What do you think makes a good teacher? on Friday August 14, 2009 @02:29PM (#763550)
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.

Older »