🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #203

Re: compare literals / if( "cat"== "dog") {}

#203
From: Johann 'Myrkraverk' Oskarsson
Date: Sun, 11 Oct 2026 10:46
19 lines
2316 bytes
On 10/11/2026 6:43 PM, Stefan Ram wrote:
> Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> wrote or quoted:
>> If you go this route, you can always check out Mailund's book, /The
>> Joys of Hashing/, but he does not cover the actual hashing function,
> 
>    When the strings are known at compile time, one can also create
>    perfect hash functions using tools like gperf.

I've been interested in perfect hashing too.  Do you know a good refer-
ence if I want to recreate gperf?  If I want to recreate Lex, I can read
[Holub], but if I want to recreate gperf, I don't know what to read.


Best wishes, and happy perfect hashes!
-- 
Johann | email: invalid -> com | http://www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | via Easynews.com
https://bsky.app/profile/myrkraverk.bsky.social | for ( ;; ) _:;
Federated at https://fed.brid.gy/bsky/myrkraverk.bsky.social
Technical Details
Message-ID: <jOJyS.5019$n7_c.102@fx07.ams4>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer04.iad!feed-me.highwinds-media.com!peer04.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx07.ams4.POSTED!not-for-mail
References: <11ae962$2365v$1@dont-email.me> <9tyyS.21373$VDn8.13923@fx14.ams4> <11afcku$2dli3$1@dont-email.me> <11afe36$2e577$1@dont-email.me> <11afe6j$2e577$2@dont-email.me> <11afedm$2e577$3@dont-email.me> <11aff4q$2egej$1@dont-email.me> <11afjjk$2g358$1@dont-email.me> <11afl7v$2giqh$2@dont-email.me> <hGJyS.25112$YNTa.1959@fx01.ams4> <hashing-20261011114242@ram.dialup.fu-berlin.de>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer04.iad!feed-me.highwinds-media.com!peer04.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx07.ams4.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: compare literals / if( "cat"== "dog") {}
Newsgroups: comp.lang.c
References: <11ae962$2365v$1@dont-email.me> <9tyyS.21373$VDn8.13923@fx14.ams4>
 <11afcku$2dli3$1@dont-email.me> <11afe36$2e577$1@dont-email.me>
 <11afe6j$2e577$2@dont-email.me> <11afedm$2e577$3@dont-email.me>
 <11aff4q$2egej$1@dont-email.me> <11afjjk$2g358$1@dont-email.me>
 <11afl7v$2giqh$2@dont-email.me> <hGJyS.25112$YNTa.1959@fx01.ams4>
 <hashing-20261011114242@ram.dialup.fu-berlin.de>
Content-Language: en-US
From: Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid>
Organization: Watcom Pro Ltd.
In-Reply-To: <hashing-20261011114242@ram.dialup.fu-berlin.de>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 19
Message-ID: <jOJyS.5019$n7_c.102@fx07.ams4>
X-Complaints-To: abuse@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Sun, 11 Oct 2026 18:46:38 +0800
X-Received-Bytes: 2131