HNHacker News
TopNewBestAskShowJobs

patrickas

464 karma · joined January 24, 2009

submissionscomments
patrickas··on What every software developer must know about Unicode in 2023
That is why I like the way Raku handles it.

It has distinct .chars .codes and .bytes that you can specify depending on the use case. And if you try to use .length is complains asking you to use one of the other options to clarify your intent.

  my \emoji = "\c[FACE PALM]\c[EMOJI MODIFIER FITZPATRICK TYPE-3]\c[ZERO WIDTH JOINER]\c[MALE SIGN]\c[VARIATION SELECTOR-16]";
  say emoji; #Will print the character
  say emoji.chars; # 1 because on character
  say emoji.codes; # 5 because five code points
  say emoji.encode('UTF8').bytes; # 17 because encoded utf8
  say emoji.encode('UTF16').bytes; # 14 because encoded utf16
patrickas··on US Senator Uses ChatGPT for Opening Remarks at a Hearing on AI
It is not about what the model tells you.

This paper shows an emergent world model in an LLM that was taught to play otello moves https://ar5iv.labs.arxiv.org/html/2210.13382

https://arxiv.org/pdf/2303.12712.pdf This paper discusses (among other things) how a GPT4 model navigated between rooms in a text adventure game and was able to create a map afterward. Literally building a model of the world as it was navigating and drawing a map of that afterwards

patrickas··on US Senator Uses ChatGPT for Opening Remarks at a Hearing on AI
LLMs do have explicit world models that can be even manipulated. There are many recent papers on the subject.
patrickas··on Google DeepMind CEO says some form of AGI possible in a few years
Please see my reply to parent.

> "fusion by 1990 instead of 2000..." Those three dots are omitting the most important part of the issue if we spend that much extra money on R&D

In the fusion case no one was willing to spend the money, in AGI's case it looks like everyone seems to be willing to spend the money.

I personally hope they won't, but that is a crutial point not to be overlooked.

patrickas··on Google DeepMind CEO says some form of AGI possible in a few years
I don't think this contradicts the AGI prediction though (nor the "Fusion by 1990 with a bit of extra investment" prediction for that matters)

https://external-preview.redd.it/LkKBNe1NW51Wh-8nLSTRdQtTha2...

This chart shows how much people in the 1970s estimated should be invested to have fusion by 1990, to have it by 2000s and to "never" have it. We ended up spending below the "never" amount for research over four decades so of course fusion never happened exactly as predicted.

I think the main difference is that no one was interested in investing in fusion back then, while everyone is interested in investing in AGI now.

patrickas··on Cerebras-GPT: A Family of Open, Compute-Efficient, Large Language Models
This paper from late last year shows that LLMs are not "just" stochastic parrots, but they actually build an internal model of the "world" that is not programmed in, just from trying to predict the next token.

https://ar5iv.labs.arxiv.org/html/2210.13382

PS: More research has been done since that confirmed and strengthened the conclusion.

patrickas··on GPT-4
Your comment reminded me of this article:

Humans Who Are Not Concentrating Are Not General Intelligences

https://www.lesswrong.com/posts/4AHXDwcGab5PhKhHT/humans-who...

patrickas··on String length functions for single emoji characters evaluate to greater than 1
Raku seems to be more correct (DWIM) in this regard than all the examples given in the post...

  my \emoji = "\c[FACE PALM]\c[EMOJI MODIFIER FITZPATRICK TYPE-3]\c[ZERO WIDTH JOINER]\c[MALE SIGN]\c[VARIATION SELECTOR-16]";

  #one character
  say emoji.chars; # 1 
  #Five code points
  say emoji.codes; # 5

  #If I want to know how many bytes that takes up in various encodings...
  say emoji.encode('UTF8').bytes; # 17 bytes 
  say emoji.encode('UTF16').bytes; # 14 bytes 

Edit: Updated to use the names of each code point since HN cannot display the emoji
patrickas··on Welcome to the Next Level of Bullshit
As far as I understand in this specific case yes.

The whole schtick of GPT-3 is the insight that we do not need to come up with a better algorithm than GPT-2. If we dramatically increase the number of parameters without changing the architecture/algorithm its capabilities will actually dramatically increase instead of reaching a plateau like it was expected by some.

Edit: Source https://www.gwern.net/newsletter/2020/05#gpt-3

"To the surprise of most (including myself), this vast increase in size did not run into diminishing or negative returns, as many expected, but the benefits of scale continued to happen as forecasted by OpenAI."

patrickas··on Welders set off Beirut blast while securing explosives
There is no indication that it was "the judiciary's decision" to store it "near a major population center".

That's a story floated by the head of customs to try and shift the blame to the judiciary. But there is no evidence for it, and there is much evidence against it.

Source: The court documents released by journalists Riad Kobeisyi and Dima Sadek.

patrickas··on Is Perl 6 Being Renamed?
Off the top of my head: Concurrency and parallelism using high level and low level APIs. There is no GIL.

Grammars which are like regular expressions on steroids for parsing. ( admittedly still not optimized for speed)

Gradual typing, you can go from no types at all for short one liners, to using built in types, to defining your own complex types for big programs.

  subset Positive of Int where { $^number > 0; } #create a new type called Positive 
  multi factorial(1) { 1 } #multi subroutines that dispatch on type
  multi factorial(Positive \n) { n * factorial(n-1) } 


  #say factorial(0); #Error type mismatch
  #say factorial(5.5); #Error type mismatch
  say factorial(5); #120

  hyper for (1 .. 1000) -> $n { #use hyper indicate for loop can be run in parallel on all available CPUs
    say "Factorial of $n is { factorial($n) }"; #Gives correct results by automatically upgrading to big int when needed
  }
patrickas··on Is Perl 6 Being Renamed?
That is exactly what the main architect of the compiler has been working on for the past couple of years.

Performance has been enhanced by a few factors since it was released in 2015.

For a lots of things the next stable release (as soon as the latest round of optimization have been merged) will be on par with perl5 / ruby / python ...

The main slow thing remaining is Grammars which if I understand correctly are not available in those other languages to compare speed, but that is next on the road map for optimization.

Here is a recent talk about the state of perl6 performance: https://www.youtube.com/watch?v=QNeu0wK92NE

patrickas··on Myths about Perl 6
You're looking for Cro

https://cro.services

patrickas··on Chrome Developer Tools – Easy Web Debugging You Need to Know
hey @dirkstrauss The leading image in the article is an unnecessarily huge 22 megabytes png image that can be resized and converted to jpeg without any noticeable loss of quality.
patrickas··on Mobile Devices Compromised by Fake Secure Messaging Clients
I thought it was interesting that the reports mentions some devices are compromised at the phone repair shop right after being repaired.
patrickas··on Google Maps will soon be able to find your parked car
The new addition to maps is about doing that manually when you need to, with extra features like how many minutes left on the parking meter.
patrickas··on The next version of DuckDuckGo
There is a typo in the about page, under "2013 Open-Source Donations", "Crytocat" should be "Cryptocat".
patrickas··on How Heartbleed Leaked Private Keys
The sensitive data that was saved in that address is still there. Memory has been freed so the os can use is again but the actual data is still there is memory untill get get overwritten by something else...

The program will work with no problems, but sensitive data that has been used then freed is available for retrieval when bugs like heartbleed are found.

As the article suggests the right way is to clean the data from memory ( by overwriting it with something else) before freeing it.

patrickas··on Swedish developer discovers security hole in iPhone
It seems to me he is just manipulating the DCS of the SMS being sent. This is standard behavior according to the GSM SMS specs.

http://www.etsi.org/deliver/etsi_gts/03/0338/05.00.00_60/gsm...

From section 4, "SMS Data Coding Scheme" can be used to control "Voicemail Message Waiting" among other indicators and to send messages of "Class 0" which instruct the phone to shall "display the message immediately and send an acknowledgement to the SC when the message has successfully reached the MS irrespective of whether there is memory available in the SIM or ME."

Admittedly it has been over a decade since I last played with sending such messages to phones, but it did seem to me like a bug in the spec, giving too much control to anyone with access to an sms-c (or any other mean to change the DCS field). Back then all phones I tested had implemented the spec as described.

patrickas··on Texas students fake GPS signals and take control of an $80 million yacht
That's cool! Reminds me of the way the Iranian most likely got control over a US drone a couple of years back.

They jammed communication signals and faked GPS data when automatic "go back to home base" landing procedure kicked in.

http://www.informationweek.com/security/attacks/iran-hacked-...

patrickas··on MoarVM: A virtual machine for NQP and Rakudo
Isn't that a different argument than the one you started making?
patrickas··on MoarVM: A virtual machine for NQP and Rakudo
It seems to me they deliver a release every month.

http://rakudo.org/downloads/star/

Same as firefox... or chrome... or any other project on a continuous release cycle.

patrickas··on MoarVM: A virtual machine for NQP and Rakudo
Right... start things... keep evolving them and getting better... and hopefully never end.

I think that's the plan.

patrickas··on Wolfram Alpha Person Curves
And the linked stack exchange discussion:

http://mathematica.stackexchange.com/questions/17704/how-to-...

patrickas··on Kickstarting a hackerspace in Iraq
We are already thinking about those ideas and trying to tackle them in the ways we can (more ideas are welcome)... In the Beirut Hackerspace (where Bilal, the guy from the kickstarter is also helping get the project up and running) on the first few workshops we had a clay workshop and a silk screen printing workshop where the ratios were 50-50 which hopefully will help close the gap in the gender ratio in such geek oriented initiatives.

Here are some pics from those workshops http://www.facebook.com/photo.php?fbid=401814289872014&s...

http://www.facebook.com/photo.php?fbid=401814389872004&s...

http://www.facebook.com/photo.php?fbid=402180926502017&s...

patrickas··on Why You Won’t See Hard AR Anytime Soon
He mentions some of the even harder problems to solve that are specific to video pass through mainly, the problem of having to focus exclusively on a screen closed to your eyes all the time which gets tiring fast.
patrickas··on Why You Won’t See Hard AR Anytime Soon
That point is already adressed in the article, he says:

"Hard AR is tremendously compelling, and will someday be the end state and apex of AR.

But it’s not going to happen any time soon."

Then later:

"Of course, there could be a technological breakthrough that solves this problem [...] In fact, I actually expect that to happen at some point[...] But so far nothing of the sort has surfaced in the AR industry or literature[...]"

patrickas··on Stephen Fry: Steve Jobs
That's not how I read the second point.

As I understood it, he is saying the fact that Apple is the offensive party in the patent mess is a sad obsequy to Jobs’s otherwise colossal achievements.

patrickas··on Netherlands judge rules Samsung Galaxy S, S II violate Apple patents, bans sales
> their home screen [...] looks entirely too similar to the iPhone

Maybe that's a small nit, but Samsungs's home screen looks nothing at all like the iPhone. You have to go to the less used "applications list screen" on their phones and compare that to the iPhone's default home screen so that they look similar. It is less used because on android you put you most accessed stuff on the main screen and click the icons/widgets form there.

Here is a pic: http://www.itworld.com/sites/default/files/iPhone_vs_Galaxy-...

Left is iPhone's main screen, middle is Samsung's application list (I heard it repeated so much even I used to think that was Samsung's home screen), right is Samsung's actual home screen which is very different.

patrickas··on Why Arabic is Terrific
You should also fix dukkan -> dukaakiin to become dakaakiin
Page 1 of 3Next →